/* ==========================================================================
   Где цветы — gdcv.ru
   Палитра и типографика перенесены из макета Claude Design.
   ========================================================================== */

/* --- Шрифты (self-hosted, без обращений к Google) ----------------------- */
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/prata-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Prata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/prata-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/commissioner-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/commissioner-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Токены ------------------------------------------------------------- */
:root {
  --bg:        #FBF7F2;
  --bg-alt:    #F4EAE5;
  --ink:       #2A1E22;
  --ink-2:     #5C4A4F;
  --ink-3:     #9A8A8E;
  --ink-4:     #6B565B;
  --accent:    #B8465A;
  --accent-dk: #8E2F42;
  --accent-sf: #E8A2AF;
  --on-accent: #FFF7F4;
  --accent-tx: #FBE3E7;
  --line:      #EADDD8;
  --line-2:    #DCC9C3;
  --line-3:    #E4D3CE;
  --dark:      #2A1E22;
  --dark-line: #3E2E33;
  --on-dark:   #FBF7F2;
  --on-dark-2: #D8C8CB;
  --on-dark-3: #B9A4A8;

  --serif: 'Prata', Georgia, 'Times New Roman', serif;
  --sans:  'Commissioner', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --pad:     48px;   /* горизонтальные поля страницы */
  --sec:     96px;   /* вертикальный ритм секций */
  --header-h: 88px;
}

/* --- База --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: pretty; }
h1 { font-size: clamp(36px, 7vw, 68px);   line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.15; }
h3 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.2; }
p  { margin: 0; text-wrap: pretty; }

:where(a, button, summary, details):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; color: var(--bg); }

main { max-width: 1440px; margin: 0 auto; }

/* --- Кнопки ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px; border-radius: 999px;
  font-size: 16px; font-weight: 500; line-height: 1;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--ink       { background: var(--ink);       color: var(--bg); }
.btn--ink:hover { background: var(--accent);    color: var(--on-accent); }
.btn--accent    { background: var(--accent);    color: var(--on-accent); padding: 13px 24px; font-size: 14px; letter-spacing: .02em; }
.btn--accent:hover { background: var(--accent-dk); color: var(--on-accent); }
.btn--ghost     { border: 1px solid var(--line-2); color: var(--ink); padding: 18px 28px; }
.btn--ghost:hover { background: var(--bg-alt); color: var(--ink); }
.btn--light     { background: var(--on-dark);   color: var(--ink); padding: 17px 30px; }
.btn--light:hover { background: var(--accent-sf); color: var(--ink); }
.btn--on-accent { background: var(--on-accent); color: var(--accent); padding: 20px 36px; font-size: 17px; }
.btn--on-accent:hover { background: var(--ink); color: var(--on-accent); }

/* --- Шапка -------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 247, 242, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header__in {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 26px var(--pad);
}
.brand { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__name { font-family: var(--serif); font-size: 21px; letter-spacing: .16em; line-height: 1; }
.brand__sub  { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--accent); }
.nav__cta { margin-left: 2px; }
.nav__cta:hover { color: var(--on-accent); }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

/* --- Первый экран ------------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 40px var(--pad) var(--sec);
}
.hero__text { animation: fadeUp .7s ease both; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin: 0 0 28px;
  border: 1px solid var(--line-3); border-radius: 999px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dk);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { margin: 0 0 24px; }
.lead { font-size: clamp(16px, 2.1vw, 18px); line-height: 1.65; color: var(--ink-2); max-width: 480px; margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 240px; gap: 14px; }
.frame--wide { grid-column: 1 / -1; }

/* --- Заглушки под фото -------------------------------------------------- */
.frame { position: relative; }
.frame--sq { aspect-ratio: 1; }
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--map { min-height: 420px; }

.ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 16px;
  background:
    repeating-linear-gradient(45deg, rgba(184,70,90,.05) 0 10px, transparent 10px 20px),
    var(--bg-alt);
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  color: var(--ink-3);
  font-size: 12.5px; line-height: 1.45; text-align: center; letter-spacing: .02em;
}
.frame--sq .ph { border-radius: 2px; }
.frame--map .ph { border-radius: 0; }
.ph span { max-width: 220px; }

/* --- Два повода --------------------------------------------------------- */
.offer { padding: var(--sec) var(--pad); background: var(--bg-alt); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: 48px;
}
.sec-head--tight { margin-bottom: 36px; }
.sec-head h2 { max-width: 520px; }
.sec-head p  { font-size: 15px; line-height: 1.6; color: var(--ink-4); max-width: 340px; }
.link-under { font-size: 15px; border-bottom: 1px solid #E4C9CF; padding-bottom: 3px; white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.card {
  background: var(--bg); padding: 28px;
  display: flex; flex-direction: column; gap: 14px; min-height: 300px;
}
.card__num { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* --- Работы ------------------------------------------------------------- */
.works { padding: var(--sec) var(--pad); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* --- Доставка ----------------------------------------------------------- */
.delivery {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px;
  padding: var(--sec) var(--pad);
  background: var(--dark); color: var(--on-dark);
}
.delivery h2 { margin: 0 0 20px; }
.delivery__lead p { font-size: 16px; line-height: 1.7; color: var(--on-dark-2); margin: 0 0 32px; max-width: 380px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--dark-line); }
.fact { background: var(--dark); padding: 26px 26px 30px; }
.fact__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 12px; }
.fact__value { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 26px); margin-bottom: 8px; }
.fact p { font-size: 14px; line-height: 1.55; color: var(--on-dark-2); }

/* --- О нас -------------------------------------------------------------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: var(--sec) var(--pad);
}
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.about__text h2 { margin: 0 0 22px; }
.about__text p { font-size: clamp(15.5px, 1.9vw, 16.5px); line-height: 1.7; color: var(--ink-2); }
.about__text p + p { margin-top: 18px; }

/* --- Вопросы ------------------------------------------------------------ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; padding: var(--sec) var(--pad); }
.faq__list { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 24px;
  font-size: clamp(16px, 2vw, 17.5px); font-weight: 500; cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__sign { color: var(--accent); flex: none; transition: transform .2s ease; }
.faq details[open] .faq__sign { transform: rotate(45deg); }
.faq details p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); margin: 14px 0 0; max-width: 560px; }

/* --- Контакты ----------------------------------------------------------- */
.contacts { padding: 0 var(--pad) var(--sec); }
.contacts__box { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--bg-alt); }
.contacts__info { padding: 56px 48px; }
.contacts__info h2 { margin: 0 0 32px; }
.contacts__rows { display: flex; flex-direction: column; gap: 26px; }
.contacts__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.contacts__value { font-size: 17px; line-height: 1.5; }
.contacts__phone { font-family: var(--serif); font-size: clamp(22px, 3vw, 26px); color: var(--ink); }
.contacts__phone:hover { color: var(--accent); }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px 11px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink); font-size: 14px;
  transition: background-color .18s ease, color .18s ease;
}
.chip:hover { background: var(--bg); color: var(--accent); }
.chip svg { flex: none; }
.disclaimer { font-size: 11.5px; line-height: 1.55; color: var(--ink-3); margin: 14px 0 0; max-width: 470px; }

/* --- Финальный блок ----------------------------------------------------- */
.cta { padding: 0 var(--pad) var(--sec); }
.cta__box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--accent); color: var(--on-accent); padding: 56px 48px;
}
.cta h2 { margin: 0 0 12px; font-size: clamp(26px, 4.2vw, 40px); }
.cta p { font-size: 16px; line-height: 1.6; color: var(--accent-tx); max-width: 460px; }

/* --- Подвал ------------------------------------------------------------- */
.footer {
  max-width: 1440px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 32px var(--pad) 44px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__name { font-family: var(--serif); font-size: 16px; letter-spacing: .16em; color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: var(--ink-3); }
.footer__links a:hover { color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

/* Ноутбуки / небольшой десктоп */
@media (max-width: 1180px) {
  :root { --pad: 36px; --sec: 80px; }
  .hero { gap: 40px; }
  .delivery, .about, .faq { gap: 44px; }
  .contacts__info { padding: 48px 36px; }
  .cta__box { padding: 48px 36px; }
}

/* Планшет: шапка уходит в бургер, широкие сетки складываются */
@media (max-width: 900px) {
  :root { --pad: 28px; --sec: 68px; }

  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    font-size: 17px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: 72dvh; overflow-y: auto;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__cta {
    margin: 20px 0 0; justify-content: center; border-bottom: none;
    padding: 16px 24px; font-size: 15px;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .lead { max-width: 560px; }
  .hero__grid { grid-template-rows: 200px 200px; }

  .delivery, .about, .faq, .contacts__box { grid-template-columns: 1fr; }
  .about .frame--portrait { max-width: 460px; }
  .delivery__lead p { max-width: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .frame--map { min-height: 280px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sec-head--tight { align-items: flex-start; }
  .sec-head p, .sec-head h2 { max-width: none; }
}

/* Крупный телефон */
@media (max-width: 640px) {
  :root { --pad: 20px; --sec: 56px; --header-h: 72px; }

  .header__in { padding: 18px var(--pad); gap: 16px; }
  .brand__name { font-size: 18px; letter-spacing: .14em; }
  .brand__sub { font-size: 9.5px; }

  .hero { padding-top: 20px; }
  .pill { margin-bottom: 20px; font-size: 11px; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero__grid { grid-template-rows: 170px 150px; gap: 10px; }

  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .contacts__info { padding: 36px 24px; }
  .cta__box { padding: 36px 24px; gap: 24px; }
  .cta__box .btn { width: 100%; justify-content: center; }
  .btn--light { width: 100%; justify-content: center; }

  .faq summary { gap: 16px; }
  .footer { padding-bottom: 36px; }
  .footer__links { gap: 16px 20px; }
}

/* Мелкий телефон */
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .fact { padding: 22px 20px 24px; }
  .chips { gap: 8px; }
  .chip { padding: 10px 14px 10px 12px; font-size: 13px; }
}

/* --- Уважение к системным настройкам ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .header, .burger, .nav, .cta, .skip { display: none !important; }
  body { background: #fff; }
}
