/*
Theme Name: Frolova Atelier
Theme URI: https://frolova-handmade.ru/
Author: Elena Idrisova IT Studio
Description: Авторская тема мастерской Галины Фроловой с каталогом WooCommerce, афишей и личным кабинетом мастера.
Version: 1.0.5
Text Domain: frolova-atelier
*/

@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("assets/fonts/cormorant-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f0e5;
  --paper-deep: #eadfce;
  --cream: #fffaf2;
  --ink: #27261f;
  --muted: #6d685d;
  --forest: #204b3b;
  --forest-deep: #17382d;
  --sage: #9daa86;
  --terracotta: #b85f3c;
  --terracotta-deep: #91442b;
  --peach: #eeb989;
  --line: rgba(39, 38, 31, .14);
  --white-line: rgba(255, 255, 255, .2);
  --shadow: 0 28px 80px rgba(44, 35, 24, .14);
  --shadow-soft: 0 16px 44px rgba(44, 35, 24, .09);
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --radius: 30px;
  --radius-sm: 18px;
  --content: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .32;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(238, 185, 137, .45), transparent 28%),
    radial-gradient(circle at 85% 35%, rgba(157, 170, 134, .3), transparent 30%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  top: 10px;
  left: 10px;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 18px;
  background: white;
}

.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.site-main { overflow: hidden; }
.section { position: relative; padding: clamp(82px, 10vw, 148px) 0; }
.section--tight { padding: clamp(64px, 7vw, 96px) 0; }
.section--forest { color: var(--cream); background: var(--forest-deep); }
.section--paper-deep { background: var(--paper-deep); }
.section-heading { max-width: 820px; margin-bottom: 46px; }
.section-heading--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--terracotta-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.section--forest .eyebrow { color: var(--peach); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(58px, 8vw, 116px); letter-spacing: -.045em; }
h2 { font-size: clamp(48px, 6vw, 82px); letter-spacing: -.035em; }
h3 { font-size: clamp(31px, 3vw, 45px); letter-spacing: -.02em; }
p { margin: 0; }
.lead { max-width: 690px; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); line-height: 1.7; }
.section--forest .lead { color: rgba(255, 250, 242, .72); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 240, 229, .88);
  backdrop-filter: blur(18px);
}
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 86px; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(184, 95, 60, .28);
  border-radius: 50%;
  background: #28231f;
  box-shadow: 0 7px 18px rgba(44, 35, 24, .14);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font: 700 24px/1 var(--serif); letter-spacing: .04em; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; }
.main-nav { justify-self: center; }
.main-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 38px); margin: 0; padding: 0; list-style: none; }
.main-nav a { position: relative; font-size: 13px; font-weight: 600; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.header-cart__count { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--cream); background: var(--forest); font-size: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-open .menu-toggle span { opacity: 0; }
.nav-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .wp-element-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--cream);
  background: var(--forest);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  color: var(--cream);
  background: var(--forest-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(32, 75, 59, .18);
}
.button--terracotta { border-color: var(--terracotta); background: var(--terracotta); }
.button--terracotta:hover, .button--terracotta:focus-visible { background: var(--terracotta-deep); }
.button--light { border-color: var(--cream); color: var(--forest); background: var(--cream); }
.button--outline { color: var(--ink); background: transparent; }
.button--outline:hover, .button--outline:focus-visible { color: var(--cream); }
.button--small { min-height: 43px; padding-inline: 18px; }
.button--danger { border-color: #9f3e37; color: #9f3e37; background: transparent; }
.button--danger:hover { color: white; background: #9f3e37; }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--forest); font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.section--forest .text-link { color: var(--peach); }

.hero { min-height: calc(100vh - 86px); padding: clamp(38px, 5vw, 70px) 0 62px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(440px, 1.12fr); align-items: center; gap: clamp(42px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy h1 em { color: var(--terracotta); font-style: italic; font-weight: 600; }
.hero-copy .lead { max-width: 600px; margin-top: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { display: flex; align-items: center; gap: 14px; max-width: 540px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.hero-note strong { color: var(--ink); }
.hero-note__line { width: 54px; height: 1px; background: var(--terracotta); }
.hero-visual { position: relative; min-height: min(690px, 76vh); }
.hero-photo {
  position: absolute;
  inset: 0 0 34px 45px;
  overflow: hidden;
  border-radius: 48% 48% 34px 34px;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(25, 48, 37, .35)); }
.hero-signature {
  position: absolute;
  right: -18px;
  bottom: 0;
  z-index: 2;
  max-width: 275px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 22px;
  color: var(--cream);
  background: rgba(32, 75, 59, .91);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}
.hero-signature span { display: block; color: var(--peach); font: 600 14px/1 var(--serif); font-style: italic; }
.hero-signature strong { display: block; margin-top: 7px; font: 600 27px/1 var(--serif); }
.hero-thread { position: absolute; top: -15px; left: 0; width: 106px; height: 106px; border: 1px solid rgba(184, 95, 60, .4); border-radius: 44% 56% 62% 38%; transform: rotate(28deg); }
.hero-thread::before, .hero-thread::after { content: ""; position: absolute; border: 1px solid rgba(184, 95, 60, .24); border-radius: inherit; inset: 11px; transform: rotate(31deg); }
.hero-thread::after { inset: 23px; transform: rotate(62deg); }

.trust-strip { border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 28px clamp(16px, 4vw, 54px); border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font: 600 28px/1.1 var(--serif); }
.trust-item span { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.product-showcase { position: relative; }
.product-showcase::after { content: "ручная работа"; position: absolute; right: -40px; bottom: 0; color: rgba(32, 75, 59, .055); font: 700 clamp(80px, 14vw, 210px)/.75 var(--serif); white-space: nowrap; pointer-events: none; }
.woocommerce ul.products, .product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px !important;
  margin: 0 !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .product-card {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 14px 14px 25px !important;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 242, .74);
  box-shadow: 0 0 0 rgba(44, 35, 24, 0);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.woocommerce ul.products li.product:hover, .product-card:hover { transform: translateY(-7px); border-color: rgba(184, 95, 60, .28); box-shadow: var(--shadow-soft); }
.woocommerce ul.products li.product a img, .product-card img { width: 100%; aspect-ratio: 1 / .82; margin: 0 0 20px !important; object-fit: cover; border-radius: 19px; background: var(--paper-deep); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 2.5em; padding: 0 7px !important; color: var(--ink); font: 600 28px/1.05 var(--serif) !important; }
.woocommerce ul.products li.product .price { padding: 0 7px; color: var(--terracotta-deep) !important; font-size: 14px !important; font-weight: 600 !important; }
.woocommerce ul.products li.product .button { width: calc(100% - 14px); margin: 12px 7px 0 !important; }
.woocommerce ul.products li.product a.button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_variable {
  display: flex !important;
  min-height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 18px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}
.woocommerce span.onsale { top: 24px !important; right: 24px !important; left: auto !important; min-width: 0 !important; min-height: 0 !important; padding: 7px 12px !important; border-radius: 999px !important; color: white; background: var(--terracotta) !important; font-size: 11px !important; line-height: 1.2 !important; }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(50px, 8vw, 110px); }
.story-photos { position: relative; min-height: 680px; }
.story-photo--main { position: absolute; inset: 0 80px 70px 0; width: calc(100% - 80px); height: calc(100% - 70px); object-fit: cover; border-radius: 28px 28px 48% 28px; box-shadow: var(--shadow); }
.story-photo--portrait { object-position: 50% 22%; }
.story-photo--small { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1 / .9; object-fit: cover; border: 10px solid var(--paper); border-radius: 28px; box-shadow: var(--shadow-soft); }
.story-year { position: absolute; top: 38px; right: 20px; z-index: 2; display: grid; width: 116px; height: 116px; place-items: center; border-radius: 50%; color: var(--cream); background: var(--terracotta); text-align: center; transform: rotate(7deg); }
.story-year strong { display: block; font: 700 28px/1 var(--serif); }
.story-year span { display: block; margin-top: 3px; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.story-copy .lead { margin-top: 28px; }
.story-quote { margin: 34px 0 0; padding: 24px 0 0 26px; border-top: 1px solid var(--line); border-left: 2px solid var(--terracotta); font: 600 clamp(25px, 2.7vw, 38px)/1.18 var(--serif); }
.story-copy .button { margin-top: 34px; }

.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--cream); box-shadow: var(--shadow-soft); }
.event-card__media { position: relative; min-height: 340px; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; transition: transform .65s ease; }
.event-card:hover .event-card__media img { transform: scale(1.035); }
.event-card__date { position: absolute; right: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; color: white; background: rgba(32, 75, 59, .92); font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); }
.event-card__body { padding: 27px 27px 30px; }
.event-card__body .eyebrow { font-size: 9px; }
.event-card__body h3 { font-size: 35px; }
.event-card__text { margin-top: 15px; color: var(--muted); font-size: 14px; }
.event-card__text p + p { margin-top: 10px; }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.event-card__meta span { padding: 6px 10px; border-radius: 999px; color: var(--forest); background: rgba(157, 170, 134, .2); font-size: 11px; font-weight: 600; }
.event-empty { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 35px; border: 1px dashed rgba(255, 250, 242, .28); border-radius: 28px; }
.event-empty__mark { font: 600 72px/1 var(--serif); color: var(--peach); }
.event-empty h3 { font-size: 34px; }
.event-empty p { margin-top: 7px; color: rgba(255, 250, 242, .68); font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process-step { position: relative; padding: 32px 32px 0 0; }
.process-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 8px var(--paper); }
.process-step span { color: var(--terracotta); font: 600 15px/1 var(--serif); }
.process-step h3 { margin-top: 16px; font-size: 30px; }
.process-step p { margin-top: 12px; color: var(--muted); font-size: 13px; }

.gallery-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; grid-template-rows: 310px 460px; gap: 16px; }
.gallery-item { position: relative; overflow: hidden; margin: 0; border-radius: 24px; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-item:nth-child(4) img { object-position: 50% 16%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 65%, rgba(23, 56, 45, .48)); opacity: .65; }

.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border-radius: 34px; color: var(--cream); background: var(--forest-deep); box-shadow: var(--shadow); }
.contact-copy { position: relative; padding: clamp(38px, 6vw, 78px); }
.contact-copy::after { content: ""; position: absolute; right: -70px; bottom: -80px; width: 260px; height: 260px; border: 1px solid rgba(238, 185, 137, .3); border-radius: 46% 54% 62% 38%; transform: rotate(28deg); }
.contact-copy h2 { max-width: 580px; }
.contact-copy p { max-width: 520px; margin-top: 26px; color: rgba(255, 250, 242, .72); }
.contact-form { padding: clamp(36px, 5vw, 68px); background: var(--cream); color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label, .field > span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: rgba(247, 240, 229, .45);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184, 95, 60, .12); }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 11px; }
.check input { margin-top: 4px; accent-color: var(--forest); }
.contact-form .button { margin-top: 20px; }
.form-status { margin-bottom: 20px; padding: 12px 15px; border-radius: 12px; color: var(--forest); background: rgba(157, 170, 134, .2); font-size: 13px; }
.form-status--error { color: #8d342f; background: rgba(184, 95, 60, .12); }
.website-field { position: absolute; left: -9999px; }

.site-footer { padding: 64px 0 30px; color: var(--cream); background: #112a21; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 50px; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand-mark { border-color: rgba(238, 185, 137, .35); box-shadow: 0 9px 25px rgba(0, 0, 0, .22); }
.site-footer .brand-copy small { color: rgba(255, 250, 242, .55); }
.footer-intro p { max-width: 470px; margin-top: 20px; color: rgba(255, 250, 242, .62); font-size: 13px; }
.footer-column strong { display: block; margin-bottom: 18px; color: var(--peach); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.footer-column a { display: block; margin-top: 9px; color: rgba(255, 250, 242, .78); font-size: 13px; text-decoration: none; }
.footer-column a:hover { color: var(--peach); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .11); color: rgba(255, 250, 242, .45); font-size: 10px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom .studio-credit { color: var(--peach); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-bottom .studio-credit:hover, .footer-bottom .studio-credit:focus-visible { color: var(--cream); }

.page-hero { padding: clamp(70px, 9vw, 130px) 0 70px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 950px; }
.page-hero .lead { margin-top: 24px; }
.content-layout { padding: 70px 0 120px; }
.entry-content { font-size: 17px; }
.entry-content > * { max-width: 860px; margin-inline: auto; }
.entry-content > .woocommerce { max-width: var(--content); }
.entry-content h2, .entry-content h3 { margin-top: 1.2em; }
.entry-content p + p { margin-top: 1.2em; }
.delivery-note {
  display: grid;
  grid-template-columns: auto 1fr;
  max-width: var(--content) !important;
  align-items: center;
  gap: 18px;
  margin: 0 auto 34px;
  padding: 22px 25px;
  border: 1px solid rgba(32, 75, 59, .2);
  border-radius: 18px;
  color: var(--forest-deep);
  background: rgba(157, 170, 134, .16);
}
.delivery-note__icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: var(--cream); background: var(--forest); font-size: 23px; }
.delivery-note strong { display: block; font: 700 25px/1.15 var(--serif); }
.delivery-note p { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.shipping-by-agreement { color: var(--forest); font-weight: 600; }

.afisha-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.afisha-page-grid .event-card { display: grid; grid-template-columns: .9fr 1.1fr; }
.afisha-page-grid .event-card__media, .afisha-page-grid .event-card__media img { min-height: 100%; }

.cabinet-wrap { padding: 56px 0 110px; }
.cabinet-login { display: grid; grid-template-columns: 1fr .8fr; max-width: 940px; margin: 0 auto; overflow: hidden; border-radius: 30px; background: var(--cream); box-shadow: var(--shadow); }
.cabinet-login__intro { padding: 48px; color: var(--cream); background: var(--forest-deep); }
.cabinet-login__intro h1 { margin-top: 16px; font-size: 58px; }
.cabinet-login__intro p { margin-top: 20px; color: rgba(255, 250, 242, .68); }
.cabinet-login__form { padding: 48px; }
.cabinet-login__form label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.cabinet-login__form input[type="text"], .cabinet-login__form input[type="password"] { width: 100%; min-height: 52px; margin-bottom: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.cabinet-login__form .login-submit { margin: 8px 0 0; }
.cabinet-login__form input[type="submit"] { width: 100%; }
.cabinet-login__form .login-remember label { display: flex; align-items: center; gap: 8px; text-transform: none; }
.cabinet-top { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.cabinet-top h1 { font-size: clamp(48px, 6vw, 78px); }
.cabinet-top__actions { display: flex; gap: 10px; }
.cabinet-notice { margin-bottom: 24px; padding: 14px 18px; border: 1px solid rgba(32, 75, 59, .2); border-radius: 14px; color: var(--forest); background: rgba(157, 170, 134, .18); font-size: 13px; }
.cabinet-notice--error { border-color: rgba(184, 95, 60, .24); color: #8d342f; background: rgba(184, 95, 60, .1); }
.cabinet-grid { display: grid; grid-template-columns: minmax(350px, .84fr) minmax(0, 1.16fr); align-items: start; gap: 28px; }
.cabinet-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 250, 242, .8); box-shadow: var(--shadow-soft); }
.cabinet-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 25px; border-bottom: 1px solid var(--line); }
.cabinet-panel__head h2 { font-size: 34px; }
.cabinet-form { padding: 25px; }
.cabinet-form .form-grid { gap: 14px; }
.cabinet-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.image-preview { width: 100%; max-height: 260px; margin-top: 10px; object-fit: cover; border-radius: 14px; }
.event-admin-list { display: grid; gap: 14px; padding: 18px; }
.event-admin-card { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.event-admin-card__image { width: 108px; height: 108px; object-fit: cover; border-radius: 13px; background: var(--paper-deep); }
.event-admin-card h3 { margin-top: 5px; font-size: 26px; }
.event-admin-card__status { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--forest); background: rgba(157, 170, 134, .22); font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.event-admin-card__status.is-hidden { color: var(--terracotta-deep); background: rgba(184, 95, 60, .12); }
.event-admin-card p { margin-top: 7px; color: var(--muted); font-size: 11px; }
.event-admin-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.event-admin-actions form { margin: 0; }
.event-admin-actions .button { min-height: 36px; padding: 0 12px; font-size: 10px; }

.woocommerce .woocommerce-breadcrumb { margin-bottom: 30px; color: var(--muted); font-size: 11px; }
.woocommerce-content { position: relative; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.woocommerce .woocommerce-ordering select { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.woocommerce div.product { padding: 40px 0 100px; }
.woocommerce div.product div.images img { border-radius: 24px; }
.woocommerce div.product .product_title { font-size: clamp(46px, 6vw, 76px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--terracotta-deep); font-size: 22px; }
.woocommerce div.product form.cart { display: flex; gap: 10px; margin-top: 28px; }
.woocommerce .quantity .qty { min-height: 54px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.woocommerce-tabs { margin-top: 50px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-color: var(--line); background: var(--paper-deep); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--forest); background: var(--cream); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--forest); }
.woocommerce table.shop_table { border-color: var(--line); border-radius: 18px; background: var(--cream); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 12px 15px; border-bottom: 1px solid var(--line); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav {
    position: fixed;
    inset: 86px 0 auto;
    height: calc(100vh - 86px);
    padding: 30px 20px;
    background: rgba(247, 240, 229, .98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font: 600 32px/1 var(--serif); }
  .header-actions { justify-self: end; }
  .header-cart span:not(.header-cart__count) { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-visual { min-height: 610px; }
  .woocommerce ul.products, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid { gap: 54px; }
  .story-photos { min-height: 600px; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 38px; }
  .afisha-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .site-shell { width: min(calc(100% - 28px), var(--content)); }
  .section { padding: 76px 0; }
  .header-inner { min-height: 76px; gap: 12px; }
  .main-nav { inset-block-start: 76px; height: calc(100vh - 76px); }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small { display: none; }
  .header-cart { min-height: 40px; padding-inline: 10px; }
  .hero { min-height: 0; padding-top: 42px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-visual { min-height: 520px; }
  .hero-photo { inset: 0 18px 35px 18px; }
  .hero-signature { right: 0; max-width: 235px; }
  .hero-thread { left: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:first-child { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .section-heading--row { align-items: flex-start; flex-direction: column; }
  .story-grid, .contact-card, .cabinet-login, .cabinet-grid { grid-template-columns: 1fr; }
  .story-photos { min-height: 520px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 230px 230px; }
  .gallery-item:first-child { grid-column: 1 / 3; grid-row: auto; }
  .gallery-item:nth-child(4) { grid-column: 1 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-bottom, .cabinet-top { align-items: flex-start; flex-direction: column; }
  .event-empty { grid-template-columns: auto 1fr; }
  .event-empty .button { grid-column: 1 / -1; }
  .afisha-page-grid .event-card { grid-template-columns: 1fr; }
  .cabinet-login__intro, .cabinet-login__form { padding: 34px 26px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-shell { width: min(calc(100% - 22px), var(--content)); }
  h1 { font-size: 54px; }
  h2 { font-size: 46px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 18px; }
  .header-actions .button { display: none; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 450px; }
  .hero-photo { inset-inline: 0; border-radius: 44% 44% 22px 22px; }
  .hero-signature { right: 8px; padding: 18px 20px; }
  .hero-note { align-items: flex-start; }
  .woocommerce ul.products, .product-grid, .event-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .story-photos { min-height: 460px; }
  .story-photo--main { inset: 0 40px 55px 0; width: calc(100% - 40px); height: calc(100% - 55px); }
  .story-photo--small { width: 50%; border-width: 6px; }
  .story-year { top: 18px; right: 0; width: 96px; height: 96px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 280px); }
  .gallery-item:first-child, .gallery-item:nth-child(4) { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .contact-copy, .contact-form { padding: 34px 22px; }
  .event-admin-card { grid-template-columns: 76px 1fr; }
  .event-admin-card__image { width: 76px; height: 76px; }
  .event-admin-actions { grid-column: 1 / -1; }
}
