:root {
  --cream: #f9f6f1;
  --cream-dark: #f0ebe3;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #5e5e5e;
  --muted-light: #8a8a8a;
  --terracotta: #a66b5b;
  --terracotta-hover: #8f5a4c;
  --terracotta-soft: rgba(166, 107, 91, 0.14);
  --dark: #141414;
  --dark-elevated: #1c1c1c;
  --border: rgba(26, 26, 26, 0.08);
  --shadow-sm: 0 4px 24px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 16px 48px rgba(26, 26, 26, 0.1);
  --shadow-badge: 0 16px 40px rgba(26, 26, 26, 0.12);
  --hero-radius: 40px;
  --hex-clip: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  --badge-bronze: #b0a090;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius: 20px;
  --radius-pill: 999px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: 106.25%;
}

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

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

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

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

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(249, 246, 241, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: min(220px, 46vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.brand-logo--footer {
  height: 28px;
  max-width: 170px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.nav-desktop a.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-desktop a.nav-link:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--terracotta);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(166, 107, 91, 0.35);
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(26, 26, 26, 0.15);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.6rem 0;
  font-weight: 500;
  color: var(--muted);
}

.nav-mobile .btn-primary {
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .nav-desktop,
  .header-phone {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header {
    height: auto;
    padding: 0.75rem 0;
  }

  .site-header .inner {
    flex-wrap: wrap;
  }

  .nav-mobile.is-open {
    width: 100%;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem + 90px) 0 calc(4.5rem + 120px);
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.hero-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-width: 0;
  overflow: visible;
}

/* Обёртка без рамки — только для позиционирования бейджа */
.hero-frame {
  position: relative;
  overflow: visible;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero-media {
  position: relative;
  overflow: visible;
  border-radius: var(--hero-radius);
}

.hero-parallax {
  overflow: hidden;
  border-radius: var(--hero-radius);
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: 0 24px 64px rgba(26, 26, 26, 0.12);
}

.hero-parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.08);
  transition: transform 0.35s ease-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-parallax img {
    transform: scale(1);
    transition: none;
    will-change: auto;
  }
}

/* Шестиугольник «500+» — справа по центру, двойная бронзовая обводка (как на фото) */
.hero-badge {
  position: absolute;
  z-index: 4;
  right: 0;
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translate(38%, -50%);
  filter: drop-shadow(0 14px 36px rgba(26, 26, 26, 0.12));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-badge:hover {
  transform: translate(38%, calc(-50% - 5px));
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge {
    transition: none;
  }

  .hero-badge:hover {
    transform: translate(38%, -50%);
  }
}

.hero-badge-stack {
  position: relative;
  width: 156px;
  height: 180px;
}

.hero-badge-layer {
  position: absolute;
  inset: 0;
  clip-path: var(--hex-clip);
}

.hero-badge-layer--bronze-outer {
  background: var(--badge-bronze);
  z-index: 1;
}

.hero-badge-layer--white-ring {
  background: var(--white);
  transform: scale(0.978);
  z-index: 2;
}

.hero-badge-layer--bronze-inner {
  background: var(--badge-bronze);
  transform: scale(0.952);
  z-index: 3;
}

.hero-badge-layer--face {
  background: var(--white);
  transform: scale(0.926);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem 0.55rem 0.55rem;
  box-sizing: border-box;
}

.hero-badge-top {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.06em;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-badge-plus {
  font-family: var(--font-serif);
  font-size: 0.72em;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.hero-badge-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.32;
  max-width: 6.25rem;
  opacity: 0.92;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-badge {
    transform: translate(28%, -50%);
  }

  .hero-badge:hover {
    transform: translate(28%, calc(-50% - 4px));
  }

  .hero-badge-stack {
    width: 132px;
    height: 152px;
  }

  .hero-badge-top {
    font-size: clamp(1.5rem, 4.5vw, 1.95rem);
  }

  .hero-badge-label {
    font-size: 0.6rem;
    max-width: 5.5rem;
  }
}

@media (max-width: 520px) {
  .hero-badge {
    transform: translate(18%, -50%);
  }

  .hero-badge:hover {
    transform: translate(18%, calc(-50% - 3px));
  }

  .hero-badge-stack {
    width: 118px;
    height: 136px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .hero-badge:hover {
    transform: translate(28%, -50%);
  }
}

@media (max-width: 520px) and (prefers-reduced-motion: reduce) {
  .hero-badge:hover {
    transform: translate(18%, -50%);
  }
}

/* ——— Sections light ——— */
.section-light {
  padding: 5rem 0;
  background: var(--cream);
}

.section-light.alt {
  background: var(--cream-dark);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ——— Why cards ——— */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--terracotta);
}

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

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.why-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ——— Assortment ——— */
.assort-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.assort-card {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.assort-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.assort-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* ——— Gallery (Проекты) — ровная сетка вместо masonry ——— */
.section-gallery .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery figure:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gallery figure a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery figure:hover img {
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

@media (max-width: 420px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery figure,
  .gallery img {
    transition: none;
  }

  .gallery figure:hover {
    transform: none;
  }

  .gallery figure:hover img {
    transform: none;
  }
}

/* ——— Work (dark) ——— */
.section-work {
  padding: 5rem 0;
  background: var(--dark);
  color: var(--white);
}

.section-work .section-head h2 {
  color: var(--white);
}

.section-work .section-head p {
  color: var(--muted-light);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.75rem;
}

.work-item .num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.work-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--white);
}

.work-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-light);
  line-height: 1.55;
}

.work-cta {
  text-align: center;
  margin-top: 3rem;
}

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

/* ——— Order service CTA ——— */
.section-order-service .order-service-inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.section-order-service .order-service-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  margin: 0 0 1rem;
}

.section-order-service .order-service-inner > p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.order-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Order form + video ——— */
.section-order-form .section-head {
  max-width: 42rem;
}

.order-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.order-video-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.order-video-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--cream-dark);
}

.order-video-note {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.order-video-note code {
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--cream-dark);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.order-field span {
  color: var(--muted);
  font-weight: 500;
}

.order-field input,
.order-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: var(--muted-light);
}

.order-field input:focus-visible,
.order-field textarea:focus-visible {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-soft);
}

.order-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.order-submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.order-form-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.order-form-hint a {
  color: var(--terracotta);
  font-weight: 500;
}

.order-form-hint a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .order-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .order-submit {
    align-self: stretch;
    width: 100%;
  }
}

/* ——— Contact & footer ——— */
.section-contact {
  padding: 4rem 0 2rem;
  background: var(--cream);
}

.contact-card {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 32rem;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--ink);
}

.contact-card p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--cream);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
