:root {
  --bg: #f4f1ea;
  --paper: #faf7f1;
  --ink: #161513;
  --muted: #6b675f;
  --line: #ddd6c8;
  --gold: #b08a4a;
  --gold-deep: #8c6a32;
  --dark: #141311;
  --radius: 4px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 0.85rem;
}
.skip-link:focus { top: 12px; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.logo { flex-shrink: 0; }
.logo,
.logo picture {
  mix-blend-mode: multiply;
}
.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-weight: 500;
  font-size: 0.9rem;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.header__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header__phone {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.messengers {
  display: flex;
  align-items: center;
  gap: 6px;
}
.messengers a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0.85;
}
.messengers a:hover { opacity: 1; }
.messengers img {
  width: 20px;
  height: 20px;
}
.messengers--footer {
  margin: 10px 0 14px;
}
.messengers--footer a {
  width: 32px;
  height: 32px;
}
.messengers--footer img,
.messengers--cta img {
  width: 24px;
  height: 24px;
}
.messengers--cta {
  margin: 0 0 22px;
}
.messengers--cta a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.06);
}
.messengers--cta img {
  width: 22px;
  height: 22px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a150c;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--gold-deep); color: #fff; }
.btn--ghost,
.btn--text {
  background: transparent;
  color: inherit;
  border: 0;
  padding-left: 6px;
  padding-right: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.btn--ghost:hover,
.btn--text:hover {
  background: transparent;
  color: inherit;
  opacity: 0.75;
}
.hero .btn--text { color: #fff; }
.btn--small { padding: 10px 16px; font-size: 0.92rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}
.hero picture,
.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero picture img,
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo picture,
.card__media picture {
  display: block;
}
.gallery--preview .gallery__item picture {
  display: block;
  height: 100%;
}
.gallery:not(.gallery--preview) .gallery__item picture {
  display: block;
  height: auto;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,16,12,.22) 0%, rgba(18,16,12,.42) 42%, rgba(18,16,12,.86) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 0 80px;
  max-width: 820px;
  margin-left: max(20px, calc((100% - 1180px) / 2));
}
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero h1 { margin-bottom: 0.4em; }
.hero__lead {
  font-size: 1.08rem;
  max-width: 34em;
  color: rgba(255,255,255,.86);
  font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }

.strip {
  background: var(--dark);
  color: #efeae0;
  padding: 22px 0;
}
.strip__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
}
.strip strong {
  display: block;
  color: #f4efe6;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.strip span { color: rgba(255,255,255,.62); font-size: 0.9rem; }

.section { padding: 104px 0; }
.section--soft { background: var(--paper); }
.section--dark {
  background: var(--dark);
  color: #f6f1e7;
}
.section--dark .eyebrow { color: rgba(255,255,255,.55); }
.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.section--dark .text-link,
.card--featured .text-link { color: inherit; }
.text-link:hover { color: var(--gold-deep); }

.cards,
.solutions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-top: 32px;
  align-items: stretch;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card--featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: #f4efe6;
  border-color: var(--ink);
}
.card__media { display: block; }
.card__media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.card--featured .card__body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.card--featured .card__tag { color: rgba(255,255,255,.55); }
.card--featured h3 { font-size: 2rem; }
.card--featured p { color: rgba(255,255,255,.78); }
.card--featured .card__note { color: rgba(255,255,255,.5); }
.card--featured .text-link { margin-top: auto; align-self: flex-start; }
.card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.card__price {
  font-weight: 700;
  font-size: 1.08rem;
  margin-top: 12px;
  font-family: var(--sans);
}
.card__note { color: var(--muted); margin-top: 12px; }
.card .text-link { margin-top: 16px; display: inline-block; }

.pay-note {
  margin-top: 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  max-width: 40em;
}
.pay-note h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}
.pay-note p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.steps {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: 18px 0 18px 48px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.panel {
  background: var(--ink);
  color: #f4efe6;
  border-radius: 2px;
  padding: 36px;
}
.panel h3 { font-size: 1.8rem; }
.panel .btn { margin-top: 8px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery--preview {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
}
.gallery--preview .gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery__item {
  margin: 0;
  background: #ddd6c8;
  border-radius: 2px;
  overflow: hidden;
  min-height: 0;
  position: relative;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery:not(.gallery--preview) .gallery__item img {
  min-height: 0;
  aspect-ratio: 3 / 4;
  height: auto;
  object-position: center top;
}
.gallery--preview .gallery__item img { min-height: 0; }
.gallery--preview .gallery__item:first-child img { min-height: 0; }
.gallery__item figcaption {
  padding: 10px 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.gallery--preview .gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: linear-gradient(transparent, rgba(18,16,12,.72));
  padding: 28px 14px 12px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--paper);
}
.empty--page { text-align: center; padding: 64px 24px; }

.contact-cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.contact-cta__box {
  background: rgba(255,255,255,.04);
  padding: 28px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.08);
}
.contact-cta__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}
.contact-cta__box .contact-cta__label:not(:first-child) {
  margin-top: 8px;
}
.contact-cta__phone {
  font-size: 1.55rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--serif);
}
.contact-cta__box a {
  color: inherit;
}
.contact-cta__box p {
  margin: 0 0 16px;
}

.page-hero {
  padding: 64px 0 8px;
}
.page-hero h1 { max-width: 16em; }
.page-hero p { max-width: 40em; color: var(--muted); }

.footer {
  background: #11100e;
  color: #d9d3c7;
  padding: 56px 0 20px;
}
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.footer__logo {
  height: 48px;
  width: auto;
  background: #f4f1ea;
  border-radius: 2px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.footer h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.footer__legal { font-weight: 700; color: #fff; }
.footer__reqs { margin: 0 0 10px; font-size: 0.9rem; color: #cfc8bb; }
.footer__copy {
  border-top: 1px solid #2a2824;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #8b867c;
}
.footer__copy p { margin: 0; }
.footer__credit {
  margin-top: 8px;
  font-size: 50%;
  line-height: 1.4;
}

.cookie {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 20px;
  z-index: 40;
  width: min(420px, calc(100% - 40px));
  background: #1a1916;
  color: #f4f1ea;
  padding: 18px 20px;
  border-radius: 2px;
}
.cookie__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.cookie p { margin: 0; font-size: 0.84rem; max-width: none; }
.cookie__title { font-weight: 700; color: #fff; margin-bottom: 4px !important; font-family: var(--sans); font-size: 0.92rem; }
.cookie a { text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn--ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.legal .article__body { color: #2a2824; }

.admin { background: var(--bg); min-height: 100vh; }
.admin__box { padding: 40px 0 80px; max-width: 720px; }
.admin .form { background: var(--paper); color: var(--ink); }
.admin .form input { border-color: var(--line); }
.admin__list, .admin__leads { list-style: none; padding: 0; }
.admin__list li, .admin__leads li {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.admin__leads li { grid-template-columns: 1fr; }
.admin__list img { width: 88px; height: 64px; object-fit: cover; border-radius: 8px; }

.article-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}
.article-grid--preview {
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
}
.article-grid--preview .article-card:first-child {
  grid-row: span 2;
}
.article-grid--preview .article-card:first-child h3 {
  font-size: 1.85rem;
}
.article-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 22px 0 8px;
}
.article-card h2, .article-card h3 { font-size: 1.28rem; }
.article-card a { text-decoration: none; }
.article-card a:hover { color: var(--gold-deep); }
.article-card p { color: var(--muted); font-size: 0.95rem; }

.article { padding: 24px 0 88px; }
.article__narrow { max-width: 680px; }
.article__body { font-size: 1.08rem; line-height: 1.7; }
.article__body h2 { margin-top: 1.7em; }
.article__body h3 { font-size: 1.15rem; margin-top: 1.3em; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.article__body ul { padding-left: 1.2em; }
.article__related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__related ul { padding-left: 1.1em; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a { text-decoration: none; }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--paper);
}
.pager .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .header__inner { gap: 10px; }
  .nav-toggle { display: block; }
  .header__aside { gap: 8px; }
  .header__phone { font-size: 0.82rem; }
  .messengers a { width: 26px; height: 26px; }
  .messengers img { width: 18px; height: 18px; }
  .logo img { height: 40px; }
  .strip__row,
  .cards,
  .solutions,
  .split,
  .gallery,
  .gallery--preview,
  .contact-cta,
  .footer__grid,
  .article-grid,
  .article-grid--preview {
    grid-template-columns: 1fr;
  }
  .card--featured,
  .gallery--preview .gallery__item:first-child,
  .article-grid--preview .article-card:first-child {
    grid-row: auto;
    grid-column: auto;
  }
  .gallery,
  .gallery--preview { grid-template-columns: 1fr 1fr; }
  .gallery--preview { grid-auto-rows: 140px; }
  .hero { min-height: 78vh; }
  .hero__content { margin-left: 20px; padding-right: 20px; padding-bottom: 56px; }
  .cookie { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .section { padding: 72px 0; }
}
