/* ============================================================
   artisanfloralcraft.com — глобальная дизайн-система
   Префикс кастомных классов: afc-
   Палитра: тёплая бумага / ботанический зелёный / роза / латунь
   TODO: если добавим вторую тему — вынести переменные в afc-theme-*
   ============================================================ */

:root {
  --afc-paper: #f7f2ea;
  --afc-paper-deep: #efe6d8;
  --afc-green: #1e3b2f;
  --afc-green-soft: #2c5243;
  --afc-rose: #c4707b;
  --afc-rose-deep: #a34f5c;
  --afc-brass: #b9975b;
  --afc-ink: #2a2622;
  --afc-muted: #6f675d;
  --afc-line: rgba(30, 59, 47, .16);
  --afc-font-display: "Fraunces", Georgia, serif;
  --afc-font-body: "Inter", system-ui, sans-serif;
  --afc-shadow: 0 18px 44px rgba(30, 59, 47, .14);
  --afc-radius: 18px;
}

body,html {
  font-family: var(--afc-font-body);
  color: var(--afc-ink);
  background: var(--afc-paper);
  overflow-x: hidden;
}

h1, h2, h3, .afc-display {
  font-family: var(--afc-font-display);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--afc-green);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }

p { color: var(--afc-muted); line-height: 1.7; }

a { color: var(--afc-rose-deep); }
a:hover { color: var(--afc-green); }

/* --- утилиты --- */
.afc-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.afc-bg-paper { background: var(--afc-paper); }
.afc-bg-paper-deep { background: var(--afc-paper-deep); }
.afc-bg-green { background: var(--afc-green); color: #f3ede2; }
.afc-bg-green h2, .afc-bg-green h3 { color: #f3ede2; }
.afc-bg-green p { color: rgba(243, 237, 226, .78); }
.afc-eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--afc-brass); font-weight: 600; margin-bottom: .9rem;
}
.afc-lead { font-size: 1.08rem; max-width: 46rem; }
.afc-dropcap::first-letter {
  font-family: var(--afc-font-display); float: left;
  font-size: 3.4rem; line-height: .82; padding-right: .55rem; color: var(--afc-rose-deep);
}

/* --- кнопки --- */
.btn-afc {
  --bs-btn-bg: var(--afc-rose); --bs-btn-border-color: var(--afc-rose);
  --bs-btn-color: #fff; --bs-btn-hover-bg: var(--afc-rose-deep);
  --bs-btn-hover-border-color: var(--afc-rose-deep); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--afc-rose-deep);
  border-radius: 999px; padding: .7rem 1.7rem; font-weight: 600;
}
.btn-afc-outline {
  --bs-btn-color: var(--afc-green); --bs-btn-border-color: var(--afc-green);
  --bs-btn-hover-bg: var(--afc-green); --bs-btn-hover-color: #f3ede2;
  --bs-btn-hover-border-color: var(--afc-green);
  --bs-btn-active-bg: var(--afc-green);
  border-radius: 999px; padding: .7rem 1.7rem; font-weight: 600;
}
.btn-afc-light {
  --bs-btn-color: #f3ede2; --bs-btn-border-color: rgba(243,237,226,.6);
  --bs-btn-hover-bg: #f3ede2; --bs-btn-hover-color: var(--afc-green);
  --bs-btn-hover-border-color: #f3ede2;
  border-radius: 999px; padding: .7rem 1.7rem; font-weight: 600;
}

/* --- бейдж с пульс-точкой --- */
.afc-badge-pulse {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(30, 59, 47, .08); border: 1px solid var(--afc-line);
  border-radius: 999px; padding: .35rem 1rem; font-size: .82rem; font-weight: 600;
  color: var(--afc-green);
}
.afc-badge-pulse::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--afc-rose); animation: afc-pulse 1.8s infinite;
}
@keyframes afc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(196, 112, 123, .5); }
  70% { box-shadow: 0 0 0 9px rgba(196, 112, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 112, 123, 0); }
}

/* --- карточка-рамка (двойная граница, как у премиум-изданий) --- */
.afc-frame {
  background: #fff; border: 1px solid var(--afc-line);
  border-radius: var(--afc-radius); padding: 10px; box-shadow: var(--afc-shadow);
}
.afc-frame-inner {
  border: 1px dashed rgba(185, 151, 91, .55);
  border-radius: calc(var(--afc-radius) - 6px); height: 100%;
}
.afc-frame img { border-radius: calc(var(--afc-radius) - 6px); object-fit: cover; }

/* --- кольцо-декор --- */
.afc-ring {
  position: absolute; border: 1px solid rgba(185, 151, 91, .4);
  border-radius: 50%; pointer-events: none;
}

/* --- штамп (круглая печать мастера) --- */
.afc-stamp {
  width: 118px; height: 118px; border-radius: 50%;
  border: 2px solid var(--afc-brass); color: var(--afc-brass);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; line-height: 1.5; transform: rotate(-8deg);
  background: rgba(255, 255, 255, .65);
}

/* --- hero --- */
.afc-hero { min-height: 88vh; display: flex; align-items: center; color: #f3ede2; }
.afc-hero h1,
.afc-hero h2,
.afc-hero h3,
.afc-hero .afc-display { color: #fbf7f0; text-shadow: 0 2px 24px rgba(10, 22, 17, .45); }
.afc-hero h1 em, .afc-hero h2 em { color: #f0cfa2; font-style: italic; }
.afc-hero p { color: rgba(249, 245, 238, .88); }
.afc-hero .afc-eyebrow { color: #e7c894; }
.afc-hero-slide {
  min-height: 88vh; background-size: cover; background-position: center;
  display: flex; align-items: center; width: 100%;
  transition: opacity .9s ease;
}
/* слайдер — блок, а не flex-контейнер: иначе первый слайд сжимается до ширины текста */
.afc-hero-slider { display: block; }
.afc-hero-slider .afc-hero-slide { flex: 1 1 100%; }
.afc-hero-slide > .container { position: relative; z-index: 2; }
/* на мобиле затемняем по вертикали — иначе текст попадает на светлую часть фото */
@media (max-width: 767px) {
  .afc-hero-slide { background-image: linear-gradient(180deg, rgba(21,43,34,.62), rgba(21,43,34,.88)), var(--afc-slide-image, none) !important; }
  .afc-hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(21,43,34,.55), rgba(21,43,34,.85));
  }
}
/* точки-переключатели слайдов */
.afc-slide-dot {
  width: 34px; height: 6px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s ease, width .3s ease;
}
.afc-slide-dot.active { background: var(--afc-brass); width: 52px; }
.afc-slide-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* --- карточки услуг/букетов --- */
.afc-card {
  background: #fff; border: 1px solid var(--afc-line);
  border-radius: var(--afc-radius); overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease; height: 100%;
}
.afc-card:hover { transform: translateY(-6px); box-shadow: var(--afc-shadow); }
.afc-card img { height: 240px; width: 100%; object-fit: cover; }
.afc-card-body { padding: 1.4rem; }
.afc-price {
  font-family: var(--afc-font-display); font-size: 1.5rem; color: var(--afc-rose-deep);
  font-weight: 600;
}

/* --- фото-рейл (горизонтальная лента) --- */
.afc-rail {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; -webkit-overflow-scrolling: touch;
}
.afc-rail > * { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; }
.afc-rail img { border-radius: var(--afc-radius); object-fit: cover; height: 300px; width: 100%; }

/* --- счётчики --- */
.afc-counter {
  font-family: var(--afc-font-display); font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--afc-brass); font-weight: 600; line-height: 1;
}
.afc-counter-label { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,237,226,.75); }

/* --- timeline --- */
.afc-timeline { position: relative; padding-left: 2.2rem; }
.afc-timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--afc-brass), rgba(185,151,91,.15));
}
.afc-timeline-item { position: relative; padding-bottom: 2rem; }
.afc-timeline-item::before {
  content: ""; position: absolute; left: -2.2rem; top: .4rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--afc-paper); border: 3px solid var(--afc-rose);
}

/* --- аккордеон FAQ --- */
.afc-accordion .accordion-item {
  background: transparent; border: none; border-bottom: 1px solid var(--afc-line);
}
.afc-accordion .accordion-button {
  background: transparent; font-family: var(--afc-font-display);
  font-size: 1.15rem; color: var(--afc-green); padding: 1.2rem 0;
  box-shadow: none;
}
.afc-accordion .accordion-button:not(.collapsed) { color: var(--afc-rose-deep); background: transparent; }
.afc-accordion .accordion-button::after { filter: sepia(.6) saturate(2); }
.afc-accordion .accordion-body { padding: 0 0 1.3rem; color: var(--afc-muted); }

/* --- дисклеймер --- */
.afc-disclaimer {
  border-left: 3px solid var(--afc-brass); background: rgba(185, 151, 91, .08);
  border-radius: 0 12px 12px 0; padding: 1.1rem 1.4rem; font-size: .88rem; color: var(--afc-muted);
}

/* --- формы --- */
.afc-form .form-control, .afc-form .form-select {
  border-radius: 12px; border-color: var(--afc-line); padding: .8rem 1.1rem;
  background: #fff;
}
.afc-form .form-control:focus, .afc-form .form-select:focus {
  border-color: var(--afc-rose); box-shadow: 0 0 0 .2rem rgba(196, 112, 123, .18);
}

/* --- тост-нотификация (не alert) --- */
.afc-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140%);
  background: var(--afc-green); color: #f3ede2; border-radius: 999px;
  padding: .85rem 1.6rem; font-size: .92rem; z-index: 1090;
  box-shadow: var(--afc-shadow); transition: transform .45s cubic-bezier(.2,.9,.3,1.2);
  display: flex; align-items: center; gap: .6rem; max-width: 92vw;
}
.afc-toast.is-visible { transform: translate(-50%, 0); }
.afc-toast i { color: var(--afc-brass); }

/* --- cookie-баннер --- */
.afc-cookie {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 1080;
  background: #fff; border: 1px solid var(--afc-line); border-radius: var(--afc-radius);
  box-shadow: var(--afc-shadow); padding: 1.1rem 1.4rem;
  display: none; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  max-width: 720px;
}
.afc-cookie.is-visible { display: flex; }
.afc-cookie p { margin: 0; font-size: .88rem; flex: 1 1 260px; }

/* --- хедер --- */
.afc-topbar { background: var(--afc-green); color: rgba(243,237,226,.85); font-size: .84rem; }
.afc-topbar a { color: rgba(243,237,226,.85); text-decoration: none; }
.afc-topbar a:hover { color: #fff; }
.afc-navbar {
  background: rgba(247, 242, 234, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--afc-line);
}
.afc-navbar .nav-link {
  color: var(--afc-green); font-weight: 500; font-size: .92rem;
  padding: .45rem .7rem !important; border-radius: 999px;
}
.afc-navbar .nav-link:hover, .afc-navbar .nav-link.active { color: var(--afc-rose-deep); background: rgba(196,112,123,.08); }
.afc-navbar .navbar-brand { font-family: var(--afc-font-display); font-weight: 600; color: var(--afc-green); }
.afc-navbar .navbar-toggler { border-color: var(--afc-line); color: var(--afc-green); }

/* --- футер --- */
.afc-footer { background: var(--afc-green); color: rgba(243,237,226,.8); }
.afc-footer h3, .afc-footer h4 { color: #f3ede2; font-size: 1.05rem; letter-spacing: .06em; }
.afc-footer a { color: rgba(243,237,226,.8); text-decoration: none; }
.afc-footer a:hover { color: var(--afc-brass); }
.afc-footer .afc-social a {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid rgba(243,237,226,.3); border-radius: 50%; margin-right: .5rem;
}
.afc-footer .afc-social a:hover { background: var(--afc-brass); border-color: var(--afc-brass); color: var(--afc-green); }
.afc-footer-bottom { border-top: 1px solid rgba(243,237,226,.15); font-size: .82rem; }

/* --- мета-теги (маленькие подписи-чипсы) --- */
.afc-meta-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.afc-meta-tags span {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--afc-line); border-radius: 999px; padding: .25rem .8rem;
  color: var(--afc-green); background: rgba(255,255,255,.6);
}

/* --- bento-сетка --- */
.afc-bento { display: grid; gap: 1.2rem; grid-template-columns: repeat(4, 1fr); }
.afc-bento > .afc-bento-wide { grid-column: span 2; }
.afc-bento > .afc-bento-tall { grid-row: span 2; }
@media (max-width: 991px) { .afc-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .afc-bento { grid-template-columns: 1fr; } .afc-bento > .afc-bento-wide, .afc-bento > .afc-bento-tall { grid-column: span 1; grid-row: span 1; } }

/* --- таблица цен --- */
.afc-table { border-collapse: separate; border-spacing: 0; }
.afc-table th, .afc-table td { border-color: var(--afc-line); padding: .9rem 1rem; vertical-align: middle; }
.afc-table thead th { background: var(--afc-green); color: #f3ede2; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.afc-table tbody tr:nth-child(even) { background: rgba(255,255,255,.55); }

/* --- цитата --- */
.afc-quote { font-family: var(--afc-font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--afc-green); }
.afc-quote::before { content: "\201C"; color: var(--afc-brass); font-size: 2.2em; line-height: 0; vertical-align: -.35em; margin-right: .2em; }

/* --- декоративные координаты/номера секций --- */
.afc-section-no {
  font-family: var(--afc-font-display); font-size: .8rem; letter-spacing: .3em;
  color: var(--afc-brass); text-transform: uppercase;
}

/* --- мобильная адаптация --- */
@media (max-width: 767px) {
  .afc-hero, .afc-hero-slide { min-height: 72vh; }
  .afc-stamp { width: 92px; height: 92px; font-size: .58rem; }
  .afc-section { padding: 3rem 0; }
}

/* --- доступность --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* Hero slide controls stay visible over image-led panels. */
.afc-slide-dot { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: transparent; }
.afc-slide-dot.active { background: var(--afc-brass); border-color: var(--afc-brass); transform: scale(1.2); }
.afc-service-hero { min-height: 58vh; display: flex; align-items: center; color: #f3ede2; background-size: cover; background-position: center; }
.afc-service-hero h1, .afc-service-hero h2 { color: #f9f5ee; }
.afc-service-hero p { color: rgba(249,245,238,.86); }
