/* Шаблон «Шоколад»: тёмный шоколад + крем, крупная антиква */
:root {
  --cream: #f6ede4;
  --cream-2: #efe2d6;
  --card: #fbf6f0;
  --choco: #2a1712;
  --choco-2: #3a221b;
  --ink: #2a1712;
  --muted: #6f5a50;
  --muted-light: #cdb9ab;
  --line: #e2d2c4;
  --line-dark: rgb(246 237 228 / .16);
  --rose: #c99a8b;
  --radius: 22px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0 0 .45em; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(42px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }
blockquote { margin: 0; }

.wrap { width: min(1220px, 100% - 32px); margin: 0 auto; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.kicker--light { color: var(--muted-light); }
.hand { font-family: var(--hand); font-size: 24px; line-height: 1.05; color: var(--muted); transform: rotate(-8deg); display: inline-block; }
.dark { background: var(--choco); color: var(--cream); position: relative; overflow: hidden; }
.dark p { color: var(--muted-light); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  background: var(--choco); color: var(--cream); border: 1.5px solid var(--choco);
  font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn--light { background: var(--cream); color: var(--choco); border-color: var(--cream); }
.btn--light:hover { background: #fff; color: var(--choco); }
.btn--outline { background: transparent; color: var(--cream); border-color: rgb(246 237 228 / .6); }
.btn--outline:hover { background: var(--cream); color: var(--choco); }

/* Шапка */
.header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 90%, transparent); backdrop-filter: blur(10px);
}
.header__inner { display: flex; align-items: center; gap: 30px; height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 26px; text-transform: uppercase; letter-spacing: .06em; }
.brand__sub { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a.is-current { border-color: currentColor; }
.header__phone { font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.burger { display: none; }

/* Первый экран */
.hero {
  padding: clamp(30px, 5vw, 60px) 0 clamp(70px, 8vw, 110px);
  background: radial-gradient(ellipse at 60% 40%, #fff7f0 0%, var(--cream) 55%, var(--cream-2) 100%);
  border-radius: 0 0 50% 50% / 0 0 60px 60px;
  position: relative; z-index: 1;
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr 220px; gap: clamp(24px, 3vw, 48px); align-items: center; }
.hero__lead { max-width: 25em; color: var(--muted); font-size: 16px; }
.scroll-hint { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.scroll-hint__circle { width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-size: 18px; transition: transform .3s; }
.scroll-hint:hover .scroll-hint__circle { transform: translateY(4px); }
.hero__photo { margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 40px 80px -30px rgb(42 23 18 / .45); }
.hero__note { position: absolute; top: -6px; right: -10px; }
.hero__kinds { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero__kinds a {
  display: flex; align-items: center; gap: 14px; padding: 6px 16px 6px 6px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 500; transition: background .2s;
}
.hero__kinds img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.hero__kinds a:hover { background: rgb(255 255 255 / .5); }
.hero__kinds a.is-active { background: rgb(255 255 255 / .75); box-shadow: 0 6px 20px rgb(42 23 18 / .08); }
.hero__kinds a.is-active::after {
  content: "→"; margin-left: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--choco); color: var(--cream); display: grid; place-items: center; font-size: 12px;
}

/* Повод */
.moods { padding: clamp(60px, 8vw, 100px) 0; margin-top: -60px; padding-top: calc(clamp(60px, 8vw, 100px) + 60px); }
.moods__inner { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.moods__head p:last-child { max-width: 18em; }
.arches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.arch {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 26px 16px 22px; border-radius: 120px 120px 26px 26px; text-decoration: none;
  background: var(--cream); color: var(--ink); transition: transform .3s, background .3s, color .3s;
}
.arch img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.arch span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5; }
.arch i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 13px; margin-top: auto; }
.arch:hover { transform: translateY(-6px); }
.arch.is-active { background: var(--choco-2); color: var(--cream); box-shadow: inset 0 0 0 1px rgb(246 237 228 / .5); }
.arch.is-active i { background: var(--cream); color: var(--choco); border-color: var(--cream); }

/* Торт в фокусе */
.featured { padding: clamp(60px, 8vw, 110px) 0; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.featured__inner { display: grid; grid-template-columns: 1fr 1fr 230px; gap: clamp(28px, 4vw, 60px); align-items: center; }
.featured__photo { margin: 0; position: relative; }
.featured__photo img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 300px 300px var(--radius) var(--radius); }
.featured__note { position: absolute; left: -10px; top: 30px; z-index: 1; }
.featured__tag { font-size: 14px; font-weight: 500; }
.featured__text > p:not(.kicker):not(.featured__tag):not(.featured__price) { color: var(--muted); max-width: 26em; }
.featured__price { font-family: var(--serif); font-size: 32px; margin: 26px 0 18px; }
.featured__price small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.perks { list-style: none; padding: 0 0 0 32px; margin: 0; border-left: 1px solid var(--line); display: grid; gap: 30px; }
.perks li { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.35; }
.perks__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }

/* Шаги */
.steps-sec { padding: clamp(60px, 8vw, 100px) 0; }
.steps-sec__inner { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; }
.steps-sec h2 { font-size: clamp(28px, 3.2vw, 40px); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -22px; top: 70px; color: var(--muted-light); }
.steps img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--choco-2); margin-bottom: 18px; }
.steps b::before { content: "0" counter(s); display: block; font-family: var(--serif); font-weight: 400; font-size: 14px; color: var(--muted-light); padding-left: 16px; border-left: 1px solid var(--muted-light); margin-bottom: 8px; }
.steps b { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.steps span { font-size: 13px; color: var(--muted-light); line-height: 1.5; }

/* О себе */
.about { padding: clamp(60px, 8vw, 110px) 0; }
.about__inner { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; }
.about__text > p:not(.kicker) { color: var(--muted); }
.about__text .btn { margin-top: 10px; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgb(42 23 18 / .5); }
.about__facts { list-style: none; counter-reset: f; padding: 0; margin: 0; display: grid; gap: 0; }
.about__facts li { counter-increment: f; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about__facts li::before { content: "0" counter(f); grid-row: span 2; font-size: 13px; color: var(--muted); padding-top: 6px; }
.about__facts b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }
.about__facts span { font-size: 13px; color: var(--muted); }
.stamp {
  position: absolute; right: 0; top: -40px; width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center; text-align: center; padding: 20px;
}
.stamp i { font-style: normal; position: absolute; bottom: 18px; color: var(--muted); }
.stamp .hand { font-size: 20px; transform: rotate(-10deg) translateY(-6px); }

/* Работы */
.works { padding: clamp(60px, 8vw, 100px) 0; background: var(--cream-2); }
.works__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.works__head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  background: transparent; border: 1px solid rgb(42 23 18 / .25); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--choco); border-color: var(--choco); color: var(--cream); }
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery button { display: block; width: 100%; padding: 0; margin: 0 0 16px; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 18px; overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery__more { margin: 24px 0 0; color: var(--muted); }
.gallery__more a { font-weight: 600; }

/* Цены */
.prices-sec { padding: clamp(60px, 8vw, 100px) 0; }
.prices { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.price-main__label { color: var(--cream) !important; font-weight: 600; margin: 0; }
.price-main__value { font-family: var(--serif); font-size: clamp(52px, 6vw, 72px); line-height: 1; margin: 10px 0 26px; color: var(--cream) !important; }
.price-main__value small { display: block; font-family: var(--sans); font-size: 14px; color: var(--muted-light); margin-top: 10px; }
.price-main ul { padding-left: 18px; margin: 0 0 30px; color: var(--muted-light); font-size: 15px; }
.price-main li { margin-bottom: 6px; }
.note { font-size: 13px; margin: 18px 0 0; }
.price-list { background: var(--choco-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-dark); }
.price-list table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-list td { padding: 12px 0; border-bottom: 1px solid var(--line-dark); vertical-align: top; color: var(--muted-light); }
.price-list tr:last-child td { border-bottom: 0; }
.price-list td:last-child { text-align: right; white-space: nowrap; color: var(--cream); font-weight: 600; padding-left: 16px; }

/* Отзывы */
.reviews-sec { padding: clamp(60px, 8vw, 100px) 0; }
.reviews-sec__inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.reviews-sec h2 { font-size: clamp(26px, 2.8vw, 34px); }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.review { margin: 0; background: var(--card); border-radius: var(--radius); padding: 26px 28px; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; box-shadow: 0 10px 30px -18px rgb(42 23 18 / .3); }
.review__ava { grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; }
.review blockquote { font-size: 14px; line-height: 1.6; color: var(--muted); }
.review blockquote::before { content: "«"; } .review blockquote::after { content: "»"; }
.review figcaption { margin-top: 10px; font-size: 13px; font-weight: 600; }
.review figcaption::before { content: "- "; }

/* Финал и контакты */
.final { position: relative; color: var(--cream); text-align: center; padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px); overflow: hidden; background: var(--choco); }
.final__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--choco) 0%, rgb(42 23 18 / .3) 40%, rgb(42 23 18 / .85) 100%); z-index: 1; }
.final__inner { position: relative; z-index: 2; }
.final h2 { max-width: none; }
.final__lead { color: var(--muted-light); max-width: 34em; margin: 0 auto; }
.final__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 34px 0 56px; }
.final__contacts { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 60px; margin: 0; padding-top: 30px; border-top: 1px solid var(--line-dark); }
.final__contacts dt { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-light); }
.final__contacts dd { margin: 4px 0 0; font-size: 15px; }
.final__contacts a { text-decoration: none; border-bottom: 1px solid rgb(246 237 228 / .4); }

.footer { background: var(--choco); color: var(--muted-light); padding: 22px 0; font-size: 13px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; }

/* Переключатель шаблонов (место под него внизу подвала) */
.footer { padding-bottom: 76px; }
.tpl-switch {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; padding: 4px; gap: 2px;
  background: rgb(42 23 18 / .92); border: 1px solid rgb(246 237 228 / .25); border-radius: 999px; backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgb(0 0 0 / .25); font: 600 12px var(--sans);
}
.tpl-switch a { color: var(--muted-light); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
.tpl-switch a:hover { color: var(--cream); }
.tpl-switch a[aria-current] { background: var(--cream); color: var(--choco); }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgb(20 10 8 / .94); display: flex; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 12px; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 46px; line-height: 1; padding: 10px 16px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 14px; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }

/* Адаптив */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero__kinds { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .moods__inner, .steps-sec__inner, .reviews-sec__inner { grid-template-columns: 1fr; }
  .featured__inner { grid-template-columns: 1fr 1fr; }
  .perks { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
  .about__inner { grid-template-columns: 1fr 1fr; }
  .about__facts { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .about__facts li { border-bottom: 0; border-top: 1px solid var(--line); }
  .stamp { display: none; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--cream); padding: 8px 16px 18px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 16px 0; font-size: 13px; border-bottom: 1px solid var(--line); }
  .nav a.is-current { border-color: var(--line); }
  .header__phone { margin-left: auto; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 11px; }
  .burger span { height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hero__inner, .featured__inner, .about__inner, .prices { grid-template-columns: 1fr; }
  .hero__photo { max-width: 460px; margin: 0 auto; }
  .hero__kinds { grid-template-columns: repeat(2, 1fr); }
  .arches { grid-template-columns: repeat(2, 1fr); }
  .featured__photo { max-width: 440px; }
  .perks { grid-template-columns: 1fr; gap: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .about__photo { max-width: 420px; }
  .about__facts { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header__phone { display: none; }
  .burger { margin-left: auto; }
  .hero__kinds a { font-size: 13px; }
  .hero__kinds a.is-active::after { display: none; }
  .arch { border-radius: 90px 90px 22px 22px; padding: 20px 10px 18px; }
  .arch img { width: 72px; height: 72px; }
  .arch span { font-size: 10.5px; letter-spacing: .1em; }
  .steps { gap: 22px 16px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery button { margin-bottom: 10px; border-radius: 12px; }
  .review { grid-template-columns: 1fr; padding: 22px; }
  .review__ava { grid-row: auto; margin-bottom: 12px; }
  .final__actions .btn { width: 100%; }
  .lightbox { padding: 60px 8px; }
  .lightbox__nav { top: auto; bottom: 6px; }
}
