/*
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{scroll-padding-top:50px;-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);
  box-shadow: 0px 0px 0px 1px #c3c2ce6b;
  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; }

.top-bar {
  background: var(--white);
  padding: 0 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-bar__nav a {
  font-size: 12px;
  font-weight: 500;
  color: #5654b0;
  transition: color 0.2s;
  white-space: nowrap;
}
.top-bar__nav a:hover { color: var(--red); 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;
  box-shadow: 0 1px 0 0 #708ab3;
}
.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(27, 73, 210, 0.5);
  color: #fff;
}
.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;
  scroll-margin-top: 50px;
}
.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; }

.page-calc h1 { font-size: 28px; }
.calc-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.calc-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.calc-section label {
  display: block;
  margin-bottom: 12px;
}
.calc-section > label:last-child { margin-bottom: 0; }
.calc-label { display: block !important; }
.calc-label-text {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.calc-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}
.calc-select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,61,158,0.1); }
.calc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.calc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}
.calc-total-block {
  background: var(--blue);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.calc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}
.calc-total-row span:last-child { font-weight: 500; }
.calc-total-divider {
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 12px 0;
}
.calc-grand {
  font-size: 18px;
  font-weight: 700;
}
.calc-grand span:last-child { font-size: 22px; }
.calc-allowance {
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
  margin-top: 8px;
}
.calc-contract {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.calc-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}
.calc-btn {
  flex: 1;
  text-align: center;
  padding: 14px 20px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.calc-btn:hover { text-decoration: none; transform: translateY(-1px); }
.calc-btn--primary {
  background: var(--green);
  color: #fff;
}
.calc-btn--primary:hover { opacity: 0.9; }
.calc-btn--secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.calc-btn--secondary:hover { background: var(--blue); color: #fff; }

.calc-form {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}
.calc-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.calc-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}
.calc-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,61,158,0.1); }
.calc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  cursor: pointer;
}
.calc-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}
.calc-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.review-card {
  background: #F8F9FA;
  border-radius: 10px;
  padding: 16px 18px;
}
.review-card p:first-child { font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.review-card p:last-child { font-size: 13px; line-height: 1.5; color: var(--text-body); margin: 0; }

.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.4;
  color: var(--text-body);
  margin-bottom: 30px;
}
.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;
}

/* Calculator type toggle */
.calc-type-toggle {
  display: inline-flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  gap: 0;
}
.calc-type-toggle input[type="radio"] {
  display: none;
}
.calc-type-btn {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  white-space: nowrap;
}
.calc-type-toggle input[type="radio"]:checked + .calc-type-btn {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26,61,158,0.2);
}
.calc-select-large {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23444' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.calc-select-large:focus {
  outline: none;
  border-color: var(--blue);
}
.calc-section-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.calc-section label { margin-bottom: 0; }

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-dark);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.blog-card:hover::before {
  transform: scaleX(1);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  text-decoration: none;
}
.blog-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #E8EDF9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  transition: background 0.2s;
}
.blog-card:hover .blog-card-icon {
  background: var(--blue);
  color: var(--white);
}
.blog-card-icon svg {
  width: 26px;
  height: 26px;
}
.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--blue-dark);
}
.blog-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.55;
  flex-grow: 1;
}

/* Article page */
.page-article {
  max-width: 780px;
}
.page-article h1 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--blue-dark);
}
.article-intro {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e8e8e8;
}
.page-article h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--text-dark);
}
.page-article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text-dark);
}
.page-article p {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}
.page-article ul {
  padding-left: 24px;
  list-style: disc;
  margin-bottom: 14px;
}
.page-article li {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 8px;
}
.article-cta {
  background: #E8EDF9;
  border-radius: var(--r-card);
  padding: 28px 32px;
  margin-top: 40px;
  text-align: center;
}
.article-cta p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--blue);
  color: var(--white);
  border-radius: var(--r-btn);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.cta-btn:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

/* Article related */
.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e8e8e8;
}
.article-related h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--text-dark);
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-related-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-decoration: none;
}
.article-related-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--blue-dark);
}
.article-related-card p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 12px;
  flex-grow: 1;
}
.article-related-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-link);
}
.article-related-card:hover .article-related-link {
  color: var(--red);
}

/* Online chat widget */
#morg-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}
#morg-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,61,158,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
#morg-chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(26,61,158,0.4);
}
#morg-chat-toggle svg {
  width: 28px;
  height: 28px;
}
#morg-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
#morg-chat-badge.hidden { display: none; }
#morg-chat-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  height: 460px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s;
}
#morg-chat-window.hidden {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}
#morg-chat-header {
  background: var(--blue);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
#morg-chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
#morg-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 4px;
}
#morg-chat-close:hover { opacity: 1; }
#morg-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#morg-chat-messages .msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}
#morg-chat-messages .msg.bot {
  background: var(--white);
  color: var(--text-body);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#morg-chat-messages .msg.user {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
#morg-chat-messages .msg a {
  color: var(--blue-link);
  text-decoration: underline;
}
#morg-chat-messages .msg.user a {
  color: #fff;
  text-decoration: underline;
}
.msg.typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #aaa;
  margin: 0 2px;
  animation: typing-bounce 1.4s infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
#morg-chat-input {
  padding: 12px;
  border-top: 1px solid #e8e8e8;
  display: flex;
  gap: 8px;
  background: var(--white);
  flex-shrink: 0;
}
#morg-chat-field {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
#morg-chat-field:focus {
  border-color: var(--blue);
}
#morg-chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
  flex-shrink: 0;
}
#morg-chat-send:hover {
  background: var(--blue-dark);
}

@media (max-width: 768px) {
  .top-bar { padding: 0 12px; height: auto; }
  .top-bar__nav { gap: 10px; flex-wrap: wrap; justify-content: center; padding: 6px 0; }
  .top-bar__nav a { font-size: 11px; }
  html { scroll-padding-top: 60px; }
  .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; }
  .mobile-menu { top: 96px; }
  .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; }
  .reviews-grid { grid-template-columns: 1fr; }
  .calc-form { padding: 16px; }
  .calc-buttons { flex-direction: column; gap: 10px; }
  .page-calc h1 { font-size: 22px; }
  .calc-section { padding: 16px; }
  .calc-contract { font-size: 17px; }
  .official-info__grid { grid-template-columns: 1fr; }
  .map-container { height: 280px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card { min-height: auto; padding: 28px 22px; }
  .page-article h1 { font-size: 22px; }
  .article-intro { font-size: 15px; padding-bottom: 18px; }
  .page-article h2 { font-size: 19px; }
  .page-article p, .page-article li { font-size: 15px; }
  .article-cta { padding: 22px 18px; }
  .article-related-grid { grid-template-columns: 1fr; gap: 14px; }
  .article-related-card { padding: 18px 16px; }
  #morg-chat { bottom: 14px; right: 14px; }
  #morg-chat-toggle { width: 50px; height: 50px; }
  #morg-chat-toggle svg { width: 24px; height: 24px; }
  #morg-chat-window { width: calc(100vw - 28px); right: 0; bottom: 64px; height: 400px; }
}
@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; }
}
