/* Вариант 2: «Оранжерея» — глубокий зелёный, арки-окна, крупная антиква */
:root {
  --bg: #f5f1e6;
  --paper: #fffaf0;
  --forest: #173b2a;
  --forest-2: #24543b;
  --sage: #e3ead8;
  --moss: #8fb573;
  --text: #1c2b22;
  --muted: #5d6b60;
  --cream: #f3ead2;
  --line: #ddd3bd;
  --arch: 999px 999px 14px 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Manrope, -apple-system, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--forest-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

h1, h2, h3, .logo { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.1; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0 0 .35em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .4em; }
h3 { font-size: 1.45rem; margin: 0 0 .25em; }
section { padding: 72px 0; scroll-margin-top: 72px; }
.lead { color: var(--muted); max-width: 40em; margin-top: 0; font-size: 1.05rem; }

/* Шапка — тёмно-зелёная */
header { background: var(--forest); color: var(--cream); position: sticky; top: 0; z-index: 10; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { font-size: 1.8rem; color: var(--cream); text-decoration: none; }
.logo small { display: block; font: 600 11px/1.2 Manrope, Arial, sans-serif; color: var(--moss); letter-spacing: .18em; text-transform: uppercase; margin-top: 2px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--cream); padding: 6px 14px; border-radius: 999px; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { background: rgba(243,234,210,.14); }

/* Первый экран — тёмная оранжерея, фото в арке */
.hero { background: var(--forest); color: var(--cream); padding: 56px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--sage); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero p { color: #cfd9c6; font-size: 1.15rem; max-width: 30em; }
.hero-pic { aspect-ratio: 3 / 4; border-radius: var(--arch); overflow: hidden; border: 3px solid var(--moss); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; }

.btn { display: inline-block; background: var(--moss); color: var(--forest); font-weight: 600; text-decoration: none; padding: 13px 28px; border-radius: 999px; margin-top: 10px; transition: background .2s; }
.btn:hover { background: #a6c78d; }
.btn.light { background: transparent; color: var(--forest-2); border: 1.5px solid var(--forest-2); }
.btn.light:hover { background: var(--sage); }

/* Полосы разделов */
.band { background: var(--sage); }

/* Для кого — три арки */
.who { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.who div { background: var(--paper); border-radius: 160px 160px 14px 14px; padding: 40px 26px 28px; text-align: center; }
.who .icon { font-size: 34px; width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.who p { margin: .3em 0 0; color: var(--muted); font-size: 15px; }

/* Каталог растений */
.grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: transparent; }
.card .pic { aspect-ratio: 3 / 4; border-radius: var(--arch); overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; border: 1px solid var(--line); }
.card .pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.card:hover .pic img { transform: scale(1.04); }
.card .body { padding: 14px 4px 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.size { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--forest-2) !important; margin-top: 8px !important; font-weight: 600; }
.tag { display: inline-block; font-size: 12px; border: 1px solid var(--moss); color: var(--forest-2); border-radius: 999px; padding: 1px 10px; margin: 10px 6px 0 0; }

/* Галереи: интерьер, студия, картины */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.gallery figure:nth-child(3n+1) img { border-radius: var(--arch); }
.gallery figcaption { padding: 10px 2px 0; font-size: 15px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--text); font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; }

/* Как это устроено */
.steps { counter-reset: s; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { content: "0" counter(s); display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 3rem; color: var(--moss); line-height: 1; margin-bottom: 8px; }
.steps h3 { color: var(--text); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two img { border-radius: var(--arch); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-height: 640px; }
.note { background: var(--sage); border-radius: 24px; padding: 28px; }
.contacts { display: flex; gap: 12px; flex-wrap: wrap; }

/* Контакты на тёмном */
#kontakty { background: var(--forest); color: var(--cream); }
#kontakty .lead { color: #cfd9c6; }
#kontakty .btn.light { color: var(--cream); border-color: var(--cream); }
#kontakty .btn.light:hover { background: rgba(243,234,210,.12); }

footer { background: #102b1e; color: #a9b9a3; padding: 28px 0; font-size: 14px; }
footer a { color: var(--cream); }

@media (max-width: 760px) {
  section { padding: 48px 0; }
  .hero { padding: 32px 0 72px; }
  .hero .wrap, .two { grid-template-columns: 1fr; gap: 28px; }
  .hero-pic { max-width: 360px; }
}

/* ── Изюминка ── */
em { font-style: italic; font-weight: 500; color: var(--moss); }
.hero h1 em { color: #b5d69a; }

/* Тени листьев на первом экране: «свет сквозь листву», мягко покачиваются */
.hero-shade { position: absolute; inset: -12% auto auto -6%; width: 64%; height: 125%; pointer-events: none; opacity: .34; filter: blur(3.5px); z-index: 0; }
.hero-shade svg { width: 100%; height: 100%; }
.hero-shade .frond { transform-box: view-box; animation: sway 7s ease-in-out infinite alternate; }
.hero-shade .fr1 { transform-origin: -30px 640px; }
.hero-shade .fr2 { transform-origin: -30px 640px; animation-duration: 9s; animation-delay: -4s; }
@keyframes sway { 0% { transform: rotate(-2.5deg); } 50% { transform: rotate(1deg) translate(4px, -3px); } 100% { transform: rotate(3deg); } }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 35%, rgba(181,214,154,.16), transparent 60%); pointer-events: none; }

/* Бегущая строка с названиями растений */
.ribbon { background: var(--sage); overflow: hidden; padding: 6px 0 18px; border-bottom: 1px solid #d3dcc6; }
.ribbon-track { display: flex; gap: 0; width: max-content; animation: run 60s linear infinite; }
.ribbon span { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--forest-2); white-space: nowrap; padding: 0 22px; }
.ribbon span::after { content: "✦"; font-style: normal; font-size: .6em; color: var(--moss); margin-left: 44px; vertical-align: .25em; }
@keyframes run { to { transform: translateX(-50%); } }

/* Подбор растения */
#podbor { background: var(--paper); }
.quiz { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.quiz h2 em { display: inline-block; }
.quiz-form { background: var(--sage); border-radius: 28px; padding: 28px; }
.quiz-form fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.quiz-form legend { font-weight: 600; margin-bottom: 10px; }
.quiz-form label { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.quiz-form input { position: absolute; opacity: 0; }
.quiz-form label span { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1.5px solid transparent; transition: .15s; }
.quiz-form label:hover span { border-color: var(--moss); }
.quiz-form input:checked + span { background: var(--forest); color: var(--cream); }
.quiz-form input:focus-visible + span { outline: 2px solid var(--forest-2); outline-offset: 2px; }
.quiz-form .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.quiz-result { margin: 14px 0 0; min-height: 1.6em; }
.card { transition: opacity .3s, filter .3s; }
.card.dim { opacity: .28; filter: grayscale(.8); }
.card.match .pic { border-color: var(--moss); box-shadow: 0 0 0 3px var(--moss); }

@media (max-width: 760px) { .quiz { grid-template-columns: 1fr; gap: 20px; } .hero-shade { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero-shade .frond, .ribbon-track { animation: none; } }
@media (max-width: 760px) { header { position: static; } nav a { padding: 4px 10px; } }

/* Логотип: акварельное окно в светлом кружке */
.logo { display: flex; align-items: center; gap: 12px; font-style: italic; }
.logo-mark { width: 50px; height: 50px; flex: none; background: #fbf6ea; border-radius: 50%; padding: 3px; }
@media (max-width: 760px) { .logo-mark { width: 42px; height: 42px; } }
.two img.whole { aspect-ratio: auto; object-fit: contain; border-radius: 14px; max-height: none; }
/* Картины показываем целиком, без обрезки: колонки разной высоты */
.gallery.art { display: block; columns: 3 260px; column-gap: 18px; }
.gallery.art figure { break-inside: avoid; margin-bottom: 22px; }
.gallery.art img, .gallery.art figure:nth-child(3n+1) img { aspect-ratio: auto; border-radius: 14px; }
