/*
Theme Name: Morg Theme New
Version: 5.0
*/
:root {
  --blue: #1A3D9E;
  --blue-dark: #132D7A;
  --blue-footer: #3E5ECF;
  --blue-link: #2A5CB0;
  --green: #1EC87C;
  --red: #E31318;
  --bg: #ECEFEE;
  --white: #FFFFFF;
  --text-dark: #222;
  --text-body: #444;
  --text-light: #777;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --r-card: 14px;
  --r-btn: 28px;
  --max-w: 1140px;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text-dark);line-height:1.5;overflow-x:hidden;}
a{color:inherit;text-decoration:none;}
a:hover{text-decoration:underline;}
ul{list-style:none;}
img{display:block;max-width:100%;}
button{font-family:inherit;cursor:pointer;}

.breadcrumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 24px 0;
  font-size: 13px;
  color: #888;
}
.breadcrumbs a { color: var(--blue-link); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

.header {
  background: var(--white);
  border-bottom: 1px solid #E5E7EB;
  padding: 0 48px;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.3px;
  justify-self: start;
}
.header__logo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.header__logo-link:hover { text-decoration: none; }
.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  transition: color 0.2s;
  white-space: nowrap;
}
.header__nav a:hover { color: var(--red); text-decoration: none; }
.header__nav a.active { color: var(--red); font-weight: 600; }
.header__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  gap: 2px;
}
.header__phone-number {
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 24px;
  letter-spacing: 0.5px;
  display: inline-block;
  transition: opacity 0.2s;
}
.header__phone-number:hover { opacity: 0.88; text-decoration: none; }
.header__phone-ext {
  font-size: 11px;
  color: #888;
  font-weight: 400;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  flex-shrink: 0;
  justify-self: end;
}
.burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.open { display: block; opacity: 1; }
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-bottom: 1px solid #E5E7EB;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.menu-link {
  display: block;
  width: 100%;
  max-width: 280px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--blue);
  padding: 14px 0;
  border-bottom: 1px solid #F0F0F0;
  transition: color 0.2s;
}
.mobile-menu a.menu-link:last-of-type { border-bottom: none; }
.mobile-menu a.menu-link:hover { color: var(--red); text-decoration: none; }
.mobile-menu .mobile-phone {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mobile-menu .mobile-phone .header__phone-number { font-size: 18px; padding: 8px 28px; }
.mobile-menu .mobile-phone .header__phone-ext { font-size: 12px; color: #888; }
.mobile-menu__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #F0F0F0;
}
.mobile-menu__logo svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.mobile-logo-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  max-width: 280px;
}
.mobile-logo-link:hover { text-decoration: none; }

.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  background: url('https://morg-tarniy.ru/wp-content/uploads/2026/05/bg_2908919527.jpg') center 30% / cover no-repeat;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(0.2);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 52px 24px 58px;
  max-width: 960px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.hero__schedule {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto 38px;
}
.hero__btn {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--r-btn);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.hero__btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  text-decoration: none;
}
.hero__address {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  flex-direction: column;
}
.hero__address-main {
  padding: 14px 24px;
  background: var(--blue);
  text-align: center;
}
.hero__address-main .city {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
  margin-bottom: 2px;
}
.hero__address-main .street {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero__address-num {
  padding: 12px 24px;
  text-align: center;
  background: rgba(0,0,0,0.2);
}
.hero__address-num .num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1px;
}
.hero__address-num .corp {
  font-size: 12px;
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.main {
  max-width: var(--max-w);
  margin: -32px auto 0;
  padding: 0 24px 56px;
  position: relative;
  z-index: 3;
}
.card {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  cursor: pointer;
  border-bottom: 1px solid #F0F0F0;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s;
}
.card__header:hover { background: #FAFAFA; }
.card__header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}
.card__arrow {
  width: 24px;
  height: 24px;
  color: #AAA;
  transition: transform 0.3s ease, color 0.2s;
  flex-shrink: 0;
}
.card__header:hover .card__arrow { color: var(--blue); }
.card__header.active .card__arrow { transform: rotate(180deg); color: var(--blue); }
.card__body {
  padding: 24px 32px 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}
.card__body h3 {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  margin: 20px 0 10px;
}
.card__body h3:first-child { margin-top: 0; }
.card__body p { margin-bottom: 10px; }
.card__body p:last-child { margin-bottom: 0; }
.card__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.card__body table th, .card__body table td {
  padding: 10px 14px;
  border: 1px solid #eee;
  text-align: left;
  font-size: 14px;
}
.card__body table th { background: #f5f5f5; font-weight: 600; }

.links-section__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 14px;
}
.links-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.link-card {
  border-radius: var(--r-card);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.25s, transform 0.2s;
  overflow: hidden;
}
.link-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.link-card--white {
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.link-card--blue {
  background: var(--blue-link);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(42,92,176,0.2);
}
.link-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-card--white .link-card__icon { background: #F4F5F7; }
.link-card--blue .link-card__icon { background: rgba(255,255,255,0.12); }
.link-card__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.link-card__text .name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.15px;
  margin-bottom: 6px;
}
.link-card__text .desc {
  font-size: 11.5px;
  line-height: 1.55;
  opacity: 0.7;
  font-weight: 400;
}
.link-card--blue .link-card__text .desc { opacity: 0.85; }

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.official-info {
  background: var(--white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  margin-bottom: 20px;
}
.official-info h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.official-info__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}
.official-info__item {
  display: flex;
  flex-direction: column;
}
.official-info__label {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  margin-bottom: 2px;
}
.official-info__value {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
}

.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 24px 56px;
}
.page-content h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}
.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}
.page-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--red);
}
.page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 14px;
}
.page-content ul {
  margin: 10px 0 14px 20px;
  list-style: disc;
}
.page-content ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 6px;
}
.page-content .card {
  margin-bottom: 20px;
}

.footer {
  background: var(--blue-footer);
  color: var(--white);
  padding: 38px 48px 22px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer__block { max-width: 460px; }
.footer__block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}
.footer__block-title svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.footer__block p {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.9;
}
.footer__right { text-align: right; flex-shrink: 0; }
.footer__phone a { color: inherit; text-decoration: none; }
.footer__phone a:hover { text-decoration: none; }
.footer__phone {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.footer__phone-add {
  font-weight: 400;
  font-size: 13px;
  opacity: 0.8;
}
.footer__phone-add b { font-weight: 700; }
.footer__free {
  font-size: 12px;
  opacity: 0.55;
  font-weight: 400;
}
.footer__address {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
}
.footer__address a {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer__address a:hover { opacity: 1; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.65;
}
.footer__nav {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.footer__nav a {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer__nav a:hover { opacity: 1; text-decoration: underline; }
.footer__disclaimer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  line-height: 1.6;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .header { padding: 0 16px; height: 56px; grid-template-columns: 1fr auto; }
  .header__logo { font-size: 14px; }
  .header__logo svg { width: 22px; height: 22px; }
  .header__nav, .header__phone { display: none !important; }
  .burger { display: flex; }
  .hero__content { padding: 38px 16px 46px; }
  .hero h1 { font-size: 18px; line-height: 1.4; }
  .hero__schedule { font-size: 12.5px; margin-bottom: 26px; }
  .hero__buttons { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 30px; }
  .hero__btn { width: 100%; max-width: 320px; padding: 12px 20px; font-size: 13.5px; }
  .hero__address { max-width: 320px; }
  .hero__address-main .city { font-size: 14px; }
  .hero__address-main .street { font-size: 10px; }
  .hero__address-num .num { font-size: 28px; }
  .main { padding: 0 16px 40px; margin-top: -24px; }
  .card__header { padding: 18px 20px; }
  .card__header h2 { font-size: 16px; }
  .card__body { padding: 20px 20px 24px; font-size: 13.5px; }
  .links-section__grid { grid-template-columns: 1fr; gap: 12px; }
  .link-card { padding: 16px 18px; }
  .footer { padding: 28px 16px 16px; }
  .footer__top { flex-direction: column; gap: 24px; padding-bottom: 20px; }
  .footer__right { text-align: left; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: center; gap: 16px; }
  .footer__nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .official-info__grid { grid-template-columns: 1fr; }
  .map-container { height: 280px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 16px; }
  .hero__schedule { font-size: 11.5px; }
  .header__logo { font-size: 13px; }
  .hero__address-main .city { font-size: 13px; }
  .hero__address-num .num { font-size: 24px; }
  .footer__phone { font-size: 16px; }
  .footer__block-title { font-size: 13px; }
  .footer__bottom { font-size: 11px; }
}
