/* ── Дизайн-токены ────────────────────────────────────────────────────────── */
:root {
  --color-bg:            #FFF8F6;
  --color-surface:       #FFFFFF;
  --color-text:          #1C0D0D;
  --color-muted:         #7A5A5A;
  --color-border:        #F0D5D5;
  --color-primary:       #B5313A;
  --color-primary-hover: #8B2228;
  --color-accent:        #2D6A3F;
  --color-wa:            #25D366;
  --color-wa-hover:      #1AAD54;
  --color-tg:            #229ED9;
  --color-tg-hover:      #1A7FAC;
  --shadow-sm:           0 2px 8px rgba(0,0,0,.06);
  --shadow-card:         0 6px 28px rgba(181, 49, 58, .10);
  --shadow-btn:          0 4px 16px rgba(0,0,0,.15);
  --radius-sm:           8px;
  --radius:              14px;
  --radius-lg:           20px;
  --font-display:        Georgia, 'Times New Roman', Times, serif;
  --font-body:           Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container-max:       1160px;
  --gap:                 24px;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  /* Убираем стандартный ms-header — этот лендинг имеет свой hero */
}

/* Скрыть заголовок дизайн-системы, используем только её CSS */
.ms-header,
.ms-main.ms-shell,
.ms-disclaimer { display: none !important; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Контейнер ────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Шапка ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 246, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: .02em;
}

.header-phone {
  font-size: .9rem;
  color: var(--color-muted);
  transition: color .2s;
}
.header-phone:hover { color: var(--color-primary); }

/* ── Падающие лепестки (signature element) ───────────────────────────────── */
.petals-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -30px;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  opacity: .7;
  animation: petal-fall linear infinite;
}

@keyframes petal-fall {
  0%   { transform: translateY(0)    rotate(0deg)   scaleX(1); opacity: .8; }
  50%  { transform: translateY(40vh) rotate(180deg) scaleX(-1); }
  100% { transform: translateY(105vh) rotate(360deg) scaleX(1); opacity: 0; }
}

/* Индивидуальные параметры лепестков */
.petal:nth-child(1)  { left: 5%;  background:#F48FB1; animation-duration:6s;  animation-delay:0s;    width:9px;  height:13px; }
.petal:nth-child(2)  { left:14%;  background:#EF9A9A; animation-duration:7.5s;animation-delay:1.2s;  width:12px; height:16px; }
.petal:nth-child(3)  { left:23%;  background:#CE93D8; animation-duration:5.5s;animation-delay:0.4s;  width:8px;  height:12px; }
.petal:nth-child(4)  { left:34%;  background:#F48FB1; animation-duration:8s;  animation-delay:2.1s;  width:11px; height:15px; }
.petal:nth-child(5)  { left:45%;  background:#FFCCBC; animation-duration:6.5s;animation-delay:0.9s;  width:10px; height:14px; }
.petal:nth-child(6)  { left:56%;  background:#EF9A9A; animation-duration:7s;  animation-delay:1.6s;  width:9px;  height:13px; }
.petal:nth-child(7)  { left:65%;  background:#F8BBD0; animation-duration:5.8s;animation-delay:0.3s;  width:13px; height:17px; }
.petal:nth-child(8)  { left:75%;  background:#CE93D8; animation-duration:7.2s;animation-delay:2.5s;  width:8px;  height:12px; }
.petal:nth-child(9)  { left:85%;  background:#F48FB1; animation-duration:6.3s;animation-delay:1.0s;  width:11px; height:15px; }
.petal:nth-child(10) { left:93%;  background:#FFCCBC; animation-duration:8.5s;animation-delay:0.7s;  width:10px; height:14px; }

@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; opacity: 0; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #FFF0F0 0%, #FFF8F6 55%, #F0F7EE 100%);
  overflow: hidden;
  padding: 80px var(--gap) 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-title em {
  color: var(--color-primary);
  font-style: normal;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 40px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Кнопки ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-wa {
  background: var(--color-wa);
  color: #fff;
}
.btn-wa:hover { background: var(--color-wa-hover); }

.btn-tg {
  background: var(--color-tg);
  color: #fff;
}
.btn-tg:hover { background: var(--color-tg-hover); }

/* Маленькие кнопки на карточках */
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s, background .15s;
  flex: 1;
  justify-content: center;
}
.btn-sm:hover  { transform: translateY(-1px); }
.btn-sm:active { transform: translateY(0); }

.btn-sm-wa { background: var(--color-wa);  color: #fff; }
.btn-sm-wa:hover { background: var(--color-wa-hover); }

.btn-sm-tg { background: var(--color-tg);  color: #fff; }
.btn-sm-tg:hover { background: var(--color-tg-hover); }

/* ── Секция каталога ─────────────────────────────────────────────────────── */
.catalog {
  padding: 80px 0 90px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

/* ── Сетка букетов ───────────────────────────────────────────────────────── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ── Карточка букета ─────────────────────────────────────────────────────── */
.bouquet-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.bouquet-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(181, 49, 58, .16);
}

.bouquet-img {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bouquet-emoji {
  font-size: 4rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
  user-select: none;
}

.bouquet-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.bouquet-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.25;
}

.bouquet-desc {
  font-size: .875rem;
  color: var(--color-muted);
  line-height: 1.55;
  flex: 1;
}

.bouquet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.bouquet-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--color-primary);
}

.bouquet-btns {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

/* ── Разделитель ─────────────────────────────────────────────────────────── */
.divider-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.divider-wave svg { display: block; width: 100%; }

/* ── Секция контактов ────────────────────────────────────────────────────── */
.contacts {
  background: linear-gradient(160deg, #2D6A3F 0%, #1B4D2A 100%);
  color: #fff;
  padding: 72px 0 80px;
  text-align: center;
}

.contacts .section-eyebrow {
  color: rgba(255,255,255,.65);
}

.contacts .section-title {
  color: #fff;
  margin-bottom: 16px;
}

.contacts-sub {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 40px;
}

.contacts-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contacts-info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
}

.contacts-info a {
  color: rgba(255,255,255,.85);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contacts-info a:hover { color: #fff; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 20px var(--gap);
  font-size: .8rem;
}

/* ── Иконки SVG в кнопках ────────────────────────────────────────────────── */
.icon-wa, .icon-tg { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
