@import url('/cases/_shared/shop-base.css');

:root {
  --bg: #EDE6DA;
  --surface: #E3D9C9;
  --ink: #2A211B;
  --muted: #7A6D61;
  --line: #D6CAB7;
  --accent: #2B4C7E;
  --accent-ink: #fff;
  --clay: #C4693C;
  --radius: 28px;
  --radius-sm: 16px;
  --head: 'Yeseva One', Georgia, serif;
  --body: 'Commissioner', system-ui, sans-serif;
}

h1, h2 { font-weight: 400; }
.logo { font-family: var(--head); font-size: 1.7rem; color: var(--accent); }
.btn-line { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }

/* hero */
.hero { padding: 28px 0 48px; }
.hero-in { display: grid; gap: 28px; }
.hero h1 { font-size: clamp(2.6rem, 12vw, 5rem); line-height: 1.02; }
.hero h1 span { display: block; color: var(--clay); }
.lead { margin: 18px 0 26px; color: var(--muted); font-size: 1.05rem; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: .82rem; font-weight: 600; }

/* catalog */
.catalog { padding: 40px 0 56px; }
.catalog-head h2 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.p-name { font-weight: 600; }
.p-badge { background: var(--clay); color: #fff; }

/* studio */
.studio { padding: 56px 0; background: var(--surface); }
.studio-in { display: grid; gap: 28px; }
.studio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.studio h2 { font-size: clamp(2rem, 8vw, 3rem); }
.studio p { margin-top: 14px; color: var(--muted); max-width: 48ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.stats li { padding: 16px 12px; border-radius: var(--radius-sm); background: var(--bg); text-align: center; }
.stats b { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--accent); }
.stats span { font-size: .78rem; color: var(--muted); }

/* class */
.class { padding: 56px 0 64px; }
.class-in { display: grid; gap: 24px; padding: 28px 22px; border-radius: var(--radius); background: var(--accent); color: #fff; }
.class h2 { font-size: clamp(2rem, 8vw, 3rem); }
.class h2 span { display: block; color: #F2C19F; }
.class p { margin-top: 14px; color: rgba(255, 255, 255, .8); max-width: 50ch; }
.price-tag { font-family: var(--head); font-size: 2rem; color: #fff !important; }
.price-tag small { font-family: var(--body); font-size: .85rem; opacity: .7; }
.class-form { display: grid; gap: 10px; }
.class-form input, .class-form select { width: 100%; padding: 15px 16px; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.class-form .btn { background: var(--clay); color: #fff; }

@media (min-width: 768px) {
  .hero { padding: 56px 0 72px; }
  .hero-in { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  .hero-photo { aspect-ratio: 5 / 6; }
  .studio-in { grid-template-columns: .8fr 1fr; align-items: center; gap: 56px; }
  .class-in { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 48px; gap: 48px; }
}

/* ===== Органічна композиція ===== */
body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .18 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.org-hero { padding: 30px 0 50px; overflow: hidden; }
.org-in { display: grid; gap: 26px; }
.org-hero h1 { font-size: clamp(3rem, 15vw, 7.4rem); line-height: .95; }
.org-hero h1 span { color: var(--clay); font-style: italic; }
.org-photo { position: relative; }
.org-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; animation: morph 14s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 40% 60% 42% 58% / 45% 58% 42% 55%; } }
.stamp-ring { position: absolute; right: -6px; bottom: -6px; width: 120px; animation: spin 22s linear infinite; }
.stamp-ring circle { fill: var(--accent); }
.stamp-ring text { fill: #fff; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--body); font-weight: 600; }
.stamp-ring .mid { font-family: var(--head); font-size: 34px; letter-spacing: 0; }
@keyframes spin { to { rotate: 360deg; } }
.org-text p { color: var(--muted); font-size: 1.08rem; max-width: 40ch; }
.org-text .hero-actions { margin-top: 22px; }

/* «гуляючий» каталог з органічними формами фото */
.p-media { border-radius: 46% 54% 44% 56% / 38% 40% 60% 62%; aspect-ratio: 1 / 1.1; }
.p-card:nth-child(2n) .p-media { border-radius: 58% 42% 60% 40% / 52% 48% 52% 48%; }
.p-card:nth-child(3n) .p-media { border-radius: 30px 120px 30px 120px; }
.p-card:nth-child(4n) .p-media { border-radius: 50% 50% 22px 22px; }
.p-badge { top: 14px; left: 50%; translate: -50% 0; background: var(--clay); }
.p-body { text-align: center; align-items: center; }
.p-name { font-family: var(--head); font-size: 1.15rem; font-weight: 400; }
.p-foot { justify-content: center; gap: 14px; }
.p-add { background: var(--accent); color: #fff; border: 0; }
.filters button { border-radius: 999px 999px 999px 4px; }

/* шлях виробу з липким фото */
.journey { padding: 64px 0; background: var(--surface); }
.journey-in { display: grid; gap: 28px; }
.journey-sticky img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); }
.journey h2 { font-size: clamp(2.4rem, 10vw, 3.8rem); margin-bottom: 18px; }
.journey ol { counter-reset: j; }
.journey li { counter-increment: j; position: relative; padding: 0 0 26px 58px; }
.journey li::before { content: counter(j); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50% 50% 50% 8px; background: var(--accent); color: #fff; font-family: var(--head); font-size: 1.2rem; }
.journey li::after { content: ''; position: absolute; left: 19px; top: 40px; bottom: 4px; width: 2px; background: repeating-linear-gradient(var(--accent) 0 6px, transparent 6px 12px); }
.journey li:last-child::after { display: none; }
.journey li b { font-family: var(--head); font-size: 1.4rem; font-weight: 400; }
.journey li p { color: var(--muted); margin-top: 4px; }
.journey .stats { margin-top: 10px; }

@media (min-width: 768px) {
  .org-hero { padding: 56px 0 80px; }
  .org-in { grid-template-columns: 1.1fr 1fr; grid-template-areas: "title photo" "text photo"; column-gap: 56px; align-items: center; }
  .org-in h1 { grid-area: title; align-self: end; }
  .org-photo { grid-area: photo; }
  .org-text { grid-area: text; align-self: start; }
  .stamp-ring { width: 150px; left: -40px; right: auto; bottom: 30px; }
  .grid { gap: 40px 28px; }
  .p-card:nth-child(even) { margin-top: 48px; }
  .catalog { padding-bottom: 96px; }
  .journey-in { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .journey-sticky { position: sticky; top: 90px; }
}
@media (prefers-reduced-motion: reduce) { .org-photo img, .stamp-ring { animation: none; } }
