@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --forest: #173128;
  --forest-deep: #0d241c;
  --paper: #ffffff;
  --gray: #edf0ef;
  --gray-strong: #dfe5e3;
  --white: #ffffff;
  --accent: #d46f5f;
  --line-dark: rgba(23, 49, 40, 0.22);
  --line-light: rgba(255, 254, 249, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--forest);
  font-family: "Inter", -apple-system, sans-serif;
  letter-spacing: 0;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  min-height: 100svh;
  padding: 18px 18px 0;
  background: var(--paper);
}

.hero-stage {
  position: relative;
  min-height: calc(100svh - 36px);
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.hero-photo {
  display: block;
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.hero-video {
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--forest) 0%, var(--forest) 28%, rgba(23, 49, 40, 0.92) 39%, rgba(23, 49, 40, 0.2) 67%, rgba(23, 49, 40, 0.02) 100%),
    linear-gradient(0deg, rgba(13, 36, 28, 0.68), transparent 42%);
}

.site-header {
  position: relative;
  z-index: 3;
  display: grid;
  height: 80px;
  grid-template-columns: 240px 1fr 145px;
  align-items: stretch;
  border-bottom: 1px solid var(--line-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
}

.brand > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
}

.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.resident-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-left: 1px solid var(--line-light);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.resident-link b {
  font-size: 18px;
  font-weight: 400;
}

.site-header a,
.hero-action {
  transition: opacity 150ms ease;
}

.site-header a:hover,
.hero-action:hover {
  opacity: 0.65;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: clamp(145px, 20vh, 210px);
  left: clamp(32px, 5vw, 78px);
  width: min(52%, 680px);
}

.eyebrow,
.section-number,
.tariff-label {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 17px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(78px, 10vw, 154px);
  font-weight: 400;
  line-height: 0.84;
}

.hero-lead {
  margin: 34px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(27px, 2.7vw, 42px);
  line-height: 1.08;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-action span {
  font-size: 16px;
}

.hero-facts {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: clamp(32px, 5vw, 78px);
  display: grid;
  width: min(620px, 50%);
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  border-top: 1px solid var(--line-light);
}

.hero-facts p {
  min-width: 0;
  margin: 0;
  padding: 14px 18px 0 0;
  border-right: 1px solid var(--line-light);
}

.hero-facts p + p {
  padding-left: 18px;
}

.hero-facts p:last-child {
  border-right: 0;
}

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

.hero-facts span {
  margin-bottom: 6px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.tariffs {
  display: grid;
  min-height: 1100px;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: clamp(56px, 7vw, 110px);
  padding: 130px max(32px, calc((100vw - 1380px) / 2)) 150px;
  background: var(--paper);
}

.tariff-copy {
  max-width: 680px;
}

.section-number {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--forest);
}

.tariff-copy h2 {
  margin: 56px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 5.8vw, 88px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.effective-date {
  margin: 40px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
}

.effective-date span,
.effective-date strong {
  display: block;
}

.effective-date strong {
  margin-top: 4px;
  color: var(--accent);
  font-weight: 400;
  text-transform: uppercase;
}

.tariff-group {
  margin-top: 62px;
  border-top: 1px solid var(--forest);
}

.tariff-label {
  margin-top: 18px;
}

.tariff-subtitle {
  margin: 16px 0 28px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 21px;
}

.rate-row,
.utility-row {
  display: flex;
  min-height: 122px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.rate-row > div {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rate-row > div > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--forest);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.rate-row > div > small,
.utility-row span {
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.rate-row > strong,
.utility-row > strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 400;
  white-space: nowrap;
}

.rate-row > strong small,
.utility-row > strong small {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.utility-row {
  min-height: 138px;
}

.utility-row .tariff-label {
  margin: 0 0 8px;
}

.tariff-photo {
  position: sticky;
  top: 24px;
  height: calc(100svh - 48px);
  max-height: 820px;
  min-height: 650px;
  align-self: start;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.tariff-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.split-block {
  --block-line: var(--line-dark);
  --block-muted: rgba(23, 49, 40, 0.66);
  display: grid;
  min-height: 780px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--block-line);
}

.split-photo-left {
  grid-template-areas: "visual copy";
}

.split-photo-right {
  grid-template-areas: "copy visual";
}

.split-copy {
  grid-area: copy;
  display: flex;
  min-width: 0;
  justify-content: center;
  padding: clamp(72px, 8vw, 124px) clamp(44px, 7vw, 110px);
  flex-direction: column;
}

.split-visual {
  grid-area: visual;
  min-width: 0;
  min-height: 730px;
  margin: 24px 0 24px 24px;
  overflow: hidden;
  background: var(--gray-strong);
}

.split-photo-right .split-visual {
  margin: 24px 24px 24px 0;
}

.split-visual img {
  transition: transform 700ms ease;
}

.split-block:hover .split-visual img {
  transform: scale(1.015);
}

.tone-light {
  background: var(--paper);
}

.tone-mist {
  background: var(--gray);
}

.tone-forest {
  --block-line: rgba(255, 255, 255, 0.28);
  --block-muted: rgba(255, 255, 255, 0.68);
  background: var(--forest);
  color: var(--white);
}

.block-number {
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--block-line);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.split-copy h2 {
  margin: 48px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.block-lead {
  max-width: 540px;
  margin: 34px 0 0;
  color: var(--block-muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.28;
}

.info-list,
.phone-list,
.document-list,
.detail-list {
  width: 100%;
  margin: 48px 0 0;
  border-top: 1px solid var(--block-line);
}

.info-list > a,
.info-list > div,
.phone-list > a {
  display: grid;
  min-height: 86px;
  grid-template-columns: minmax(100px, 0.75fr) minmax(0, 1.25fr) 18px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--block-line);
}

.info-list > div {
  grid-template-columns: minmax(100px, 0.75fr) minmax(0, 1.25fr);
}

.info-list span,
.phone-list span,
.detail-list dt,
.emergency-number span {
  color: var(--block-muted);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.info-list strong,
.phone-list strong {
  min-width: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.info-list b,
.phone-list b,
.document-list b {
  font-size: 17px;
  font-weight: 400;
}

.info-list > a,
.phone-list > a,
.document-list > a,
.block-action,
.footer-links a {
  transition: opacity 150ms ease;
}

.info-list > a:hover,
.phone-list > a:hover,
.document-list > a:hover,
.block-action:hover,
.footer-links a:hover {
  opacity: 0.58;
}

.detail-list > div {
  display: grid;
  min-height: 72px;
  grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--block-line);
}

.detail-list dt,
.detail-list dd {
  margin: 0;
}

.detail-list dd {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.document-list {
  display: flex;
  flex-direction: column;
}

.document-list a {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--block-line);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
}

.block-action {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 22px;
  margin-top: 48px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.block-action span {
  font-size: 17px;
}

.person-name {
  margin: 36px 0 0;
  color: var(--block-muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.18;
}

.simple-list {
  margin-top: 52px;
}

.emergency-number {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 50px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--block-line);
  border-bottom: 1px solid var(--block-line);
}

.emergency-number a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(74px, 8vw, 118px);
  line-height: 0.76;
}

.compact-list {
  margin-top: 0;
  border-top: 0;
}

.legal-list {
  margin-top: 44px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.final-block {
  border-bottom: 18px solid var(--paper);
}

@media (max-width: 980px) {
  .hero-photo {
    width: 78%;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, var(--forest) 0%, var(--forest) 34%, rgba(23, 49, 40, 0.88) 52%, rgba(23, 49, 40, 0.12) 100%),
      linear-gradient(0deg, rgba(13, 36, 28, 0.72), transparent 48%);
  }

  .site-header {
    grid-template-columns: 210px 1fr 128px;
  }

  .hero-copy {
    width: 62%;
  }

  .tariffs {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    gap: 42px;
  }

  .split-block {
    min-height: 700px;
  }

  .split-copy {
    padding: 72px 42px;
  }

  .split-visual {
    min-height: 652px;
  }

  .split-copy h2 {
    font-size: 48px;
  }

  .info-list > a,
  .info-list > div,
  .phone-list > a {
    grid-template-columns: minmax(86px, 0.65fr) minmax(0, 1.35fr) 16px;
    gap: 12px;
  }

  .info-list > div {
    grid-template-columns: minmax(86px, 0.65fr) minmax(0, 1.35fr);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 850px;
    padding: 10px 10px 0;
  }

  .hero-stage {
    min-height: 830px;
  }

  .hero-photo {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 59%;
    object-position: 72% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, var(--forest) 0%, var(--forest) 35%, rgba(23, 49, 40, 0.9) 47%, rgba(23, 49, 40, 0.12) 75%),
      linear-gradient(0deg, rgba(13, 36, 28, 0.7), transparent 42%);
  }

  .site-header {
    height: 64px;
    grid-template-columns: 1fr 104px;
  }

  .brand {
    padding-left: 12px;
  }

  .brand > span {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .brand strong {
    font-size: 20px;
  }

  .site-header nav {
    display: none;
  }

  .resident-link {
    padding: 0 12px;
  }

  .hero-copy {
    top: 104px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .hero-copy h1 {
    margin-top: 13px;
    font-size: clamp(58px, 18vw, 72px);
  }

  .hero-lead {
    margin-top: 23px;
    font-size: 27px;
  }

  .hero-action {
    margin-top: 25px;
  }

  .hero-facts {
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
  }

  .hero-facts p {
    padding-right: 10px;
  }

  .hero-facts p + p {
    padding-left: 10px;
  }

  .hero-facts strong {
    font-size: 12px;
  }

  .tariffs {
    display: flex;
    min-height: 0;
    padding: 86px 20px 90px;
    flex-direction: column;
    gap: 52px;
  }

  .tariff-copy h2 {
    margin-top: 42px;
    font-size: 48px;
  }

  .effective-date {
    margin-top: 32px;
    font-size: 19px;
  }

  .tariff-group {
    margin-top: 48px;
  }

  .rate-row,
  .utility-row {
    min-height: 112px;
  }

  .rate-row > div {
    gap: 14px;
  }

  .rate-row > div > span {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .rate-row > strong,
  .utility-row > strong {
    font-size: 35px;
  }

  .utility-row {
    align-items: flex-start;
    padding: 24px 0;
    flex-direction: column;
    gap: 20px;
  }

  .tariff-photo {
    position: relative;
    top: auto;
    width: 100%;
    height: 440px;
    max-height: none;
    min-height: 0;
  }

  .split-block,
  .split-photo-left,
  .split-photo-right {
    display: grid;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual";
  }

  .split-copy {
    padding: 78px 20px 54px;
  }

  .split-copy h2 {
    margin-top: 40px;
    font-size: clamp(26px, 8vw, 40px);
    overflow-wrap: break-word;
  }

  .block-lead {
    margin-top: 28px;
    font-size: 20px;
  }

  .split-visual,
  .split-photo-right .split-visual {
    width: auto;
    height: clamp(360px, 112vw, 500px);
    min-height: 0;
    margin: 0 10px 10px;
  }

  .info-list,
  .phone-list,
  .document-list,
  .detail-list {
    margin-top: 38px;
  }

  .info-list > a,
  .info-list > div,
  .phone-list > a {
    min-height: 94px;
    grid-template-columns: 1fr 18px;
    gap: 8px 14px;
    padding: 18px 0;
  }

  .info-list > div {
    grid-template-columns: 1fr;
  }

  .info-list span,
  .phone-list span {
    grid-column: 1 / -1;
  }

  .info-list strong,
  .phone-list strong {
    font-size: 17px;
  }

  .detail-list > div {
    min-height: 82px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 7px;
    padding: 14px 0;
  }

  .document-list a {
    min-height: 68px;
  }

  .block-action {
    margin-top: 40px;
  }

  .person-name {
    margin-top: 28px;
    font-size: 23px;
  }

  .emergency-number {
    margin-top: 42px;
  }

  .emergency-number a {
    font-size: 78px;
  }

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

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-top: 46px;
  }

  .final-block {
    border-bottom-width: 10px;
  }
}

@media (max-width: 360px) {
  .split-copy h2 {
    font-size: 26px;
  }
}

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

  .hero-video {
    display: none;
  }
}

/* ===== О посёлке — вступление после Hero ===== */
.intro {
  padding: clamp(104px, 13vh, 168px) max(32px, calc((100vw - 1380px) / 2));
  background: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.intro-head {
  max-width: 1040px;
}

.intro .section-number {
  display: inline-block;
  padding-bottom: 0;
  border-bottom: 0;
}

.intro h2 {
  margin: 30px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.intro-lead {
  max-width: 780px;
  margin: 38px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.3;
  color: rgba(23, 49, 40, 0.72);
}

.intro-lead + .intro-lead {
  margin-top: 22px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 68px;
  border-top: 1px solid var(--forest);
}

.about-facts p {
  margin: 0;
  padding: 28px 26px 0 0;
  border-right: 1px solid var(--line-dark);
}

.about-facts p:last-child {
  padding-right: 0;
  border-right: 0;
}

.about-facts strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.about-facts span {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  color: rgba(23, 49, 40, 0.66);
}

@media (max-width: 720px) {
  .intro {
    padding: 76px 20px;
  }

  .intro h2 {
    font-size: 40px;
  }

  .intro-lead {
    font-size: 19px;
  }

  .about-facts {
    grid-template-columns: 1fr 1fr;
    margin-top: 48px;
  }

  .about-facts p {
    padding: 22px 16px 22px 0;
  }

  .about-facts p:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }
}

/* ===== Онлайн-сервисы — цифровая полоса ===== */
.services {
  padding: clamp(100px, 12vh, 156px) max(32px, calc((100vw - 1380px) / 2));
  background: var(--forest);
  color: var(--white);
  --block-line: rgba(255, 255, 255, 0.28);
  --block-muted: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.services-head {
  max-width: 1040px;
}

.services h2 {
  margin: 32px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.services-lead {
  max-width: 660px;
  margin: 34px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.28;
  color: var(--block-muted);
}

.services .info-list {
  max-width: 920px;
}

@media (max-width: 720px) {
  .services {
    padding: 76px 20px;
  }

  .services h2 {
    font-size: 40px;
  }

  .services-lead {
    font-size: 20px;
  }
}

/* ===== Как добраться — аэрофото во всю ширину ===== */
.location {
  background: var(--gray);
  border-top: 1px solid var(--line-dark);
  --block-line: var(--line-dark);
  --block-muted: rgba(23, 49, 40, 0.66);
}

.location-copy {
  max-width: 860px;
  padding: clamp(90px, 10vh, 140px) max(32px, calc((100vw - 1380px) / 2)) clamp(54px, 6vw, 84px);
}

.location h2 {
  margin: 30px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5.4vw, 82px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.location .detail-list {
  max-width: 640px;
}

.location-photo {
  margin: 0;
  width: 100%;
}

.location-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Тех-фишки (AI-блок) ===== */
.tech-tags {
  margin: 32px 0 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== Манифест — финальный акцент ===== */
.manifesto {
  background: var(--forest);
  color: var(--white);
  padding: clamp(118px, 16vh, 200px) max(32px, calc((100vw - 1100px) / 2));
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.manifesto .m-eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}

.manifesto h2 {
  max-width: 18ch;
  margin: 26px auto 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
}

.manifesto p {
  max-width: 640px;
  margin: 34px auto 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.72);
}

.manifesto .m-sign {
  display: inline-block;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 720px) {
  .manifesto {
    padding: 84px 22px;
  }

  .manifesto h2 {
    font-size: clamp(30px, 9vw, 46px);
  }

  .manifesto p {
    font-size: 19px;
  }
}

/* ===== Умный въезд — механизм принятия решения ===== */
.smart-gate {
  background: var(--forest);
  color: var(--white);
  padding: clamp(80px, 9vh, 128px) max(32px, calc((100vw - 1320px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.sg-copy {
  max-width: 540px;
}

.sg-copy .sg-tech {
  margin-top: 28px;
  text-align: left;
}

.sg-copy .sg-status {
  margin-top: 22px;
}

.sg-head {
  max-width: 780px;
}

.sg-head .m-eyebrow {
  margin: 0;
}

.sg-head h2 {
  margin: 24px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.0;
  text-transform: uppercase;
}

.sg-lead {
  max-width: 640px;
  margin: 28px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.72);
}

.sg-pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 64px;
}

.sg-step {
  position: relative;
  padding: 26px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-step::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  z-index: 2;
  width: 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.sg-step:last-child::after {
  display: none;
}

.sg-num {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
}

.sg-ico {
  display: block;
  margin: 10px 0 12px;
  font-size: 1.55rem;
  opacity: 0.55;
  filter: grayscale(0.4);
  transition: all 0.4s ease;
}

.sg-name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.15;
}

.sg-sub {
  display: block;
  margin-top: 8px;
  min-height: 13px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.sg-step.active {
  border-color: var(--accent);
  background: rgba(212, 111, 95, 0.12);
  box-shadow: 0 0 34px -10px rgba(212, 111, 95, 0.6);
  transform: translateY(-4px);
}

.sg-step.active .sg-ico {
  opacity: 1;
  filter: none;
}

.sg-step.ok {
  border-color: #6fbf8f;
  background: rgba(111, 191, 143, 0.12);
  box-shadow: 0 0 34px -10px rgba(111, 191, 143, 0.55);
}

.sg-step.ok .sg-sub {
  color: #a3e2bd;
}

.sg-step.deny {
  border-color: #e08a7d;
  background: rgba(224, 138, 125, 0.12);
  box-shadow: 0 0 34px -10px rgba(224, 138, 125, 0.55);
}

.sg-step.deny .sg-sub {
  color: #f2b0a6;
}

.sg-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.sg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf8f;
  box-shadow: 0 0 0 0 rgba(111, 191, 143, 0.6);
  animation: sgPulse 2s infinite;
}

@keyframes sgPulse {
  0% { box-shadow: 0 0 0 0 rgba(111, 191, 143, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(111, 191, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 191, 143, 0); }
}

@media (max-width: 900px) {
  .sg-pipeline { grid-template-columns: 1fr 1fr 1fr; }
  .sg-step::after { display: none; }
}

@media (max-width: 560px) {
  .sg-pipeline { grid-template-columns: 1fr 1fr; }
  .sg-head h2 { font-size: clamp(30px, 9vw, 44px); }
}

/* Flowchart вариант — развилки */
.sg-flow {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 84vh;
  margin: 0;
}

@media (max-width: 900px) {
  .smart-gate { grid-template-columns: 1fr; gap: 36px; }
  .sg-copy { max-width: none; }
  .sg-flow { max-height: none; margin-top: 8px; }
}

/* ===== Технологии — стек ===== */
.techstack {
  padding: clamp(96px, 11vh, 150px) max(32px, calc((100vw - 1180px) / 2));
  background: var(--gray);
}

.ts-head {
  max-width: 680px;
  margin-bottom: 26px;
}

.ts-eyebrow {
  margin: 0;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}

.ts-head h2 {
  margin: 18px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--forest);
}

.ts-lead {
  max-width: 600px;
  margin: 22px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
  color: rgba(23, 49, 40, 0.7);
}

.tech-group {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  padding: 32px 0;
  border-top: 1px solid var(--line-dark);
}

.tech-group:first-of-type {
  border-top: 1px solid var(--forest);
}

.tech-cat {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: var(--forest);
  padding-top: 6px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.tech-pill {
  border: 1px solid var(--line-dark);
  border-radius: 40px;
  padding: 10px 17px;
  font-size: 0.86rem;
  color: var(--forest);
  background: var(--white);
  transition: all 0.3s ease;
}

.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .tech-group { grid-template-columns: 1fr; gap: 14px; padding: 26px 0; }
  .tech-cat { padding-top: 0; }
}

/* Технологии в блоке умного въезда (тёмный фон) */
.sg-stack {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sg-scat {
  margin-bottom: 9px;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.sg-spills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sg-spills span {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.sg-spills span:hover {
  border-color: var(--accent);
  color: #fff;
}

.sg-spills span.tag-me {
  border-color: var(--accent);
  background: rgba(212, 111, 95, 0.18);
  color: #fff;
  box-shadow: 0 0 18px -5px rgba(212, 111, 95, 0.6);
}

.sg-spills span.tag-me:hover {
  background: rgba(212, 111, 95, 0.3);
}

.fc-node rect,
.fc-node polygon {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.5;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-node text {
  fill: rgba(255, 255, 255, 0.62);
  font-family: "JetBrains Mono", "Menlo", monospace;
  transition: fill 0.45s ease;
}

.fc-node.on rect,
.fc-node.on polygon {
  stroke: var(--accent);
  fill: rgba(212, 111, 95, 0.14);
  filter: drop-shadow(0 0 14px rgba(212, 111, 95, 0.55));
}

.fc-node.on text {
  fill: #fff;
}

.fc-open.on rect {
  stroke: #6fbf8f;
  fill: rgba(111, 191, 143, 0.16);
  filter: drop-shadow(0 0 14px rgba(111, 191, 143, 0.55));
}

.fc-deny.on rect {
  stroke: #e08a7d;
  fill: rgba(224, 138, 125, 0.16);
  filter: drop-shadow(0 0 14px rgba(224, 138, 125, 0.55));
}

.fc-edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  transition: all 0.45s ease;
}

.fc-edge.on {
  stroke: var(--accent);
  stroke-width: 2.5;
}

.fc-lbl {
  fill: rgba(255, 255, 255, 0.4);
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: fill 0.45s ease;
}

.fc-lbl.on {
  fill: #fff;
}

/* Слои-обвязка: распознавание / реакция / тех-строка */
.sg-layer {
  max-width: 900px;
  margin: 0 auto;
}

.sg-stage {
  margin: 44px 0 16px;
  text-align: center;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.sg-stage b {
  color: var(--accent);
  font-weight: 800;
}

.sg-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sg-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  transition: all 0.4s ease;
}

.sg-chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.sg-chip .ci {
  font-size: 1.15rem;
}

.sg-chip b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 0.92rem;
}

.sg-chips.flowrow .sg-chip:not(:last-child)::after {
  content: "→";
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.35);
  font-family: "Inter", -apple-system, sans-serif;
}

.sg-tech {
  margin-top: 36px;
  text-align: center;
  font-family: "Menlo", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(212, 111, 95, 0.85);
}

@media (max-width: 600px) {
  .sg-chips.flowrow .sg-chip::after { display: none; }
  .sg-tech { font-size: 10px; }
}

/* ===== Рядом — магазин и теннис ===== */
.nearby {
  padding: clamp(90px, 11vh, 150px) max(32px, calc((100vw - 1240px) / 2));
  background: var(--gray);
}

.nearby-head {
  max-width: 680px;
  margin-bottom: 42px;
}

.nb-eyebrow {
  margin: 0;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
}

.nearby-head h2 {
  margin: 16px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: var(--forest);
}

.nearby-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.nearby-card {
  padding: 44px 40px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  transition: all 0.35s ease;
}

.nearby-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(23, 40, 32, 0.4);
}

.nb-ico {
  font-size: 2rem;
}

.nb-tag {
  margin: 18px 0 10px;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.nearby-card h3 {
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.95rem;
  font-weight: 600;
  color: var(--forest);
}

.nearby-card p {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(23, 49, 40, 0.72);
}

@media (max-width: 760px) {
  .nearby-grid { grid-template-columns: 1fr; }
}
