/* ================================================================
   IMMOBILIARE ZACCARIA — первая презентационная версия
   Дизайн построен на цветах логотипа, типографике и геометрии.
   ================================================================ */

:root {
  --wine-950: #2b0716;
  --wine-900: #430b21;
  --wine-800: #5b102b;
  --wine-700: #7c1538;
  --wine-600: #9f1d48;
  --rose-100: #f6e8ed;
  --cream: #f8f5f1;
  --paper: #fffdf9;
  --white: #ffffff;
  --ink: #211a1e;
  --ink-soft: #665c61;
  --line: #e5ddd8;
  --brass: #bc965b;
  --brass-light: #e0c693;
  --whatsapp: #176b46;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;

  --container: 1200px;
  --header-height: 88px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 12px 30px rgba(43, 7, 22, 0.08);
  --shadow-lg: 0 30px 80px rgba(43, 7, 22, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-header: 100;
  --z-menu: 90;
  --z-floating: 80;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--wine-700);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--wine-800);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

/* Шапка и навигация */
.site-header {
  position: fixed;
  z-index: var(--z-header);
  inset: 0 0 auto;
  height: var(--header-height);
  background: rgba(248, 245, 241, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.scrolled {
  background: rgba(255, 253, 249, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(43, 7, 22, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 56px;
  gap: 12px;
}

.brand-mark {
  position: relative;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  overflow: hidden;
  background: transparent;
}

.brand-mark img {
  position: absolute;
  top: -1px;
  left: -18px;
  width: 106px;
  max-width: none;
  height: auto;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--wine-800);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #4e4449;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--wine-600);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--wine-700);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-phone {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 7px 10px 7px 8px;
  border-radius: 12px;
  transition: background 180ms ease;
}

.header-phone:hover {
  background: var(--rose-100);
}

.header-phone svg {
  width: 37px;
  height: 37px;
  padding: 8px;
  color: var(--white);
  background: var(--wine-700);
  border-radius: 50%;
}

.header-phone span {
  display: grid;
  line-height: 1.2;
}

.header-phone small {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-phone strong {
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--wine-800);
  transition: transform 220ms var(--ease), opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 780px;
  padding: calc(var(--header-height) + 88px) 0 96px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.98) 0%, rgba(248,245,241,0.96) 48%, rgba(246,232,237,0.82) 100%);
}

.hero::before {
  position: absolute;
  top: var(--header-height);
  right: 0;
  width: 38vw;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(159, 29, 72, 0.35));
}

.hero-grid-pattern {
  position: absolute;
  inset: 0 0 0 52%;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(91,16,43,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,16,43,0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  top: 130px;
  right: 8vw;
  width: 470px;
  height: 470px;
  background: radial-gradient(circle at 36% 30%, rgba(188,150,91,0.16), rgba(159,29,72,0.09) 48%, transparent 70%);
}

.hero-orb-two {
  right: -110px;
  bottom: -160px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(159,29,72,0.15);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 72px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  margin: 0 0 22px;
  color: var(--wine-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 36px;
  height: 1px;
  margin-right: 12px;
  background: var(--brass);
}

.hero h1,
.section-heading h2,
.section-header-row h2,
.reasons-intro h2,
.contact-header h2 {
  margin: 0;
  color: var(--wine-950);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(54px, 5.3vw, 82px);
}

.hero h1 em,
.section-heading h2 em,
.section-header-row h2 em,
.reasons-intro h2 em,
.contact-header h2 em {
  color: var(--wine-600);
  font-weight: 600;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  gap: 10px;
  padding: 14px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease);
}

.button svg {
  width: 20px;
  height: 20px;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  color: var(--white);
  background: var(--wine-700);
  box-shadow: 0 12px 28px rgba(124, 21, 56, 0.22);
}

.button-primary:hover {
  background: var(--wine-800);
  box-shadow: 0 16px 34px rgba(124, 21, 56, 0.3);
}

.button-secondary {
  color: var(--wine-800);
  background: rgba(255,255,255,0.72);
  border-color: rgba(91,16,43,0.24);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--wine-800);
  border-color: var(--wine-800);
}

.hero-quote {
  max-width: 610px;
  margin: 34px 0 0;
  padding: 8px 0 8px 22px;
  color: #50434a;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.visual-frame {
  position: absolute;
  inset: 22px 0 0 24px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(246,232,237,0.72));
  border: 1px solid rgba(91,16,43,0.14);
  border-radius: 160px 24px 24px 24px;
  box-shadow: var(--shadow-lg);
}

.visual-frame::before {
  position: absolute;
  inset: 44px;
  content: "";
  border: 1px solid rgba(188,150,91,0.32);
  border-radius: 120px 16px 16px;
}

.corner {
  position: absolute;
  z-index: 1;
  width: 105px;
  height: 105px;
  border-color: var(--wine-600);
  border-style: solid;
}

.corner-top {
  top: 22px;
  right: 22px;
  border-width: 1px 1px 0 0;
}

.corner-bottom {
  bottom: 22px;
  left: 22px;
  border-width: 0 0 1px 1px;
}

.visual-number {
  position: absolute;
  z-index: 2;
  top: 54px;
  right: 46px;
  color: var(--wine-800);
  font-family: var(--font-display);
  font-size: 74px;
  font-weight: 700;
  line-height: 0.8;
}

.visual-number span {
  color: var(--brass);
  font-size: 36px;
}

.visual-number-label {
  position: absolute;
  z-index: 2;
  top: 118px;
  right: 44px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.hero-logo-wrap {
  position: absolute;
  z-index: 1;
  top: 135px;
  left: 26px;
  width: 410px;
  height: 300px;
  overflow: hidden;
  opacity: 0.9;
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.visual-badge {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  color: var(--white);
  background: var(--wine-800);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(43,7,22,0.22);
}

.visual-badge svg {
  width: 29px;
  height: 29px;
  color: var(--brass-light);
}

.visual-badge span {
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.visual-badge strong {
  font-size: 11px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
}

/* Общие заголовки секций */
.section-heading h2,
.section-header-row h2,
.reasons-intro h2,
.contact-header h2 {
  font-size: clamp(44px, 4.6vw, 68px);
}

.section-kicker::before {
  width: 28px;
  height: 1px;
  margin-right: 11px;
  content: "";
  background: currentColor;
}

.section-kicker-light {
  color: var(--brass-light);
}

/* Chi siamo */
.about {
  overflow: hidden;
  background: var(--paper);
}

.about::after {
  position: absolute;
  top: 72px;
  right: -90px;
  width: 260px;
  height: 260px;
  content: "";
  border: 1px solid rgba(159,29,72,0.09);
  border-radius: 50%;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 100px;
}

.about-copy {
  max-width: 610px;
  padding-top: 42px;
  color: var(--ink-soft);
}

.about-copy p {
  margin: 0 0 20px;
}

.about-copy .lead-copy {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.38;
}

.about-copy strong {
  color: var(--wine-700);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  gap: 10px;
  margin-top: 8px;
  color: var(--wine-700);
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 82px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card {
  min-height: 170px;
  padding: 30px 32px;
  border-right: 1px solid var(--line);
}

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

.stat-card > strong {
  display: block;
  color: var(--wine-700);
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
}

.stat-card sup {
  color: var(--brass);
  font-size: 28px;
}

.stat-card > span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card-region {
  display: flex;
  align-items: center;
  gap: 17px;
}

.stat-card-region svg {
  width: 46px;
  height: 46px;
  color: var(--wine-700);
}

.stat-card-region span {
  margin: 0;
}

.stat-card-region span strong {
  display: block;
  margin-bottom: 7px;
  color: var(--wine-700);
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0;
  text-transform: none;
}

/* Servizi */
.services {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.025) 25%, transparent 25%) 0 0 / 56px 56px,
    linear-gradient(315deg, rgba(255,255,255,0.02) 25%, transparent 25%) 0 0 / 56px 56px,
    var(--wine-950);
}

.services::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 85% 10%, rgba(159,29,72,0.35), transparent 34%);
}

.services .container {
  position: relative;
}

.section-header-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.section-header-row h2 {
  color: var(--white);
}

.section-header-row h2 em {
  color: var(--brass-light);
}

.section-header-row > p {
  max-width: 410px;
  margin: 0 0 8px;
  color: rgba(255,255,255,0.66);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: 32px;
  overflow: hidden;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-md);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms var(--ease);
}

.service-card::after {
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  content: "";
  border: 1px solid rgba(224,198,147,0.15);
  border-radius: 50%;
  transition: transform 300ms var(--ease);
}

.service-card:hover {
  background: rgba(255,255,255,0.075);
  border-color: rgba(224,198,147,0.42);
  transform: translateY(-5px);
}

.service-card:hover::after {
  transform: scale(1.35);
}

.service-number {
  position: absolute;
  top: 28px;
  right: 28px;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-display);
  font-size: 22px;
}

.icon-box {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 36px;
  color: var(--brass-light);
  background: rgba(188,150,91,0.1);
  border: 1px solid rgba(224,198,147,0.22);
  border-radius: 14px;
}

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

.service-card h3 {
  max-width: 270px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.7;
}

.service-card-wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  min-height: 170px;
  gap: 28px;
}

.service-card-wide .icon-box {
  margin: 0;
}

.service-card-wide h3 {
  max-width: none;
}

.service-card-wide p {
  max-width: 760px;
}

/* Преимущества */
.reasons {
  background: var(--cream);
}

.reasons-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
}

.reasons-intro {
  position: sticky;
  top: calc(var(--header-height) + 36px);
  align-self: start;
}

.reasons-intro > p:not(.section-kicker) {
  max-width: 480px;
  margin: 28px 0 30px;
  color: var(--ink-soft);
}

.reasons-list {
  border-top: 1px solid var(--line);
}

.reason-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 60px 1fr;
  align-items: start;
  gap: 22px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 220ms var(--ease);
}

.reason-item:hover {
  padding-left: 10px;
}

.reason-index {
  padding-top: 16px;
  color: var(--wine-600);
  font-family: var(--font-display);
  font-size: 16px;
}

.reason-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--wine-700);
  background: var(--rose-100);
  border-radius: 50%;
}

.reason-icon svg {
  width: 27px;
  height: 27px;
}

.reason-item h3 {
  margin: 5px 0 9px;
  color: var(--wine-900);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.15;
}

.reason-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* Контакты */
.projects {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(159, 29, 72, 0.08), transparent 32%),
    var(--paper);
}

.projects::before {
  position: absolute;
  top: 64px;
  right: -120px;
  width: 360px;
  height: 360px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(124, 21, 56, 0.1);
  border-radius: 50%;
}

.projects-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 72px;
}

.projects-header > p {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--ink-soft);
}

.projects-carousel {
  margin-top: 58px;
}

.project-slides {
  position: relative;
  overflow: hidden;
  background: var(--wine-950);
  border: 1px solid rgba(67, 11, 33, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.project-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.72fr);
  min-height: 570px;
  margin: 0;
}

.project-slide[hidden] {
  display: none;
}

.project-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--wine-900);
}

.project-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(43, 7, 22, 0.16));
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-portrait img {
  object-position: center 42%;
}

.project-slide.is-active .project-media img {
  animation: project-image-in 480ms var(--ease) both;
}

.project-slide figcaption {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 42px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.025), transparent 50%),
    var(--wine-950);
}

.project-slide figcaption::before {
  position: absolute;
  top: 42px;
  left: 42px;
  width: 50px;
  height: 1px;
  content: "";
  background: var(--brass);
}

.project-slide.is-active figcaption > * {
  animation: project-caption-in 400ms var(--ease) both;
}

.project-slide figcaption > span {
  margin-bottom: 16px;
  color: var(--brass-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-slide figcaption h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(31px, 3.2vw, 43px);
  font-weight: 600;
  line-height: 1.02;
}

.project-slide figcaption p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  line-height: 1.72;
}

.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.carousel-hint {
  position: relative;
  margin: 0;
  padding-left: 46px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.carousel-hint::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 32px;
  height: 1px;
  content: "";
  background: var(--wine-600);
}

.carousel-navigation {
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  color: var(--wine-800);
  background: transparent;
  border: 1px solid rgba(91, 16, 43, 0.28);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.carousel-arrow:hover {
  color: var(--white);
  background: var(--wine-700);
  border-color: var(--wine-700);
}

.carousel-arrow:active {
  background: var(--wine-900);
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.carousel-status {
  display: flex;
  min-width: 78px;
  margin: 0;
  justify-content: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.carousel-status [data-carousel-current] {
  color: var(--wine-800);
  font-size: 29px;
  line-height: 1;
}

@keyframes project-image-in {
  from {
    opacity: 0.72;
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes project-caption-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact {
  color: var(--white);
  background: var(--wine-800);
}

.contact::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(120deg, transparent 35%, #000 100%);
}

.contact .container {
  position: relative;
}

.contact-header {
  text-align: center;
}

.contact-header .section-kicker {
  justify-content: center;
}

.contact-header h2 {
  color: var(--white);
}

.contact-header h2 em {
  color: var(--brass-light);
}

.contact-phone {
  display: inline-grid;
  margin-top: 38px;
  padding: 10px 30px 16px;
  border-bottom: 1px solid rgba(224,198,147,0.65);
  transition: background 220ms ease, border-color 220ms ease;
}

.contact-phone:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--brass-light);
}

.contact-phone span {
  margin-bottom: 4px;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-phone strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(37px, 5vw, 66px);
  line-height: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 54px;
  margin-top: 78px;
}

.contact-details {
  display: grid;
  align-content: start;
  gap: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.contact-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--brass-light);
  border: 1px solid rgba(224,198,147,0.3);
  border-radius: 50%;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-row h3 {
  margin: 0 0 7px;
  color: var(--brass-light);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-row p,
.contact-row address,
.contact-row a {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-style: normal;
}

.contact-row a {
  display: inline-block;
  min-height: 44px;
  padding-top: 9px;
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(224,198,147,0.5);
  text-underline-offset: 4px;
}

.contact-row a:hover {
  text-decoration-color: var(--brass-light);
}

.contact-row .contact-value {
  overflow-wrap: anywhere;
}

.button-whatsapp {
  justify-self: start;
  margin-top: 28px;
  color: var(--white);
  background: var(--whatsapp);
}

.button-whatsapp:hover {
  background: #10563a;
  box-shadow: 0 14px 32px rgba(13, 53, 36, 0.28);
}

.map-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 70px rgba(43,7,22,0.32);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  filter: grayscale(0.25) contrast(1.04);
}

.map-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  display: grid;
  padding: 15px 20px;
  color: var(--ink);
  background: rgba(255,253,249,0.95);
  border: 1px solid rgba(91,16,43,0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.map-label span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-label strong {
  color: var(--wine-800);
  font-family: var(--font-display);
  font-size: 22px;
}

/* Подвал */
.site-footer {
  padding: 68px 0 26px;
  color: rgba(255,255,255,0.67);
  background: #1d1117;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 70px;
}

.brand-footer .brand-mark {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
}

.brand-footer .brand-mark img {
  top: -5px;
  left: -15px;
  width: 88px;
}

.brand-footer .brand-copy strong {
  color: var(--white);
}

.brand-footer .brand-copy span {
  color: rgba(255,255,255,0.5);
}

.footer-brand > p {
  max-width: 410px;
  margin: 22px 0 0;
  font-size: 13px;
}

.footer-block h2 {
  margin: 8px 0 17px;
  color: var(--brass-light);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-block a,
.footer-block address {
  display: block;
  min-height: 44px;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.footer-block a:hover {
  color: var(--white);
}

.footer-block .footer-whatsapp {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 9px;
  color: #83d8a9;
  font-weight: 700;
}

.footer-whatsapp svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.footer-block .footer-whatsapp:hover {
  color: #b8f0d0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 11px;
}

/* Плавающие элементы */
.mobile-call {
  display: none;
}

.back-to-top {
  position: fixed;
  z-index: var(--z-floating);
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  color: var(--white);
  background: var(--wine-800);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(43,7,22,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 200ms ease, transform 220ms var(--ease), background 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--wine-600);
}

.back-to-top svg {
  width: 21px;
  height: 21px;
}

/* Появление элементов при прокрутке */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Планшеты и небольшие ноутбуки */
@media (max-width: 1100px) {
  :root {
    --header-height: 80px;
  }

  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .brand-copy {
    display: none;
  }

  .main-nav {
    gap: 20px;
  }

  .header-phone small {
    display: none;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 36px;
  }

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

  .hero-logo-wrap {
    top: 130px;
    left: 16px;
    width: 350px;
    height: 260px;
  }

  .about-layout,
  .reasons-layout {
    gap: 64px;
  }

  .stat-card {
    padding-inline: 22px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 96px 0;
  }

  .main-nav {
    position: fixed;
    z-index: var(--z-menu);
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    padding: 22px 24px 32px;
    background: rgba(255,253,249,0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(43,7,22,0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 220ms var(--ease);
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    min-height: 56px;
    padding: 0 6px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 24px;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 72px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 700px;
  }

  .hero-visual {
    width: min(100%, 600px);
    min-height: 500px;
    margin: 18px auto 30px;
  }

  .visual-frame {
    inset-inline: 0;
  }

  .hero-logo-wrap {
    left: 40px;
    width: 430px;
    height: 300px;
  }

  .scroll-cue {
    display: none;
  }

  .about-layout,
  .reasons-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .projects-header,
  .project-slide {
    grid-template-columns: 1fr;
  }

  .projects-header {
    gap: 28px;
  }

  .projects-header > p {
    max-width: 680px;
  }

  .project-slide,
  .project-media {
    min-height: 0;
  }

  .project-media {
    aspect-ratio: 4 / 3;
  }

  .project-slide figcaption {
    min-height: 250px;
  }

  .about-copy {
    padding-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .service-card-wide {
    grid-column: span 2;
  }

  .reasons-intro {
    position: static;
  }

  .contact-grid {
    gap: 60px;
  }

  .map-card,
  .map-card iframe {
    min-height: 480px;
  }

  .footer-top {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .brand-footer .brand-copy {
    display: grid;
  }
}

/* Мобильные устройства */
@media (max-width: 640px) {
  :root {
    --header-height: 74px;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding: 76px 0;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .brand-mark img {
    top: 0;
    left: -16px;
    width: 92px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    padding: calc(var(--header-height) + 54px) 0 64px;
  }

  .hero-grid-pattern {
    left: 22%;
  }

  .hero-orb-two {
    display: none;
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 10px;
    line-height: 1.5;
  }

  .eyebrow span {
    margin-top: 7px;
  }

  .hero h1 {
    font-size: clamp(45px, 13.6vw, 62px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-quote {
    margin-top: 26px;
    padding-left: 18px;
    font-size: 18px;
  }

  .hero-visual {
    min-height: 400px;
    margin-top: 6px;
  }

  .visual-frame {
    inset: 20px 0 0;
    border-radius: 100px 20px 20px;
  }

  .visual-frame::before {
    inset: 24px;
    border-radius: 76px 13px 13px;
  }

  .visual-number {
    top: 40px;
    right: 30px;
    font-size: 58px;
  }

  .visual-number-label {
    top: 90px;
    right: 28px;
    font-size: 9px;
  }

  .hero-logo-wrap {
    top: 102px;
    left: 6px;
    width: 320px;
    height: 235px;
  }

  .visual-badge {
    right: 16px;
    bottom: 18px;
    padding: 12px 14px;
  }

  .section-heading h2,
  .section-header-row h2,
  .reasons-intro h2,
  .contact-header h2 {
    font-size: clamp(39px, 11.8vw, 50px);
  }

  .about-layout {
    gap: 34px;
  }

  .about-copy .lead-copy {
    font-size: 23px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .stat-card,
  .stat-card:nth-child(2) {
    min-height: 136px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .stat-card > strong {
    font-size: 52px;
  }

  .section-header-row {
    display: block;
  }

  .section-header-row > p {
    margin-top: 26px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .service-card {
    min-height: 280px;
    padding: 27px;
  }

  .service-card-wide {
    grid-column: auto;
    display: block;
    min-height: 280px;
  }

  .service-card-wide .icon-box {
    margin-bottom: 36px;
  }

  .reason-item {
    grid-template-columns: 34px 50px 1fr;
    gap: 12px;
  }

  .reason-icon {
    width: 46px;
    height: 46px;
  }

  .reason-item h3 {
    margin-top: 3px;
    font-size: 24px;
  }

  .reasons-intro .button {
    width: 100%;
  }

  .projects-carousel {
    margin-top: 42px;
  }

  .project-slides {
    border-radius: var(--radius-md);
  }

  .project-slide figcaption {
    min-height: 238px;
    padding: 34px 28px;
  }

  .project-slide figcaption::before {
    top: 28px;
    left: 28px;
  }

  .project-slide figcaption h3 {
    font-size: clamp(31px, 9vw, 39px);
  }

  .carousel-toolbar {
    margin-top: 18px;
  }

  .carousel-hint {
    font-size: 9px;
  }

  .carousel-navigation {
    gap: 8px;
  }

  .carousel-arrow {
    width: 48px;
    height: 48px;
  }

  .carousel-status {
    min-width: 62px;
    gap: 5px;
  }

  .contact-phone {
    width: 100%;
    padding-inline: 0;
  }

  .contact-phone strong {
    font-size: clamp(32px, 10vw, 46px);
    letter-spacing: -0.03em;
  }

  .contact-grid {
    margin-top: 52px;
  }

  .contact-row {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .button-whatsapp {
    width: 100%;
  }

  .map-card,
  .map-card iframe {
    min-height: 390px;
  }

  .map-card {
    border-radius: var(--radius-md);
  }

  .map-label {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .site-footer {
    padding-top: 58px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
    margin-top: 38px;
  }

  .mobile-call {
    position: fixed;
    z-index: var(--z-floating);
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    gap: 12px;
    color: var(--white);
    background: var(--wine-700);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(43,7,22,0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity 200ms ease, transform 240ms var(--ease);
  }

  .mobile-call.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-call svg {
    width: 25px;
    height: 25px;
  }

  .mobile-call span {
    display: grid;
    line-height: 1.1;
  }

  .mobile-call small {
    margin-bottom: 3px;
    color: rgba(255,255,255,0.72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .mobile-call strong {
    font-size: 15px;
  }

  .back-to-top {
    right: 18px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 370px) {
  .carousel-toolbar {
    justify-content: flex-end;
  }

  .carousel-hint {
    display: none;
  }

  .hero-logo-wrap {
    left: 0;
    width: 285px;
  }

  .reason-item {
    grid-template-columns: 28px 1fr;
  }

  .reason-icon {
    display: none;
  }
}

/* Пользовательские настройки уменьшения движения */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
