/* ─── Design tokens ─── */
:root {
  --ink: #141a17;
  --ink-soft: #2a332e;
  --muted: #5e6962;
  --cream: #f4f1ea;
  --cream-deep: #e6e1d6;
  --white: #ffffff;
  --forest: #0f2419;
  --forest-mid: #163528;
  --forest-bright: #1d4334;
  --gold: #c9a227;
  --gold-soft: #e4c96a;
  --gold-glow: rgba(201, 162, 39, 0.35);
  --line: rgba(20, 26, 23, 0.08);
  --line-on-dark: rgba(255, 255, 255, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 12px rgba(15, 36, 25, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 36, 25, 0.1);
  --shadow-lg: 0 24px 80px rgba(15, 36, 25, 0.14);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 52px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: var(--ink);
}

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

a {
  color: inherit;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
}

/* ─── Top bar ─── */
.site-header {
  position: relative;
  z-index: 20;
}

.top-bar {
  position: sticky;
  top: 0;
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
}

.top-bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.top-bar__brand:hover {
  color: var(--forest-bright);
}

.top-bar__logo {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
}

.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
}

.top-bar__nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.top-bar__nav a:hover {
  color: var(--forest);
}

.top-bar__contacts {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.top-bar__phone {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
}

.top-bar__phone:hover {
  color: var(--gold);
}

.top-bar__email {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-bar__email:hover {
  color: var(--forest);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3.25rem, 7vw, 5.75rem);
  overflow: clip;
}

.hero__ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(201, 162, 39, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(22, 53, 40, 0.06), transparent 45%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  pointer-events: none;
}

.hero__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__copy {
  max-width: 34rem;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-mid);
  background: rgba(22, 53, 40, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(22, 53, 40, 0.1);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.hero__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 28rem;
}

.hero__media {
  position: relative;
}

.hero__figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-out);
}

.hero__figure:hover img {
  transform: scale(1.06);
}

.hero__stat {
  position: absolute;
  left: -0.5rem;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  max-width: calc(100% - 1rem);
}

.hero__stat-line {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), var(--forest-mid));
}

.hero__stat-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__copy > * {
  animation: fade-up 0.7s var(--ease-out) backwards;
}

.hero__copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero__copy > *:nth-child(2) {
  animation-delay: 0.12s;
}
.hero__copy > *:nth-child(3) {
  animation-delay: 0.18s;
}
.hero__copy > *:nth-child(4) {
  animation-delay: 0.24s;
}
.hero__copy > *:nth-child(5) {
  animation-delay: 0.3s;
}
.hero__copy > *:nth-child(6) {
  animation-delay: 0.36s;
}

.hero__media {
  animation: fade-up 0.85s var(--ease-out) 0.2s backwards;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
  background: linear-gradient(145deg, var(--forest-bright), var(--forest-mid));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(22, 53, 40, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22, 53, 40, 0.35);
}

.btn--secondary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--forest-mid);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: rgba(22, 53, 40, 0.2);
}

.btn--ghost:hover {
  background: rgba(22, 53, 40, 0.06);
}

.btn--on-dark {
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn--on-dark:hover {
  transform: translateY(-2px);
  background: var(--cream);
}

.btn--lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

/* ─── Visual strip (bento) ─── */
.visual-strip-wrap {
  background: var(--cream);
  padding-top: clamp(2rem, 5vw, 3.75rem);
}

.visual-strip {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.4fr;
  grid-template-rows: 200px 160px;
  gap: 0.65rem;
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
  max-width: min(1180px, 92vw);
  margin-inline: auto;
}

.visual-strip__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.visual-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease-out);
}

.visual-strip__item:hover img {
  transform: scale(1.05);
}

.visual-strip__item--tall {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.visual-strip__item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.visual-strip__item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.visual-strip__item:nth-child(4) {
  grid-column: 2 / span 2;
  grid-row: 2;
}

/* ─── Sections ─── */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section--tight {
  padding-top: 0;
}

/* Плавный вход в блок преимуществ (после hero / галереи) */
#why.section.section--tight {
  padding-top: clamp(2.5rem, 5.5vw, 4rem);
  background: linear-gradient(
    180deg,
    rgba(228, 222, 208, 0.92) 0%,
    var(--cream) 26%,
    var(--cream) 100%
  );
  border-top: 1px solid rgba(22, 53, 40, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#why .section-head {
  position: relative;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 42rem;
}

#why .section-head::before {
  content: "";
  display: block;
  width: min(4.25rem, 18vw);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--forest-mid), var(--gold));
  margin: 0 0 1.125rem;
  opacity: 0.88;
}

#why .section-head__eyebrow {
  margin-bottom: 0.65rem;
}

#why .section-head__title {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section--surface {
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 45%);
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.section-head__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest-mid);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head--on-dark .section-head__eyebrow {
  color: var(--gold-soft);
}

.section-head--on-dark .section-head__title {
  color: var(--cream);
}

/* ─── Feature grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 53, 40, 0.12);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(22, 53, 40, 0.08));
  color: var(--forest-mid);
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── About split ─── */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-split__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.about-split__visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-split__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.about-split__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.about-split__lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.about-split__content p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-split__muted {
  font-size: 0.9375rem;
  color: var(--muted);
  opacity: 0.92;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* ─── CTA panel ─── */
.cta-panel {
  position: relative;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  overflow: hidden;
}

.cta-panel__bg {
  position: absolute;
  inset: 0;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  background:
    linear-gradient(135deg, var(--forest) 0%, #0a1810 45%, var(--forest-mid) 100%);
  border-radius: 0;
}

.cta-panel__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, var(--gold-glow), transparent 45%);
  opacity: 0.6;
}

.cta-panel__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.cta-panel__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.95;
}

.cta-panel__title {
  margin: 0 0 0.65rem;
  max-width: 28rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}

.cta-panel__desc {
  margin: 0;
  max-width: 26rem;
  font-size: 0.98rem;
  color: rgba(230, 225, 214, 0.85);
  line-height: 1.6;
}

.cta-panel__link {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-panel__link:hover {
  color: var(--white);
}

/* ─── Requisites dark ─── */
.section--dark {
  background: var(--forest);
  color: rgba(230, 225, 214, 0.88);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

/* Стык «О компании» → реквизиты: без светлой щели перед вторым зелёным */
.section--surface + .section--dark {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.req-card {
  padding: 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-md);
  transition: background 0.25s, border-color 0.25s;
}

.req-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

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

.req-card--address {
  grid-column: span 3;
}

.req-card__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(230, 225, 214, 0.55);
  margin-bottom: 0.4rem;
}

.req-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.req-card__value--multiline {
  display: block;
  line-height: 1.5;
  max-width: 42rem;
}

/* ─── Footer ─── */
.footer {
  background: #060d09;
  color: rgba(200, 215, 205, 0.85);
  padding: 2.5rem 0 2.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--cream);
}

.footer__tagline {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(200, 215, 205, 0.65);
}

.footer__contact-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.footer__phone,
.footer__mail {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__phone {
  font-size: 1.25rem;
}

.footer__phone:hover,
.footer__mail:hover {
  color: var(--gold-soft);
}

.footer__sep {
  opacity: 0.35;
  user-select: none;
}

.footer__meta {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(160, 180, 168, 0.65);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__media {
    max-width: 560px;
    margin-inline: auto;
  }

  .hero__stat {
    left: auto;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .visual-strip {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px 160px;
  }

  .visual-strip__item--tall {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .visual-strip__item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .visual-strip__item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .visual-strip__item:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .visual-strip-wrap {
    padding-top: clamp(1.75rem, 4vw, 2.75rem);
  }
}

@media (max-width: 768px) {
  .top-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
  }

  .top-bar__brand {
    grid-column: 1;
    grid-row: 1;
  }

  .top-bar__contacts {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    justify-self: end;
  }

  .top-bar__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

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

  .about-split {
    grid-template-columns: 1fr;
  }

  .about-split__visual {
    max-height: 320px;
  }

  .about-split__visual img {
    aspect-ratio: 16 / 10;
  }

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

  .req-card--wide,
  .req-card--address {
    grid-column: span 1;
  }

  .cta-panel__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* На телефоне блок с 4 фото под hero скрыт (на ПК и планшете — без изменений) */
  .visual-strip-wrap {
    display: none;
  }

  /* Сразу после hero: без подписи «Почему обращаются» */
  #why .section-head__eyebrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .top-bar__email {
    max-width: 100%;
    white-space: normal;
    text-align: right;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
  }
}
