/* ============================================================================
   Садовый центр «Рождествено» — scroplant.ru
   Чистый рукописный CSS (замена Flexbe). Дизайн-система + компоненты.
   ========================================================================== */

/* ---- tokens ---------------------------------------------------------------*/
:root {
  --black: #000;
  --ink: #14171c;          /* основной тёмный текст */
  --ink-soft: #3a3f47;
  --muted: #6b7078;
  --line: #e4e4e6;
  --paper: #f2f2f2;        /* светлый фон секций */
  --card: #f7f7f8;         /* фон карточек */
  --white: #fff;

  --green: #35c400;        /* акцент (обводки, ховеры, хайлайт) */
  --green-ink: #0d5f06;    /* тёмно-зелёный логотип/детали */
  --blue: #2ea6df;         /* telegram */
  --vk: #0077ff;
  --max: #7a5cff;

  --wrap: 1200px;
  --gap: 28px;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 23, 28, .08);
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---- reset ----------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---- buttons --------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 10px;
  font-weight: 600; font-size: 16px; letter-spacing: .3px;
  border: 2px solid transparent; transition: .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--outline-light { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: #1b1e24; color: #fff; border-color: var(--green); }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,.9); color: #fff; padding: 11px 26px; border-radius: 8px; font-size: 15px; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; padding: 12px 30px; border-radius: 8px; font-weight: 700; }
.btn--white:hover { background: #ececec; }
.btn--sm { padding: 10px 22px; font-size: 14px; border-width: 1.5px; }

/* ============================================================================
   HEADER
   ========================================================================== */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 100; }
.header-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 16px 0;
}
.header-left { display: flex; align-items: center; gap: 48px; }
.hlogo { justify-self: center; }
.hsocials { justify-self: end; }
.hcontacts { display: flex; flex-direction: column; gap: 4px; }
.hphone { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hphone svg { width: 20px; height: 20px; }
.hhours { font-size: 13px; color: #d8d8d8; text-align: right; line-height: 1.45; }
.hnav-link { display: flex; align-items: center; gap: 12px; }
.hnav-link .arrow { color: #ffd93b; width: 26px; height: 26px; flex: none; }
.hnav-link b { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; line-height: 1.25; }
.hlogo img { height: 66px; width: auto; }
.hsocials { display: flex; gap: 12px; }
.soc {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #111; transition: transform .15s ease;
}
.soc svg { width: 22px; height: 22px; }
.soc:hover { transform: translateY(-2px); }
.soc--tg { background: var(--blue); color: #fff; }
.soc--max { background: var(--max); color: #fff; }
.soc--vk { background: var(--vk); color: #fff; }

.header-nav { border-top: 1px solid #2a2a2a; }
.header-nav ul {
  list-style: none; margin: 0; padding: 14px 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
}
.header-nav a { font-size: 17px; font-weight: 500; color: #f3f3f3; transition: color .15s; }
.header-nav a:hover { color: var(--green); }

.burger { display: none; }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; color: #fff; min-height: 620px; display: flex; align-items: flex-end; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--hero-img) center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.55) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 70px; padding-top: 90px; }
.hero-eyebrow { font-size: 20px; margin-bottom: 14px; opacity: .95; }
.hero h1 { font-size: clamp(40px, 6vw, 74px); font-weight: 700; line-height: 1.02; letter-spacing: -.5px; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 18px; }

/* ============================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { padding: 80px 0; }
.section--paper { background: var(--paper); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -.4px; }
.section-head p { max-width: 900px; margin: 16px auto 0; font-size: 18px; color: var(--ink-soft); }
.section-head .btn { margin-top: 24px; }

/* ---- promo carousel (Новости, акции, бонусы) ------------------------------*/
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.promo-card {
  scroll-snap-align: start; flex: 0 0 300px; height: 420px; border-radius: var(--radius);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; color: #fff; padding: 28px;
}
.promo-card::before { content: ""; position: absolute; inset: 0; background: var(--pc-img) center/cover; pointer-events: none; }
.promo-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.4); pointer-events: none; }
.promo-card > * { position: relative; z-index: 1; }
.promo-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cfcfcf;
  background: #fff; color: #333; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.carousel-btn--prev { left: -8px; } .carousel-btn--next { right: -8px; }
.carousel-btn svg { width: 20px; height: 20px; }

/* ---- CTA banner (стрижка) -------------------------------------------------*/
.cta-banner { position: relative; color: #fff; padding: 70px 0; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: var(--cta-img) center/cover; }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.25)); }
.cta-banner .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; max-width: 560px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.cta-banner h2 .hl { color: var(--green); }
.cta-box {
  background: rgba(238,238,238,.92); color: var(--ink); border-radius: 16px;
  padding: 22px 28px; text-align: center; backdrop-filter: blur(2px);
}
.cta-box p { font-weight: 600; color: var(--green-ink); margin-bottom: 14px; }
.cta-box .icons { display: flex; gap: 14px; justify-content: center; }
.cta-box .soc { width: 46px; height: 46px; }
.cta-box .soc--phone { background: #1faa4b; color: #fff; }

/* ---- assortment cards -----------------------------------------------------*/
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cat-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: flex; gap: 18px;
}
.cat-card__img { flex: 0 0 130px; height: 190px; border-radius: 10px; overflow: hidden; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { display: flex; flex-direction: column; }
.cat-card__body h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.cat-card__body p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.cat-card__body .btn { margin-top: 16px; align-self: flex-start; }

/* ---- TG/MAX join banner ---------------------------------------------------*/
.join-banner { background: #d9d7d2; padding: 40px 0; }
.join-banner .wrap { display: flex; align-items: center; gap: 40px; }
.join-banner .icons { display: flex; gap: 16px; flex: none; }
.join-banner .soc { width: 64px; height: 64px; }
.join-banner .soc svg { width: 30px; height: 30px; }
.join-banner p { flex: 1; text-align: center; max-width: 920px; margin: 0 auto; font-size: 20px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.join-banner p a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---- services -------------------------------------------------------------*/
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: start; }
.services-grid .services-title { grid-row: 1 / span 2; align-self: start; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; }
.svc-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: 0 4px 14px rgba(20,23,28,.05); color: inherit;
}
.svc-card--link { transition: .18s ease; }
.svc-card--link:hover { border-color: var(--green); box-shadow: 0 12px 28px rgba(20,23,28,.12); transform: translateY(-3px); }
.svc-card--link h3 { color: var(--ink); }
.svc-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.svc-card p { font-size: 15px; color: var(--ink-soft); }

/* ---- about ----------------------------------------------------------------*/
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 20px; }
.about-text p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.about-tour { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.about-tour iframe { width: 100%; height: 100%; border: 0; }

/* ---- reviews (Нас выбирают) -----------------------------------------------*/
.reviews-widget {
  max-width: 620px; margin: 0 auto; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.reviews-widget iframe { width: 100%; height: 620px; border: 0; display: block; }

/* ---- conditions (оплата/доставка/возврат) --------------------------------*/
.conditions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 56px; }
.cond-block { margin-bottom: 34px; }
.cond-block h3 { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 18px; }
.cond-block p { color: var(--ink-soft); margin-bottom: 12px; }
.cond-block ol, .cond-block ul { margin: 0 0 12px; padding-left: 22px; color: var(--ink-soft); }
.cond-block li { margin-bottom: 8px; }
.cond-block .note { font-weight: 700; color: var(--ink); }
.cond-block a { color: var(--blue); text-decoration: underline; word-break: break-word; }
.price-list { list-style: none; padding: 0; }
.price-list li strong { color: var(--ink); }

/* ---- contacts -------------------------------------------------------------*/
.contacts { text-align: center; }
.contacts .addr { font-size: 17px; color: var(--ink-soft); line-height: 1.9; }
.contacts .addr b { color: var(--ink); }
.contacts .addr a { color: var(--blue); text-decoration: underline; }
.contacts .hsocials { justify-content: center; margin: 22px 0 0; }
.contacts .soc { background: #fff; border: 1px solid var(--line); color: #111; }
.contacts .soc--tg { color: var(--blue); } .contacts .soc--max { color: var(--max); } .contacts .soc--vk { color: var(--vk); }
.map-embed { margin-top: 34px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---- footer ---------------------------------------------------------------*/
.site-footer { background: var(--black); color: #cfcfcf; text-align: center; padding: 46px 0; }
.site-footer img { height: 62px; width: auto; margin: 0 auto 22px; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 15px; }
.site-footer .copyright { font-size: 13px; color: #8b8b8b; line-height: 1.7; }

/* ---- modals (условия акций) -----------------------------------------------*/
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fade .18s ease; }
.modal__box {
  position: relative; background: #fff; border-radius: 18px; max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 44px 40px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
  animation: pop .2s ease;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.modal__close {
  position: absolute; top: 16px; right: 18px; width: 34px; height: 34px; border: 0; background: none;
  font-size: 28px; line-height: 1; color: #111; cursor: pointer; border-radius: 8px;
}
.modal__close:hover { background: #f0f0f0; }
.modal h3 { text-align: center; font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 22px; }
.modal ol { padding-left: 22px; margin: 0; }
.modal li { margin-bottom: 12px; font-size: 16px; color: var(--ink-soft); }
.modal p { margin-bottom: 12px; font-size: 16px; color: var(--ink-soft); }
.modal .center { text-align: center; }
.modal .note { color: var(--muted); font-style: italic; margin-top: 10px; }
.modal .accent { color: #e23b2e; font-weight: 700; }
.modal-icons { display: flex; gap: 16px; justify-content: center; margin-top: 22px; }
.modal-icons .soc { width: 58px; height: 58px; }
.modal-icons .soc svg { width: 26px; height: 26px; }
.modal-icons .soc--phone { background: #111; color: #fff; }
/* карта любимого покупателя */
.bonus-card { border: 2px solid var(--green-ink); border-radius: 12px; padding: 22px 18px 0; text-align: center; margin: 0 auto 26px; max-width: 340px; overflow: hidden; }
.bonus-card img { height: 62px; width: auto; margin: 0 auto 6px; }
.bonus-card .brand { font-weight: 700; letter-spacing: 4px; color: var(--green-ink); font-size: 15px; }
.bonus-card .brand small { display: block; font-size: 8px; letter-spacing: 3px; font-weight: 600; margin-top: 2px; }
.bonus-card .ribbon { display: block; margin: 16px -18px 0; background: #e2f0d8; padding: 12px; }
.bonus-card .ribbon span { background: var(--green-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 5px; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .services-title { grid-column: 1 / -1; grid-row: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .header-top { grid-template-columns: 1fr; justify-items: center; row-gap: 16px; }
  .header-left { flex-direction: column; gap: 12px; text-align: center; }
  .hsocials { justify-self: center; }
  .hhours { text-align: center; }
  .header-nav ul { gap: 6px 16px; }
  .header-nav a { font-size: 15px; }
  .cards-grid, .services-grid { grid-template-columns: 1fr; }
  .cat-card { max-width: 460px; margin: 0 auto; width: 100%; }
  .section { padding: 56px 0; }
  .cta-banner .wrap { flex-direction: column; align-items: stretch; }
  .join-banner .wrap { flex-direction: column; gap: 18px; }
  .join-banner p { font-size: 17px; }
}
