/* ============================================================
   Пион Флаверс — черновой лендинг
   Светлый минимализм: белый холст, серифная типографика,
   пыльно-розовые акценты. Весь цвет — на фотографиях.
   ============================================================ */

:root {
  --bg:          #FBF9F8;
  --surface:     #FFFFFF;
  --ink:         #1C1A19;
  --ink-soft:    #4A4441;
  --muted:       #7A7370;
  --line:        #EDE6E2;
  --accent:      #A8646F;   /* пыльная роза, контрастная для текста */
  --accent-soft: #E9D7DA;
  --tint:        #F6F1EF;

  --font-display: Georgia, "Times New Roman", "PT Serif", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 2px;
  --radius-lg: 4px;

  --shadow: 0 1px 2px rgba(28, 26, 25, .04), 0 8px 24px rgba(28, 26, 25, .05);
  --shadow-lg: 0 2px 4px rgba(28, 26, 25, .05), 0 20px 48px rgba(28, 26, 25, .09);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
}

p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Надзаголовок ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ============================================================
   ЛОГОТИП
   ============================================================ */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  color: var(--ink);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .30em;
  text-indent: .30em;   /* компенсируем трекинг последней буквы */
  display: inline-flex;
}

.logo-o { position: relative; }

/* Цветок внутри буквы O — как в их инстаграм-логотипе */
.logo-o::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: .34em;
  height: .34em;
  margin-left: -.17em;
  margin-top: -.17em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
     0  -.19em 0 -.06em var(--accent),
     0   .19em 0 -.06em var(--accent),
    -.19em 0   0 -.06em var(--accent),
     .19em 0   0 -.06em var(--accent);
}

.logo-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-top: 5px;
}

.logo-light, .logo-light .logo-sub { color: #fff; }
.logo-light .logo-sub { color: rgba(255,255,255,.55); }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #DDD3CE;
}
.btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-sm { padding: 11px 20px; font-size: 13px; }

.ico { width: 17px; height: 17px; fill: currentColor; flex: none; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 248, .88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.nav {
  display: none;
  align-items: center;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav .nav-cta { color: #fff; }

/* Бургер */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  height: 1px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Раскрытое мобильное меню */
.nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 20px 22px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav.is-open a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.nav.is-open .nav-cta {
  margin-top: 18px;
  border-bottom: none;
  justify-content: center;
}

/* ============================================================
   ЗАГЛУШКИ ПОД ФОТО
   Заменить на <img src="..." alt="..."> — пропорции сохранятся.
   ============================================================ */
.ph {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #F2E3E5 0%, #EBD7DA 45%, #E3D3CC 100%);
}

/* Ненавязчивый цветочный водяной знак по центру */
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ffffff' opacity='.5'%3E%3Ccircle cx='12' cy='6.2' r='3.5'/%3E%3Ccircle cx='17.5' cy='10.2' r='3.5'/%3E%3Ccircle cx='15.4' cy='16.8' r='3.5'/%3E%3Ccircle cx='8.6' cy='16.8' r='3.5'/%3E%3Ccircle cx='6.5' cy='10.2' r='3.5'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.5' fill='%23ffffff' opacity='.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 58px 58px;
  opacity: .5;
}

/* Варианты палитры, чтобы сетка не выглядела плоской */
.ph-2 { background: linear-gradient(150deg, #EFE6E0 0%, #E6D2D6 50%, #DCC7C2 100%); }
.ph-3 { background: linear-gradient(150deg, #F1EEE6 0%, #E6E2D4 50%, #DCDCCD 100%); }
.ph-4 { background: linear-gradient(150deg, #F4E7E9 0%, #E8D2D8 55%, #D9C3CE 100%); }
.ph-5 { background: linear-gradient(150deg, #F3E9E1 0%, #EBD8D0 50%, #DFC9C6 100%); }
.ph-6 { background: linear-gradient(150deg, #F5F1EC 0%, #EBE4DD 50%, #E0D8D2 100%); }

/* ============================================================
   ПЕРВЫЙ ЭКРАН
   ============================================================ */
.hero { padding: 56px 0 64px; }

.hero-inner {
  display: grid;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(48px, 13vw, 76px);
  margin-bottom: 26px;
}

.lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  list-style: none;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.hero-trust strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.hero-media { position: relative; }

.hero-ph {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  position: absolute;
  right: -8px;
  bottom: -18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-badge-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.hero-badge-txt {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding: 76px 0; }
.section-tint { background: var(--tint); }

/* Якорные переходы не должны прятать заголовок под липкой шапкой */
.section, .hero { scroll-margin-top: 86px; }

.section-head {
  max-width: 620px;
  margin-bottom: 46px;
}
.section-head h2 { font-size: clamp(30px, 6vw, 42px); }
.section-sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Каталог ---------- */
.grid-cards { display: grid; gap: 26px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .28s var(--ease), transform .28s var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-media {
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}
.card-body h3 { font-size: 20px; margin-bottom: 9px; }
.card-body > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;          /* в узкой колонке кнопка уходит под цену, а не за край */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}

.catalog-note {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.catalog-note a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Плитки услуг ---------- */
.grid-3 { display: grid; gap: 26px; }
.grid-2 { display: grid; gap: 26px; }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tile-media { aspect-ratio: 3 / 2; border-radius: 0; }
.tile-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.tile-body h3 { font-size: 19px; margin-bottom: 9px; }
.tile-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
/* Ссылка прижата к низу — в ряду плитки выравниваются по одной линии */
.tile-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tile-link:hover { color: var(--ink); }

.wholesale {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.wholesale h3 { font-size: 21px; margin-bottom: 8px; }
.wholesale p { font-size: 14.5px; color: var(--muted); max-width: 52ch; }

/* ============================================================
   БЛОК ПРИЗЫВА
   ============================================================ */
.cta {
  padding: 76px 0;
  background: var(--ink);
  color: #fff;
}
.cta-inner { max-width: 700px; }
.cta h2 { font-size: clamp(28px, 5.5vw, 40px); margin-bottom: 18px; }
.cta p {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  margin-bottom: 34px;
}
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--accent-soft); }
.cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.cta .btn-ghost:hover { border-color: #fff; }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-grid { display: grid; gap: 34px; }

.contacts-info dl { margin: 0; }
.contacts-info dt {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contacts-info dd {
  margin: 0 0 24px;
  font-size: 17px;
  font-family: var(--font-display);
}
.contacts-info dd a { text-decoration: none; }
.contacts-info dd a:hover { color: var(--accent); }

.contacts-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.contacts-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contacts-links a:hover { color: var(--ink); }

/* Карта — iframe Яндекс.Карт */
.map {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--tint);   /* видно, пока карта грузится */
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*
  На тач-устройствах iframe карты перехватывает свайп и страница перестаёт
  скроллиться. Поэтому на них карта включается только после тапа.
  На десктопе с мышью проблемы нет — там карта активна сразу.
*/
.map-hint { display: none; }

@media (hover: none) {
  .map iframe { pointer-events: none; }
  .map.is-active iframe { pointer-events: auto; }

  .map-hint {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2;
    padding: 9px 16px;
    background: rgba(28, 26, 25, .82);
    border-radius: var(--radius);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
  }
  .map.is-active .map-hint { display: none; }
}

.map-link {
  margin-top: 14px;
  font-size: 14px;
}
.map-link a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-link a:hover { color: var(--ink); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-footer {
  padding: 56px 0 26px;
  background: var(--ink);
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

.footer-inner {
  display: grid;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-inner .logo { align-items: flex-start; }

.footer-tag {
  margin-top: 14px;
  font-size: 13.5px;
  max-width: 34ch;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, .38);
}
.footer-draft { letter-spacing: .08em; }

/* ============================================================
   ПЛАВАЮЩАЯ КНОПКА
   ============================================================ */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  transition: background-color .22s var(--ease), transform .22s var(--ease);
}
.fab svg { width: 26px; height: 26px; fill: #fff; }
.fab:hover { background: var(--accent); transform: scale(1.05); }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (min-width: 600px) {
  .grid-2    { grid-template-columns: repeat(2, 1fr); }
  .grid-3    { grid-template-columns: repeat(2, 1fr); }
  .grid-cards{ grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .wrap { padding-inline: 32px; }

  .nav-toggle { display: none; }
  .nav { display: flex; }

  .hero { padding: 84px 0 96px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .hero-badge { right: -28px; }

  .section { padding: 104px 0; }
  .section-head { margin-bottom: 58px; }

  .grid-3     { grid-template-columns: repeat(3, 1fr); }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }

  .contacts-grid { grid-template-columns: 1fr 1.25fr; gap: 56px; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }

  .fab { display: none; }
}

/* Четвёртая колонка каталога — только когда карточка не сжимает цену и кнопку */
@media (min-width: 1140px) {
  .grid-cards { grid-template-columns: repeat(4, 1fr); }
}

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