:root {
  --color-primary: #b31324;
  --color-primary-dark: #8f0e1c;
  --color-text: #171717;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f8;
  --color-card: #ffffff;
  --color-border: #e5e7eb;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 16px 40px rgba(17, 17, 17, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
}

.container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 40px, 820px);
}

.center {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: 236px;
}

.site-brand a {
  display: inline-flex;
  align-items: center;
}

.site-brand img,
.custom-logo {
  width: 236px;
  max-height: 62px;
  object-fit: contain;
}

.site-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu {
  justify-content: center;
}

.site-menu > .menu-item {
  position: relative;
}

.site-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-menu a:hover::after,
.site-menu .current-menu-item > a::after {
  transform: scaleX(1);
}

.site-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  display: grid;
  min-width: 228px;
  gap: 4px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-menu .menu-item-has-children:hover > .sub-menu,
.site-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-menu .sub-menu a {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
}

.site-menu .sub-menu a::after {
  display: none;
}

.site-menu .sub-menu a:hover,
.site-menu .sub-menu .current-menu-item > a {
  background: #f8eef0;
  color: var(--color-primary-dark);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__actions .btn {
  min-width: 168px;
  padding-right: 18px;
  padding-left: 18px;
  white-space: nowrap;
}

.header-phones {
  display: grid;
  gap: 4px;
  min-width: 192px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.12;
}

.header-phone--secondary {
  font-size: 15px;
  font-weight: 850;
  color: var(--color-text);
}

.header-phone svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--color-primary);
  stroke-width: 2.4;
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(179, 19, 36, 0.22);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
}

.btn--outline {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: rgba(179, 19, 36, 0.42);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--color-primary);
}

.btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button-row--center {
  justify-content: center;
}

.hero-section {
  padding: 34px 0 34px;
  background:
    linear-gradient(90deg, #fff 0%, #fff 43%, rgba(247, 247, 248, 0.72) 43%, rgba(247, 247, 248, 0.72) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 40px;
  align-items: center;
}

.hero-content {
  padding: 42px 0;
}

.hero-content h1,
.page-hero h1,
.article-card h1,
.content-card--large h1 {
  margin: 0;
  color: var(--color-text);
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-content p,
.page-hero p {
  max-width: 620px;
  margin: 22px 0 28px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-card);
}

.hero-visual__building {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.18) 36%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-team-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  width: min(360px, calc(100% - 56px));
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.hero-team-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
}

.team-photo-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.team-photo-stack img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.team-photo-stack--mini {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  gap: 4px;
}

.team-photo-stack--mini img {
  border-radius: 12px;
}

.team-photo-stack--wide {
  min-height: 430px;
}

.hero-team-card strong,
.hero-team-card span {
  display: block;
}

.hero-team-card strong {
  font-size: 17px;
  font-weight: 900;
}

.hero-team-card span {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-mini-cards {
  position: absolute;
  top: 72px;
  right: 28px;
  z-index: 3;
  display: grid;
  gap: 12px;
  width: 260px;
}

.mini-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.08);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}

.mini-card svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.section,
.benefits-section,
.page-content-section,
.article-hero,
.not-found-section {
  padding: 76px 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

.benefits-section {
  padding-top: 34px;
  padding-bottom: 34px;
  background: #fff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.benefit-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 15px;
  min-height: 124px;
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.benefit-card:last-child {
  border-right: 0;
}

.benefit-card h2,
.service-card h3,
.info-card h3,
.property-card h3,
.specialist-card h3,
.step-card h3,
.news-card h3,
.review-card strong,
.contact-card span,
.service-detail h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
}

.benefit-card p,
.service-card p,
.info-card p,
.property-card p,
.specialist-card p,
.step-card p,
.news-card p,
.review-card p,
.service-detail p {
  margin: 9px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.icon-box {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: rgba(179, 19, 36, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
}

.icon-box svg {
  width: 25px;
  height: 25px;
}

.section-head {
  max-width: 690px;
  margin-bottom: 30px;
}

.section-head--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-head h1,
.section-head h2,
.form-heading h2,
.lead-note h2,
.about-copy h2,
.trust-layout h2,
.legal-card h2,
.faq-grid h2,
.cta-band h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 34px;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
}

.section-head p,
.form-heading p,
.lead-note p,
.about-copy p,
.trust-layout p,
.legal-card p,
.faq-grid p,
.cta-band p {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.65;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
}

.link-more svg {
  width: 18px;
  height: 18px;
}

.newbuildings-layout {
  display: grid;
  grid-template-columns: 0.9fr 2fr;
  gap: 22px;
  align-items: stretch;
}

.newbuildings-layout--page {
  grid-template-columns: 1.2fr 0.8fr;
}

.newbuildings-layout--frame {
  display: block;
}

.aggregator-widget-placeholder {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(45deg, #e5e7eb 0 10px, #f3f4f6 10px 20px) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.aggregator-widget-placeholder .placeholder-icon {
  display: inline-flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-primary);
  background: var(--color-bg-soft);
  border-radius: 20px;
}

.aggregator-widget-placeholder svg {
  width: 38px;
  height: 38px;
}

.aggregator-widget-placeholder h3 {
  max-width: 300px;
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.aggregator-widget-placeholder p {
  max-width: 360px;
  margin: 12px auto 0;
  color: var(--color-muted);
  font-size: 14px;
}

.aggregator-widget-placeholder--live {
  display: block;
  min-height: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.aggregator-widget-placeholder__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.aggregator-widget-placeholder__head h3 {
  max-width: none;
  margin-top: 8px;
}

.aggregator-widget-placeholder__head p {
  max-width: 620px;
  margin: 10px 0 0;
}

.aggregator-widget-placeholder__frame {
  overflow: hidden;
  height: 1280px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 18px;
}

.newbuildings-layout--page .aggregator-widget-placeholder__frame {
  height: 1680px;
}

.aggregator-widget-placeholder__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.aggregator-widget-placeholder__fallback {
  max-width: none !important;
  margin: 12px 0 0 !important;
  color: var(--color-muted);
}

.newbuildings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.newbuildings-grid--wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-card,
.service-card,
.info-card,
.specialist-card,
.step-card,
.news-card,
.review-card,
.content-card,
.contact-card,
.legal-card,
.legal-content,
.faq-list details {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.property-card {
  overflow: hidden;
}

.property-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--color-bg-soft);
}

.property-card__image {
  position: relative;
  display: block;
  overflow: hidden;
}

.property-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(143, 14, 28, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.property-card__body {
  padding: 18px;
}

.property-price {
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 900;
}

.property-params {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.property-params span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  background: var(--color-bg-soft);
  font-size: 12px;
  font-weight: 800;
}

.property-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.property-gallery figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.property-gallery img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.property-carousel {
  display: grid;
  gap: 14px;
}

.property-carousel__viewport {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.property-carousel__slide {
  display: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.property-carousel__slide.is-active {
  display: block;
}

.property-carousel__slide img {
  height: 440px;
  border-radius: 0;
}

.property-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(179, 19, 36, 0.18);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.property-carousel__nav:hover {
  color: #fff;
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.04);
}

.property-carousel__nav svg {
  width: 22px;
  height: 22px;
}

.property-carousel__nav--prev {
  left: 18px;
}

.property-carousel__nav--prev svg {
  transform: rotate(180deg);
}

.property-carousel__nav--next {
  right: 18px;
}

.property-carousel__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.property-carousel__thumb {
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.08);
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.property-carousel__thumb:hover,
.property-carousel__thumb.is-active {
  border-color: var(--color-primary);
  opacity: 1;
  transform: translateY(-2px);
}

.property-carousel__thumb img {
  height: 120px;
}

.property-detail-card,
.property-description {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.property-detail-card {
  position: sticky;
  top: 110px;
  padding: 26px;
}

.property-specs {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.property-specs div {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.property-specs dt {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.property-specs dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 850;
}

.property-description {
  padding: 34px;
}

.secondary-empty {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 42px;
  min-height: 260px;
  text-align: center;
  border: 1px solid rgba(179, 19, 36, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 18% 20%, rgba(179, 19, 36, 0.12), transparent 32%),
    linear-gradient(135deg, #fff, #fff7f8);
  box-shadow: var(--shadow-card);
}

.secondary-empty h3 {
  margin: 0;
  font-size: 26px;
}

.secondary-empty p {
  max-width: 620px;
  margin: 0;
  color: var(--color-muted);
}

.property-card__body span,
.news-card time,
.section-label,
.review-card > span,
.property-card__body span {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.services-grid,
.cards-3,
.reviews-grid,
.contacts-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid--page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.info-card {
  min-height: 220px;
  padding: 24px;
}

.service-card .icon-box,
.info-card .icon-box {
  margin-bottom: 20px;
}

.specialists-section {
  background: #fff;
}

.team-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
}

.team-feature__image img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.team-feature__image .team-photo-stack img {
  height: 430px;
}

.team-feature__content {
  padding: 16px 20px 16px 0;
}

.team-feature__content h3 {
  margin: 10px 0 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
}

.team-feature__content p {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.65;
}

.team-badges,
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.team-badges span,
.trust-list span,
.category-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.team-badges svg,
.trust-list svg {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.specialist-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 18px;
}

.specialist-card--large {
  grid-template-columns: 180px 1fr;
  min-height: 260px;
}

.specialist-card img {
  width: 132px;
  height: 164px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: var(--color-bg-soft);
}

.specialist-card--large img {
  width: 180px;
  height: 220px;
}

.specialist-photo {
  object-fit: cover;
  object-position: center 16%;
}

.specialist-photo--anna {
  object-position: center 12%;
}

.specialist-photo--natalya {
  object-position: center 18%;
}

.specialist-photo--team {
  object-position: center 10%;
}

.hero-team-card .specialist-photo--team {
  object-position: center 8%;
}

.team-feature__image .specialist-photo--team,
.about-photo .specialist-photo--team {
  object-position: center 8%;
}

.certificates-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  margin: 28px 0 0;
  padding: 26px;
  border: 1px solid rgba(179, 19, 36, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(179, 19, 36, 0.1), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff 58%, rgba(179, 19, 36, 0.05) 100%);
  box-shadow: var(--shadow-card);
}

.certificates-panel__content h2,
.certificates-panel__content h3 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
}

.certificates-panel__content p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.certificate-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.certificate-card:hover {
  transform: translateY(-3px);
  border-color: rgba(179, 19, 36, 0.28);
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.12);
}

.certificate-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  background: var(--color-bg-soft);
}

.certificate-card span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.certificate-card strong {
  font-size: 16px;
  line-height: 1.25;
}

.specialist-card ul,
.lead-note ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
  font-size: 14px;
}

.specialist-card li,
.lead-note li {
  display: flex;
  gap: 8px;
}

.specialist-card svg,
.lead-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--color-primary);
}

.property-card,
.news-card,
.review-card {
  height: 100%;
}

.steps-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.step-card,
.timeline-grid article {
  position: relative;
  min-height: 190px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.step-card__number,
.timeline-grid span,
.info-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-grid--page {
  margin-top: 24px;
}

.news-card {
  overflow: hidden;
}

.news-card__image,
.news-card > img {
  display: block;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.news-card__image img,
.news-card > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.news-card__body {
  padding: 20px;
}

.news-card h2,
.news-card h3 {
  margin: 8px 0 0;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

.review-card {
  min-height: 190px;
  padding: 24px;
}

.review-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.stars {
  display: inline-flex;
  gap: 3px;
  color: var(--color-primary);
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
}

.section-action {
  margin-top: 26px;
}

.lead-section {
  background: linear-gradient(90deg, var(--color-bg-soft), #fff);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 28px;
  align-items: stretch;
}

.lead-note {
  min-height: 370px;
  padding: 36px;
  background:
    radial-gradient(circle at 88% 18%, rgba(179, 19, 36, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 244, 246, 0.9));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.lead-form {
  padding: 28px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid__wide {
  grid-column: 1 / -1;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lead-form input {
  min-height: 48px;
  padding: 0 14px;
}

.lead-form textarea {
  min-height: 118px;
  padding: 14px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(179, 19, 36, 0.08);
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: start;
  gap: 10px !important;
  margin: 16px 0;
  color: var(--color-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.checkbox-line input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.form-message.is-error {
  color: var(--color-primary-dark);
}

.form-message.is-success {
  color: #166534;
}

.lead-form--fluent {
  display: grid;
  gap: 18px;
}

.form-heading--compact h2 {
  margin-bottom: 2px;
}

.lead-form--unavailable {
  display: grid;
  min-height: 220px;
  align-content: center;
}

.lead-form .frm-fluent-form,
.lead-form .fluentform {
  font-family: inherit;
}

.lead-form .ff-el-group {
  margin-bottom: 14px;
}

.lead-form .ff-el-input--label label,
.lead-form .ff-el-form-check-label {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.lead-form .ff-el-form-control,
.lead-form .ff-el-form-control:focus {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 15px;
  box-shadow: none;
  outline: none;
}

.lead-form textarea.ff-el-form-control {
  min-height: 118px;
  resize: vertical;
}

.lead-form .ff-el-form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(179, 19, 36, 0.08);
}

.lead-form .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 12px 24px rgba(179, 19, 36, 0.18);
}

.lead-form .ff-btn-submit:hover,
.lead-form .ff-btn-submit:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.lead-form .ff-message-success,
.lead-form .ff-errors-in-stack,
.lead-form .error.text-danger {
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.contacts-layout--page {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
}

.contacts-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contacts-cards--large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
}

.contact-card svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.map-placeholder {
  display: flex;
  min-height: 360px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(179, 19, 36, 0.08), rgba(255, 255, 255, 0.8)),
    repeating-linear-gradient(0deg, #f2f3f5 0 22px, #ffffff 22px 44px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.map-placeholder--tall {
  min-height: 430px;
}

.map-placeholder div {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.map-placeholder svg {
  width: 46px;
  height: 46px;
  color: var(--color-primary);
}

.map-placeholder strong {
  font-size: 22px;
  font-weight: 900;
}

.map-placeholder span {
  color: var(--color-muted);
}

.yandex-map-card {
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.yandex-map-card__frame {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  background:
    linear-gradient(135deg, rgba(179, 19, 36, 0.06), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(0deg, #f2f3f5 0 22px, #ffffff 22px 44px);
}

.yandex-map-card__frame iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0;
}

.yandex-map-card__fallback {
  margin: 0;
  padding: 14px 18px 18px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}

.page-hero {
  padding: 70px 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    url("../img/hero-building.jpg") center / cover;
  border-bottom: 1px solid var(--color-border);
}

.page-hero--compact {
  padding: 54px 0;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: center;
}

.page-hero__panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.page-hero__panel span {
  display: block;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
}

.page-hero__panel strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.page-hero__panel p {
  margin-bottom: 0;
  font-size: 14px;
}

.service-detail-list {
  display: grid;
  gap: 18px;
}

.service-detail {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.service-detail span {
  display: block;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-photo .team-photo-stack {
  height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.about-photo .team-photo-stack img {
  height: 520px;
  box-shadow: none;
}

.about-copy {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
}

.trust-list {
  margin-top: 0;
}

.cta-band {
  padding: 54px 0;
  background: var(--color-bg-soft);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.faq-grid,
.legal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 18px 22px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--color-text);
  font-size: 17px;
  font-weight: 900;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.news-card__meta span {
  color: var(--color-primary);
  background: rgba(179, 19, 36, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
}

.blog-recommendations {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: center;
  margin: 44px 0 0;
  padding: 28px;
  border: 1px solid rgba(179, 19, 36, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(179, 19, 36, 0.12), transparent 34%),
    linear-gradient(135deg, #fff, #fff7f8);
  box-shadow: var(--shadow-card);
}

.blog-recommendations h2 {
  margin: 10px 0;
}

.recommendation-links {
  display: grid;
  gap: 10px;
}

.recommendation-links a,
.post-navigation a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.06);
}

.recommendation-links a:hover,
.post-navigation a:hover {
  border-color: rgba(179, 19, 36, 0.32);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.post-navigation__item:empty {
  display: none;
}

.post-navigation a {
  min-height: 94px;
  align-items: flex-start;
  flex-direction: column;
}

.post-navigation span {
  color: var(--color-muted);
  font-size: 13px;
}

.post-navigation strong {
  color: inherit;
}

.legal-section {
  background: var(--color-bg-soft);
}

.legal-card {
  position: sticky;
  top: 102px;
  padding: 26px;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.55;
}

.legal-list li {
  padding-left: 18px;
  position: relative;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-primary);
}

.legal-content {
  padding: 34px;
}

.legal-content h2 {
  margin: 30px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.entry-content p {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
}

.content-card {
  padding: 28px;
}

.content-card--large {
  padding: 42px;
}

.article-card {
  padding: 42px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.article-card time {
  display: block;
  margin: 14px 0 26px;
  color: var(--color-muted);
  font-weight: 800;
}

.article-card__image {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.breadcrumb-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--color-primary);
  font-weight: 900;
}

.not-found-section {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.error-code {
  display: block;
  color: var(--color-primary);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.site-footer {
  padding: 52px 0 30px;
  background: #151515;
  color: #fff;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.75fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.site-footer__inner > *,
.site-footer__brand {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  width: 230px;
  padding: 8px 0;
}

.footer-logo img {
  width: 230px;
  height: auto;
}

.site-footer p,
.footer-contacts,
.footer-menu a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__brand p {
  max-width: 330px;
  margin: 16px 0;
}

.footer-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.footer-menu,
.footer-contacts {
  display: grid;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-socials a {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.footer-copy {
  margin-top: 20px;
  font-size: 13px;
}

.nav-links,
.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.page-numbers {
  align-items: center;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.page-numbers .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

@media (min-width: 1441px) {
  .container {
    width: min(100% - 64px, 1280px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(560px, 1.12fr);
  }

  .hero-visual,
  .hero-visual__building {
    min-height: 560px;
    height: 560px;
  }
}

@media (max-width: 1180px) {
  .site-header__inner {
    gap: 18px;
  }

  .site-menu {
    gap: 16px;
  }

  .header-phones {
    min-width: auto;
  }

  .header-phone--secondary {
    display: none;
  }

  .header-phone span {
    display: none;
  }

  .hero-content h1,
  .page-hero h1,
  .article-card h1,
  .content-card--large h1 {
    font-size: 44px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .container,
  .container.narrow {
    width: min(100% - 32px, 940px);
  }

  .site-header__inner {
    grid-template-columns: auto auto 1fr;
  }

  .site-menu-toggle {
    display: inline-flex;
    order: 3;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }

  body.is-menu-open .site-nav {
    display: block;
  }

  .site-menu {
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .site-menu a {
    min-height: 42px;
  }

  .site-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 8px 14px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-menu .sub-menu a {
    min-height: 36px;
    padding: 0 10px;
    color: var(--color-muted);
  }

  .site-header__actions {
    order: 2;
    justify-self: end;
  }

  .hero-section {
    background: #fff;
  }

  .hero-grid,
  .team-feature,
  .lead-layout,
  .contacts-layout,
  .property-detail-layout,
  .page-hero__inner,
  .about-layout,
  .trust-layout,
  .faq-grid,
  .legal-layout,
  .newbuildings-layout,
  .newbuildings-layout--page {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 28px 0 0;
  }

  .hero-visual {
    min-height: 470px;
  }

  .benefits-grid,
  .steps-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .benefit-card:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .newbuildings-grid,
  .news-grid,
  .reviews-grid,
  .cards-3,
  .contacts-cards,
  .services-grid,
  .services-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-card {
    position: static;
  }
}

@media (max-width: 768px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .section,
  .page-content-section,
  .article-hero,
  .not-found-section {
    padding: 56px 0;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .site-brand,
  .site-brand img,
  .custom-logo {
    width: 168px;
  }

  .site-nav {
    top: 68px;
  }

  .site-header__actions .btn {
    display: none;
  }

  .hero-content h1,
  .page-hero h1,
  .article-card h1,
  .content-card--large h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .hero-content p,
  .page-hero p {
    font-size: 16px;
  }

.section-head h1,
.section-head h2,
  .form-heading h2,
  .lead-note h2,
  .about-copy h2,
  .trust-layout h2,
  .legal-card h2,
  .faq-grid h2,
  .cta-band h2 {
    font-size: 28px;
  }

  .section-head--row,
  .cta-band__inner {
    display: grid;
    align-items: start;
  }

  .hero-visual,
  .hero-visual__building {
    min-height: 420px;
    height: 420px;
  }

  .yandex-map-card__frame {
    min-height: 340px;
  }

  .yandex-map-card__frame iframe {
    height: 340px !important;
  }

  .hero-mini-cards {
    top: 18px;
    right: 18px;
    width: 232px;
  }

  .hero-team-card {
    left: 18px;
    bottom: 18px;
    width: calc(100% - 36px);
  }

  .aggregator-widget-placeholder__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .aggregator-widget-placeholder__frame {
    height: 1320px;
  }

  .property-carousel__slide img {
    height: 360px;
  }

  .property-detail-card {
    position: static;
  }

  .property-specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .team-feature__image img,
  .team-feature__image .team-photo-stack,
  .team-feature__image .team-photo-stack img,
  .about-photo img,
  .about-photo .team-photo-stack,
  .about-photo .team-photo-stack img {
    height: 380px;
  }

  .team-feature__image .specialist-photo--team,
  .about-photo .specialist-photo--team {
    object-position: center 6%;
  }

  .team-feature__content {
    padding: 4px;
  }

  .team-feature__content h3 {
    font-size: 26px;
  }

  .certificates-panel {
    grid-template-columns: 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .specialist-card,
  .specialist-card--large {
    grid-template-columns: 116px 1fr;
  }

  .specialist-card img,
  .specialist-card--large img {
    width: 116px;
    height: 146px;
  }

  .lead-note,
  .lead-form,
  .content-card--large,
  .article-card,
  .legal-content,
  .about-copy,
  .cta-band__inner {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .container.narrow {
    width: min(100% - 24px, 520px);
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .site-brand,
  .site-brand img,
  .custom-logo {
    width: 144px;
  }

  .header-phone {
    width: 42px;
    height: 42px;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
  }

  .hero-content h1,
  .page-hero h1,
  .article-card h1,
  .content-card--large h1 {
    font-size: 32px;
  }

  .button-row,
  .hero-points {
    align-items: stretch;
  }

  .button-row .btn {
    width: 100%;
  }

  .hero-visual,
  .hero-visual__building {
    min-height: 500px;
    height: 500px;
  }

  .hero-mini-cards {
    right: 14px;
    left: 14px;
    width: auto;
  }

  .hero-team-card {
    grid-template-columns: 72px 1fr;
  }

  .hero-team-card img {
    width: 72px;
    height: 72px;
  }

  .benefits-grid,
  .newbuildings-grid,
  .news-grid,
  .reviews-grid,
  .cards-3,
  .contacts-cards,
  .services-grid,
  .services-grid--page,
  .specialists-grid,
  .steps-grid,
  .timeline-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .benefit-card:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--color-border);
  }

  .benefit-card:last-child {
    border-bottom: 0;
  }

  .property-card img,
  .news-card__image,
  .news-card__image img,
  .news-card > img {
    height: 210px;
  }

  .aggregator-widget-placeholder--live {
    padding: 0;
  }

  .aggregator-widget-placeholder__frame {
    height: 1500px;
    border-radius: 14px;
  }

  .property-carousel__slide img {
    height: 280px;
  }

  .property-carousel__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-carousel__thumb img {
    height: 84px;
  }

  .property-carousel__nav {
    width: 40px;
    height: 40px;
  }

  .certificates-panel {
    padding: 18px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 78px;
  }
}

@media (max-width: 390px) {
  .container,
  .container.narrow {
    width: min(100% - 20px, 370px);
  }

  .site-brand,
  .site-brand img,
  .custom-logo {
    width: 132px;
  }

  .hero-content h1,
  .page-hero h1,
  .article-card h1,
  .content-card--large h1 {
    font-size: 30px;
  }

  .section-head h1,
  .section-head h2,
  .form-heading h2,
  .lead-note h2,
  .about-copy h2,
  .trust-layout h2,
  .legal-card h2,
  .faq-grid h2,
  .cta-band h2 {
    font-size: 26px;
  }

  .mini-card {
    min-height: 68px;
    padding: 12px;
  }

  .specialist-card,
  .specialist-card--large {
    grid-template-columns: 1fr;
  }

  .specialist-card img,
  .specialist-card--large img {
    width: 100%;
    height: clamp(330px, 86vw, 390px);
  }

  .specialist-card .specialist-photo--anna {
    object-position: center 36%;
  }

  .specialist-card .specialist-photo--natalya {
    object-position: center 28%;
  }

  .specialist-card .specialist-photo--team {
    object-position: center 26%;
  }
}

@media (max-width: 375px) {
  .hero-content h1,
  .page-hero h1,
  .article-card h1,
  .content-card--large h1 {
    font-size: 29px;
  }

  .lead-note,
  .lead-form,
  .content-card--large,
  .article-card,
  .legal-content,
  .about-copy,
  .cta-band__inner,
  .team-feature {
    padding: 20px;
  }

  .hero-visual,
  .hero-visual__building {
    min-height: 480px;
    height: 480px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Stage 4 urgent visual pass: forms, modal, accents. */
:root {
  --shadow-soft: 0 18px 55px rgba(26, 26, 26, 0.10);
  --shadow-red: 0 18px 42px rgba(179, 19, 36, 0.22);
  --gradient-red: linear-gradient(135deg, #b31324 0%, #8f0e1c 58%, #4b0710 100%);
}

.btn--primary,
.lead-form .ff-btn-submit,
.lead-form button.ff-btn-submit {
  background: var(--gradient-red);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover,
.btn--primary:focus-visible,
.lead-form .ff-btn-submit:hover,
.lead-form .ff-btn-submit:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(179, 19, 36, 0.28);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(179, 19, 36, 0.13), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(143, 14, 28, 0.16), transparent 28%),
    linear-gradient(90deg, #fff 0%, #fff 42%, #f7f7f8 42%, #f7f7f8 100%);
}

.hero-section::before,
.hero-section::after,
.commercial-cta::before,
.lead-note::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
}

.hero-section::before {
  top: 90px;
  left: max(18px, calc((100vw - 1180px) / 2));
  width: 112px;
  height: 112px;
  background: rgba(179, 19, 36, 0.12);
}

.hero-section::after {
  right: max(12px, calc((100vw - 1180px) / 2));
  bottom: 58px;
  width: 168px;
  height: 168px;
  background: rgba(179, 19, 36, 0.16);
}

.hero-content,
.hero-visual,
.lead-note,
.lead-form,
.team-feature,
.commercial-cta {
  position: relative;
  z-index: 1;
}

.hero-visual {
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.14);
}

.hero-mini-cards .mini-card,
.benefit-card,
.service-card,
.property-card,
.news-card,
.review-card,
.contact-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-mini-cards .mini-card:hover,
.benefit-card:hover,
.service-card:hover,
.property-card:hover,
.news-card:hover,
.review-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(179, 19, 36, 0.22);
}

.benefit-card .icon-box,
.service-card .icon-box,
.contact-card svg,
.placeholder-icon,
.mini-card svg {
  background: rgba(179, 19, 36, 0.08);
  color: var(--color-primary);
}

.team-feature {
  overflow: hidden;
  border: 1px solid rgba(179, 19, 36, 0.12);
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.10);
}

.team-feature::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(179, 19, 36, 0.17), transparent 68%);
  pointer-events: none;
}

.specialist-card {
  border-color: rgba(179, 19, 36, 0.14);
}

.specialist-card::before {
  content: "Специалист по недвижимости";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(179, 19, 36, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
}

.lead-note {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(179, 19, 36, 0.14), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 245, 0.9));
  border-color: rgba(179, 19, 36, 0.13);
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
}

.lead-note::before {
  content: "Первая консультация бесплатно";
  width: fit-content;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--gradient-red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: var(--shadow-red);
}

.lead-note::after {
  right: -80px;
  bottom: -92px;
  width: 220px;
  height: 220px;
  background: rgba(179, 19, 36, 0.18);
}

.lead-note h2 {
  margin: 0;
}

.lead-note p {
  max-width: 560px;
}

.lead-note ul,
.lead-benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lead-note li,
.lead-benefits li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 800;
}

.lead-note li::before,
.lead-benefits li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 5px rgba(179, 19, 36, 0.08);
}

.lead-form {
  overflow: hidden;
  padding: 34px;
  border-color: rgba(179, 19, 36, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(179, 19, 36, 0.24), rgba(255, 255, 255, 0.6)) border-box;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.11);
}

.lead-form--compact {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lead-form .frm-fluent-form,
.lead-form form[id^="fluentform_"] {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.lead-form form[id^="fluentform_"] fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.lead-form .ff-el-group {
  min-width: 0;
  margin: 0 !important;
}

.lead-form .ff-el-group:has(textarea),
.lead-form .ff-el-group.ff-el-form-hide_label,
.lead-form .ff_submit_btn_wrapper,
.lead-form .ff-errors-in-stack,
.lead-form .ff-message-success,
.lead-form .ff_success_message {
  grid-column: 1 / -1;
}

.lead-form .ff-el-input--label {
  margin: 0 0 7px;
}

.lead-form .ff-el-input--label label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.lead-form .ff-el-is-required.asterisk-right label::after,
.lead-form .ff-el-is-required label::after {
  content: "*";
  color: var(--color-primary);
}

.lead-form .ff-el-form-control,
.lead-form input.ff-el-form-control,
.lead-form select.ff-el-form-control {
  width: 100% !important;
  min-height: 56px !important;
  padding: 0 17px !important;
  border: 1px solid #d9dde5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--color-text) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(17, 17, 17, 0.02) !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

.lead-form textarea.ff-el-form-control {
  min-height: 148px !important;
  padding: 16px 17px !important;
  resize: vertical;
}

.lead-form .ff-el-form-control:focus,
.lead-form input.ff-el-form-control:focus,
.lead-form textarea.ff-el-form-control:focus,
.lead-form select.ff-el-form-control:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 4px rgba(179, 19, 36, 0.10), inset 0 1px 0 rgba(17, 17, 17, 0.02) !important;
}

.lead-form .ff-el-is-error .ff-el-form-control {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.lead-form .ff-el-form-check,
.lead-form .ff-el-form-check-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--color-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  cursor: pointer;
}

.lead-form .ff-el-form-check-label span {
  display: inline !important;
  padding: 0 !important;
  pointer-events: none;
}

.lead-form input.ff-el-form-check-input[type="checkbox"],
.lead-form input.ff-el-form-check-checkbox[type="checkbox"],
.lead-form .ff-el-form-check input[type="checkbox"] {
  position: relative !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid #c8ced8 !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  accent-color: var(--color-primary);
  cursor: pointer;
  pointer-events: auto !important;
}

.lead-form input.ff-el-form-check-input[type="checkbox"]::after,
.lead-form input.ff-el-form-check-checkbox[type="checkbox"]::after,
.lead-form .ff-el-form-check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.75);
  transition: opacity 140ms ease, transform 140ms ease;
}

.lead-form input.ff-el-form-check-input[type="checkbox"]:checked,
.lead-form input.ff-el-form-check-checkbox[type="checkbox"]:checked,
.lead-form .ff-el-form-check input[type="checkbox"]:checked {
  border-color: var(--color-primary) !important;
  background: var(--color-primary) !important;
}

.lead-form input.ff-el-form-check-input[type="checkbox"]:checked::after,
.lead-form input.ff-el-form-check-checkbox[type="checkbox"]:checked::after,
.lead-form .ff-el-form-check input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.lead-form input.ff-el-form-check-input[type="checkbox"]:focus-visible,
.lead-form input.ff-el-form-check-checkbox[type="checkbox"]:focus-visible,
.lead-form .ff-el-form-check input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(179, 19, 36, 0.12) !important;
}

.lead-form .ff-btn-submit,
.lead-form button.ff-btn-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  padding: 0 28px !important;
  border: 1px solid var(--color-primary) !important;
  border-radius: 16px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  cursor: pointer !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
}

.lead-form .ff-el-is-error .text-danger,
.lead-form .error.text-danger,
.lead-form .ff-errors-in-stack {
  display: block;
  margin-top: 6px;
  padding: 0;
  color: #b91c1c;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.lead-form .ff-message-success,
.lead-form .ff_success_message {
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(22, 101, 52, 0.18) !important;
  border-radius: 16px !important;
  background: #ecfdf5 !important;
  color: #166534 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  box-shadow: 0 12px 28px rgba(22, 101, 52, 0.08) !important;
}

.lead-form .granat-rating-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.granat-rating-stars {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(179, 19, 36, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 248, 0.94));
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
}

.granat-rating-stars__buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.granat-rating-stars__star {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d7dce4;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease, background 160ms ease;
}

.granat-rating-stars__star.is-active {
  color: #b31324;
  text-shadow: 0 8px 18px rgba(179, 19, 36, 0.18);
}

.granat-rating-stars__star:hover,
.granat-rating-stars__star:focus-visible {
  color: #8f0e1c;
  background: rgba(179, 19, 36, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.site-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.52);
  backdrop-filter: blur(10px);
}

.site-modal__dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(179, 19, 36, 0.14), transparent 34%),
    #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.98);
  transition: transform 180ms ease;
}

.site-modal.is-open .site-modal__dialog {
  transform: translateY(0) scale(1);
}

.site-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 26px;
  line-height: 1;
}

.site-modal__head {
  max-width: 500px;
  margin: 0 44px 20px 0;
}

.site-modal__head h2 {
  margin: 8px 0 8px;
  font-size: 32px;
  line-height: 1.15;
}

.site-modal__head p {
  margin: 0;
  color: var(--color-muted);
}

body.is-modal-open {
  overflow: hidden;
}

.commercial-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 42px;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.20), transparent 28%),
    var(--gradient-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.commercial-cta::before {
  right: -64px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.16);
}

.commercial-cta h2,
.commercial-cta p {
  color: #fff;
}

.commercial-cta .section-label {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.commercial-cta .btn {
  background: #fff;
  color: var(--color-primary);
  box-shadow: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs__sep {
  display: inline-flex;
  color: rgba(107, 114, 128, 0.55);
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.article-meta,
.review-card__meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
}

.article-cta,
.rating-summary {
  padding: 24px;
  border-radius: 22px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
}

.rating-summary strong {
  display: block;
  margin-bottom: 6px;
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}

@media (max-width: 768px) {
  .lead-form {
    padding: 24px;
    border-radius: 22px;
  }

  .lead-form--compact {
    padding: 0;
  }

  .lead-form .ff-el-form-control,
  .lead-form input.ff-el-form-control,
  .lead-form select.ff-el-form-control {
    min-height: 54px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
  }

  .lead-form textarea.ff-el-form-control {
    min-height: 136px !important;
  }

  .site-modal {
    padding: 12px;
    align-items: end;
  }

  .site-modal__dialog {
    width: 100%;
    max-height: 88vh;
    padding: 26px 20px 22px;
    border-radius: 24px 24px 0 0;
  }

  .site-modal__head {
    margin-right: 44px;
  }

  .site-modal__head h2 {
    font-size: 26px;
  }

  .commercial-cta,
  .article-cta {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .lead-form .ff-el-form-check,
  .lead-form .ff-el-form-check-label {
    font-size: 12px !important;
  }

  .granat-rating-stars {
    width: 100%;
    justify-content: center;
  }

  .granat-rating-stars__buttons {
    width: 100%;
    justify-content: space-between;
  }

  .granat-rating-stars__star {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
}

@media (max-width: 390px) {
  .lead-form {
    padding: 20px;
  }

  .lead-form--compact {
    padding: 0;
  }

  .lead-form input.ff-el-form-check-input[type="checkbox"],
  .lead-form input.ff-el-form-check-checkbox[type="checkbox"],
  .lead-form .ff-el-form-check input[type="checkbox"] {
    flex-basis: 19px !important;
    width: 19px !important;
    min-width: 19px !important;
    height: 19px !important;
    min-height: 19px !important;
  }
}

/* Hotfix: specialist cards badge must not participate in grid flow. */
.specialist-card {
  position: relative;
  align-items: start;
  padding-top: 56px;
}

.specialist-card::before {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  line-height: 1;
}

.specialist-card > img {
  align-self: start;
}

.specialist-card > div {
  min-width: 0;
}

@media (max-width: 768px) {
  .specialist-card {
    padding-top: 52px;
  }

  .specialist-card::before {
    top: 16px;
    left: 16px;
  }
}

/* Stage 4.1 hotfix: compact popup form and icon-based contact actions. */
.lead-form--compact .form-heading {
  display: none;
}

.lead-form--compact .frm-fluent-form,
.lead-form--compact form[id^="fluentform_"] {
  gap: 14px;
}

.lead-form--compact form[id^="fluentform_"] fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.lead-form--compact .ff-el-group {
  min-width: 0;
}

.lead-form--compact .ff-el-group:has(textarea),
.lead-form--compact .ff-el-group.ff-el-form-hide_label,
.lead-form--compact .ff_submit_btn_wrapper,
.lead-form--compact .ff-errors-in-stack,
.lead-form--compact .ff-message-success,
.lead-form--compact .ff_success_message {
  grid-column: 1 / -1;
}

.lead-form--compact textarea.ff-el-form-control {
  min-height: 128px !important;
}

.lead-form--compact .ff_submit_btn_wrapper {
  margin-top: 2px;
}

.lead-form--compact .ff-btn-submit,
.lead-form--compact button.ff-btn-submit {
  width: 100% !important;
}

.site-modal__dialog {
  width: min(100%, 720px);
  max-height: min(94vh, 760px);
  overflow: auto;
  padding: 30px;
}

.site-modal__head {
  max-width: 560px;
  margin: 0 44px 14px 0;
}

.site-modal__head h2 {
  margin: 6px 0 8px;
  font-size: 28px;
}

.site-modal__head p {
  max-width: 520px;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(179, 19, 36, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 243, 244, 0.92));
  color: var(--color-primary);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(179, 19, 36, 0.34);
  box-shadow: 0 18px 40px rgba(179, 19, 36, 0.16);
}

.social-icon-link svg {
  width: 24px;
  height: 24px;
}

.social-icon-link img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.social-icon-link--call {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 243, 244, 0.92));
  color: var(--color-primary);
  border-color: rgba(179, 19, 36, 0.18);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
}

.footer-socials {
  gap: 10px;
}

.footer-socials .social-icon-link {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.footer-socials .social-icon-link:hover,
.footer-socials .social-icon-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .blog-recommendations,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .blog-recommendations {
    padding: 22px;
  }

  .post-navigation a {
    min-height: auto;
  }

  .lead-form form[id^="fluentform_"] fieldset,
  .lead-form--compact form[id^="fluentform_"] fieldset {
    grid-template-columns: 1fr;
  }

  .site-modal__dialog {
    width: 100%;
    max-height: 88vh;
    padding: 22px 18px 18px;
  }

  .site-modal__head {
    margin-right: 38px;
  }

  .site-modal__head h2 {
    font-size: 22px;
  }

  .lead-form--compact textarea.ff-el-form-control {
    min-height: 112px !important;
  }

  .contact-actions {
    gap: 10px;
    margin-top: 16px;
  }

.social-icon-link {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}

.lead-form input.ff-el-form-check-input[type="checkbox"]:checked,
.lead-form input.ff-el-form-check-checkbox[type="checkbox"]:checked,
.lead-form .ff-el-form-check input[type="checkbox"]:checked {
  border: 1.5px solid var(--color-primary) !important;
  background-color: var(--color-primary) !important;
}

/* Mobile photo framing fix: keep specialist portraits readable in single-column cards. */
@media (max-width: 768px) {
  .specialists-grid .specialist-card,
  .specialists-grid .specialist-card--large {
    grid-template-columns: 1fr;
  }

  .specialists-grid .specialist-card > img.specialist-photo,
  .specialists-grid .specialist-card--large > img.specialist-photo {
    width: 100%;
    height: clamp(330px, 86vw, 390px);
    object-fit: cover;
  }

  .specialists-grid .specialist-card > img.specialist-photo--anna {
    object-position: center 36%;
  }

  .specialists-grid .specialist-card > img.specialist-photo--natalya {
    object-position: center 28%;
  }
}

/* Hotfix 2026-05-12: prevent long contact email from overflowing cards. */
.contact-card {
  min-width: 0;
}
.contact-card span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
a[href^="mailto:"].contact-card span {
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.25;
}
