:root {
  --paper: #f7f3ec;
  --paper-deep: #eee7dc;
  --ink: #292c25;
  --muted: #77766c;
  --green: #3d5141;
  --green-dark: #2a392e;
  --rose: #b96e69;
  --rose-light: #e6c7be;
  --line: rgba(49, 68, 56, .14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
section[id] { scroll-margin-top: 88px; }
body { margin: 0; isolation: isolate; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }

.site-header { height: 82px; max-width: 1440px; margin: 0 auto; padding: 0 7.2%; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 205px; }
.brand-mark { color: var(--rose); font-size: 29px; line-height: 1; }
.brand-name { font-size: 13px; line-height: 1.15; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.brand-name i { display: block; margin-top: 4px; color: var(--muted); font-family: var(--serif); font-weight: 500; letter-spacing: .02em; text-transform: none; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.main-nav a, .header-link { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.main-nav a { color: #66665e; transition: color .2s; }
.main-nav a:hover, .header-link:hover { color: var(--rose); }
.header-link { white-space: nowrap; font-weight: 700; color: var(--green); }
.header-link span { color: var(--rose); margin-left: 4px; }
.menu-toggle { display: none; }

.hero { max-width: 1440px; min-height: 600px; margin: 0 auto; padding: 48px 8.3% 60px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; color: var(--rose); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-line { width: 32px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.03em; }
h1 { max-width: 560px; margin-bottom: 22px; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.02; }
h1 em, h2 em { color: var(--rose); font-style: italic; }
.hero-text { max-width: 420px; margin-bottom: 30px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; border-radius: 30px; font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.button-dark { background: var(--green); color: #fff; }
.button-dark:hover { background: var(--green-dark); }
.button-outline { border: 1.5px solid var(--green); color: var(--green); background: transparent; }
.button-outline:hover { background: var(--green); color: #fff; }
.button span { font-size: 14px; }
.hero-note { display: flex; align-items: center; gap: 13px; margin-top: 48px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.note-flower { color: var(--rose); font-size: 26px; }

.hero-art { min-height: 480px; position: relative; }
.hero-image-wrap { height: 480px; width: min(100%, 460px); margin-left: auto; overflow: hidden; border-radius: 46% 46% 16px 16px; background: var(--paper-deep); box-shadow: 0 16px 36px rgba(41,44,37,0.08); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.hero-stamp { position: absolute; top: 38px; left: -15px; width: 100px; height: 100px; display: grid; place-content: center; border-radius: 50%; background: var(--rose); color: #fff; text-align: center; transform: rotate(-10deg); box-shadow: 0 10px 25px rgba(185,110,105,0.3); }
.hero-stamp span { font-family: var(--serif); font-size: 14px; line-height: 1.1; }
.hero-stamp b { margin-top: 2px; font-size: 12px; }
.hero-caption { position: absolute; right: -15px; bottom: 34px; padding: 12px 18px; border-radius: 8px; background: #fff; color: var(--green); font-family: var(--serif); font-size: 14px; font-style: italic; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.hero-sparkle { position: absolute; color: #c8a280; }
.sparkle-one { top: 70px; left: 45%; font-size: 18px; }
.sparkle-two { right: 4%; bottom: 60px; font-size: 24px; }

.qualities { max-width: 1180px; margin: 0 auto; padding: 22px 30px; display: flex; justify-content: space-around; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.quality { display: flex; align-items: center; gap: 11px; color: var(--green); font-family: var(--serif); font-size: 16px; font-weight: 500; }
.quality-icon { color: var(--rose); font-family: var(--sans); font-size: 20px; }

.section { max-width: 1360px; margin: 0 auto; padding: 90px 6%; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 46px; }
h2 { margin-bottom: 0; font-size: clamp(38px, 4.5vw, 54px); line-height: 1.08; }
.section-intro { max-width: 380px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Сетка каталога */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 24px; }
.product-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 4px 18px rgba(0,0,0,0.04); transition: transform .25s ease, box-shadow .25s ease; border: 1px solid rgba(49,68,56,0.06); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.product-photo { aspect-ratio: 1.08; position: relative; overflow: hidden; border-radius: 8px; background: var(--paper-deep); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.product-photo--wide { aspect-ratio: 4 / 3; }
.product-photo--portrait { aspect-ratio: 3 / 4; }
.product-photo--shot-4 { aspect-ratio: 1 / 1; }
.product-photo--shot-5 { aspect-ratio: .85; }
.product-photo--shot-1 img { object-position: center 38%; }
.product-photo--shot-3 img { object-position: center 38%; }
.product-photo--shot-4 img { object-position: center 33%; }
.product-photo--shot-5 img { object-position: center 38%; }
.product-photo--shot-6 img, .product-photo--shot-7 img { object-position: center 47%; }
.product-photo--shot-8 img { object-position: center 60%; }
.product-card:hover .product-photo img { transform: scale(1.05); }
.photo-tag { position: absolute; left: 10px; top: 10px; padding: 5px 9px; border-radius: 6px; background: #e9dfd2; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 14px; }
.product-meta h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); }
.product-price { font-size: 17px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.product-desc { margin: 8px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; flex-grow: 1; }
.button-card { width: 100%; min-height: 40px; padding: 0 16px; border-radius: 8px; background: var(--paper-deep); color: var(--green); font-size: 11px; justify-content: space-between; }
.button-card:hover { background: var(--green); color: #fff; }
.button-card span { color: var(--rose); font-size: 15px; }
.button-card:hover span { color: #fff; }

.catalog-footnote { margin-top: 40px; color: var(--muted); font-size: 12px; text-align: center; }
.catalog-footnote span { color: var(--rose); margin-right: 6px; }

/* О мастере */
.about { max-width: none; padding: 90px max(6%, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 8%; background: #ece5d8; position: relative; }
.about-image { height: 460px; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.09); }
.about-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.about-image-label { position: absolute; right: 16px; bottom: 20px; padding: 14px 18px; border-radius: 8px; background: var(--rose); color: #fff; font-family: var(--serif); font-size: 15px; line-height: 1.3; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy > p:not(.eyebrow) { color: #5f6055; font-size: 14px; line-height: 1.8; }
.signature { display: flex; flex-direction: column; gap: 3px; margin-top: 30px; color: var(--muted); font-family: var(--serif); font-size: 15px; font-style: italic; }
.signature strong { color: var(--green); font-size: 20px; font-weight: 600; font-style: normal; }
.about-doodle { position: absolute; right: 6%; top: 12%; color: #c8a280; font-size: 34px; }

/* Шаги */
.order-band { padding: 80px max(6%, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 8%; background: var(--green); color: #f7f3ec; }
.order-content .eyebrow { color: #e5b8a9; }
.order-content h2 { margin-bottom: 32px; }
.order-content h2 em { color: #f0c3b6; }
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.18); }
.step > span { color: #f0c3b6; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.step h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.step p { margin: 0; color: #deddd3; font-size: 12px; line-height: 1.6; }
.order-image { width: 100%; height: auto; aspect-ratio: 4 / 3; position: relative; border-radius: var(--radius); overflow: hidden; }
.order-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.order-image > span { position: absolute; right: 16px; bottom: 16px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--rose); color: #fff; font-size: 20px; }

/* Контакты и адрес */
.contact { max-width: none; padding: 90px 6% 80px; text-align: center; background: #efe8df; position: relative; }
.contact .eyebrow { justify-content: center; }
.contact h2 { margin-bottom: 16px; }
.contact-text { max-width: 540px; margin: 0 auto 34px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-cards { max-width: 650px; margin: 0 auto 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px; background: #fff; border-radius: var(--radius); border: 1px solid rgba(49,68,56,0.08); transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.contact-icon { font-size: 24px; }
.contact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.contact-val { color: var(--green); font-size: 13px; font-weight: 700; word-break: break-all; }

/* Карточка мастерской и ориентиров */
.location-card {
  max-width: 980px;
  margin: 0 auto 38px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(49, 68, 56, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  text-align: left;
  align-items: center;
}

.location-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--paper-deep);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.location-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--green-dark);
}

.location-guide {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.location-guide li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #55574f;
}

.guide-bullet {
  color: var(--rose);
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

.button-map {
  font-size: 12px;
  min-height: 44px;
}

.location-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.shop-thumb {
  margin: 0;
  background: var(--paper-deep);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}

.shop-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.04);
}

.shop-thumb figcaption {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: #fdfaf6;
  text-align: center;
  border-top: 1px solid var(--line);
}

.vk-fallback { margin: -16px auto 30px; color: var(--muted); font-size: 12px; }
.vk-fallback a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-cta { display: flex; justify-content: center; }
.order-toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; width: min(520px, calc(100% - 32px)); padding: 13px 18px; border-radius: 12px; background: var(--green-dark); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 13px; line-height: 1.5; text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s, visibility .2s; }
.order-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Лепестки появляются при прокрутке и мягко падают через экран */
.scroll-petal {
  position: fixed;
  z-index: 0;
  top: -24px;
  width: 13px;
  height: 19px;
  border-radius: 85% 0 85% 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 32% 27%, #fffaf5 0, var(--petal-color) 48%, #d58a9c 100%);
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.72), 0 2px 5px rgba(78,47,58,.13);
  opacity: 0;
  animation: falling-petal var(--fall-duration, 3.2s) cubic-bezier(.35,.05,.65,.95) forwards;
  will-change: transform, opacity;
}
.scroll-petal::after {
  content: "";
  position: absolute;
  left: 48%;
  bottom: 12%;
  width: 1px;
  height: 68%;
  border-radius: 1px;
  background: rgba(255,255,255,.6);
  transform: rotate(24deg);
}
@keyframes falling-petal {
  0% { opacity: 0; transform: translate3d(0, -4vh, 0) rotate(0deg) scale(var(--petal-scale, 1)); }
  12% { opacity: .88; }
  82% { opacity: .78; }
  100% { opacity: 0; transform: translate3d(var(--drift, 0), 110vh, 0) rotate(var(--spin, 360deg)) scale(.85); }
}

/* Подвал */
.site-footer { max-width: 1440px; margin: auto; padding: 24px 6%; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.footer-brand { min-width: auto; color: var(--ink); }
.site-footer a:not(.brand) { color: var(--green); font-weight: 600; }

/* Адаптив */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 400px; }
  .hero-image-wrap { height: 400px; margin: 0 auto; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .location-card { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .about, .order-band { grid-template-columns: 1fr; gap: 35px; }
  .about-image { height: 350px; }
}

@media (max-width: 680px) {
  .site-header { position: sticky; top: 0; z-index: 30; height: 70px; padding: 0 5%; background: var(--paper); }
  .header-link { display: none; }
  .menu-toggle { width: 38px; height: 38px; display: grid; align-content: center; gap: 5px; padding: 6px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { height: 2px; width: 22px; background: var(--green); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: absolute; z-index: 20; top: 70px; left: 0; right: 0; display: none; padding: 10px 6% 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 18px rgba(41,44,37,.06); }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }

  .hero { padding: 40px 6%; }
  h1 { font-size: clamp(38px, 11vw, 50px); }
  .qualities { display: grid; grid-template-columns: 1fr; padding: 16px 6%; gap: 10px; }

  .section { padding: 60px 6%; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { padding: 10px; }
  .product-photo { aspect-ratio: 1 / 1; }
  .product-photo--wide { aspect-ratio: 4 / 3; }
  .product-photo--portrait { aspect-ratio: 3 / 4; }
  .product-photo--shot-4 { aspect-ratio: 1 / 1; }
  .product-photo--shot-5 { aspect-ratio: .85; }
  .product-meta { flex-direction: column; align-items: flex-start; gap: 1px; margin-top: 10px; }
  .product-meta h3 { font-size: 16px; line-height: 1.25; }
  .product-price { font-size: 15px; }
  .product-desc { font-size: 11px; }
  .button-card { min-height: 38px; }

  .contact-cards { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 520px) {
  .location-media { grid-template-columns: 1fr; }
  .location-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .scroll-petal { display: none !important; }
}
