:root {
  --blue: #4f8df7;
  --blue-light: #a9c4ff;
  --dark: #0d1520;
  --gray: #5b6573;
  --bg-soft: #f2f6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--dark);
  background: #fff;
  line-height: 1.55;
}

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

a { color: var(--blue); }

/* Шапка */
.top { border-bottom: 1px solid #e6ebf3; background: #fff; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo img { height: 48px; width: auto; display: block; }
.phone { font-weight: 700; color: var(--dark); text-decoration: none; font-size: 18px; }

/* Первый экран */
.hero { background: linear-gradient(135deg, var(--bg-soft), #fff 70%); padding: 56px 0 48px; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; margin: 0 0 16px; max-width: 820px; }
.lead { font-size: 18px; color: var(--gray); max-width: 680px; margin: 0 0 28px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff; }
.btn-main { background: var(--blue); }
.btn-viber { background: #7360f2; }
.btn-tg { background: #229ed9; }

/* Секции */
section { padding: 40px 0; }
h2 { font-size: 28px; margin: 0 0 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { border: 1px solid #e6ebf3; border-radius: 16px; padding: 20px; background: #fff; }
.card h3 { margin: 0 0 12px; font-size: 19px; }
.card ul { margin: 0; padding-left: 18px; color: var(--gray); }

.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why li { padding: 16px 20px; background: var(--bg-soft); border-radius: 12px; }

.contacts { background: var(--dark); color: #fff; }
.contacts a { color: var(--blue-light); }
.contacts .big { font-size: 28px; font-weight: 700; margin: 8px 0; }
.contacts .big a { color: #fff; text-decoration: none; }
.contacts .big span { font-size: 16px; font-weight: 400; color: #9aa5b4; }

.foot { padding: 24px 16px; color: var(--gray); font-size: 14px; }

/* Цены */
.prices { width: 100%; max-width: 640px; border-collapse: collapse; }
.prices td { padding: 12px 0; border-bottom: 1px solid #e6ebf3; }
.prices td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 16px; }
.note { color: var(--gray); max-width: 640px; }

/* Кнопки внизу экрана на телефоне */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; box-shadow: 0 -2px 12px rgba(0,0,0,.12); }
  .callbar a { flex: 1; text-align: center; padding: 14px 4px; color: #fff; font-weight: 700; text-decoration: none; }
  .cb-call { background: var(--blue); flex: 2 !important; }
  .cb-viber { background: #7360f2; }
  .cb-tg { background: #229ed9; }
  body { padding-bottom: 52px; }
}

/* Преимущества на первом экране */
.badges { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { background: #fff; border: 1px solid #dbe5fb; border-radius: 999px; padding: 8px 14px; font-size: 15px; }

.card p { margin: 0 0 8px; color: var(--gray); }
.card .price { color: var(--dark); font-weight: 700; margin: 12px 0 0; }

.flowers { background: var(--bg-soft); }

/* Наши работы */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Отзывы */
.rating { font-size: 18px; margin: 0 0 16px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.review { margin: 0; padding: 20px; border: 1px solid #e6ebf3; border-radius: 16px; background: #fff; }
.review p { margin: 0 0 12px; }
.review footer { color: var(--gray); font-size: 14px; }

/* Страницы услуг */
.crumbs { font-size: 14px; color: var(--gray); margin: 0 0 12px; }
.crumbs a { color: var(--gray); }
section h3 { font-size: 18px; margin: 20px 0 6px; }
.links { padding-left: 18px; columns: 2 320px; }
.links li { margin-bottom: 8px; }

.brands { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brands li { background: var(--bg-soft); border-radius: 8px; padding: 6px 12px; font-weight: 600; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 16px 0; }
.team figure { margin: 0; }
.team img { width: 100%; height: auto; border-radius: 12px; display: block; }
.team figcaption { font-size: 14px; color: #5a6578; margin-top: 6px; }

/* ===== Дизайн v2 ===== */
:root { --navy: #1c3f7a; --navy-2: #2a5cb3; --shadow: 0 6px 24px rgba(13, 30, 60, .08); }
body { font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #f6f8fc; }
.top { box-shadow: 0 1px 0 #e6ebf3; border: 0; }
.phone { font-size: 19px; }

.hero { background: radial-gradient(circle at 85% 20%, #5b93f5 0, transparent 50%), linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; letter-spacing: -.02em; }
.hero .lead { color: #c7d3ea; }
.hero .crumbs, .hero .crumbs a { color: #9fb2d6; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #cfe0ff; font-size: 14px; font-weight: 600; }
.hero .badges li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #e6eeff; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: #fff; color: var(--dark); padding: 10px 14px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; gap: 28px; } }

.btn { padding: 15px 26px; box-shadow: 0 6px 16px rgba(0,0,0,.18); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: linear-gradient(135deg, #4f8df7, #2f6ae6); }

.stats { list-style: none; margin: -36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.stats li { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 30px; line-height: 1.1; color: #2f6ae6; }
.stats span { color: var(--gray); font-size: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats b { font-size: 24px; } }

h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.01em; position: relative; padding-top: 14px; }
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #4f8df7, #a9c4ff); }
.contacts h2::before { background: #4f8df7; }

.card { border: 0; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(13,30,60,.12); }
.ico { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: #eaf1ff; align-items: center; justify-content: center; margin-bottom: 12px; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: #2f6ae6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.why li { background: #fff; box-shadow: var(--shadow); padding-left: 48px; position: relative; }
.why li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: #2f6ae6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.flowers { background: linear-gradient(135deg, #eef4ff, #f8f0ff); }
.prices { background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.prices td { padding: 14px 20px; }
.review { border: 0; box-shadow: var(--shadow); }
.brands li { background: #fff; box-shadow: 0 2px 8px rgba(13,30,60,.06); }
.gallery img, .team img { box-shadow: var(--shadow); }
.contacts { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
@media (max-width: 700px) { .hero { padding: 32px 0 56px; } .hero .lead { font-size: 16px; } .eyebrow { font-size: 13px; } }
.btn-main, .hero .btn-main { background: linear-gradient(135deg, #2fcf6f, #16a34a); color: #fff; }
.cb-call { background: #16a34a !important; }
/* Блик на кнопке звонка */
.btn-main, .cb-call { position: relative; overflow: hidden; }
.btn-main::after, .cb-call::after { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn-main::after, .cb-call::after { animation: none; display: none; } }

/* Меню в шапке */
.menu { display: flex; gap: 28px; }
.menu a { color: var(--dark); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: #2f6ae6; }
.top-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.top-contact span { font-size: 13px; color: var(--gray); }
@media (max-width: 900px) { .menu { display: none; } }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* Рейтинг Яндекс Карт */
.ya-badge { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 24px 16px 16px; margin: 0 0 20px; text-decoration: none; color: var(--dark); max-width: 720px; }
.ya-badge img { width: 260px; height: auto; display: block; }
.ya-badge span { font-size: 17px; line-height: 1.6; }
.ya-badge u { color: #2f6ae6; text-decoration: none; font-weight: 600; }

/* Статьи */
.hero-article { padding-bottom: 28px; }
.article { max-width: 760px; }
.article .answer { background: #eef5ff; border-left: 4px solid var(--navy-2); padding: 14px 16px; border-radius: 8px; font-size: 1.05rem; }
.article ol { padding-left: 22px; }
.article ol li { margin-bottom: 8px; }
.article .byline { color: #5b6b80; font-size: .92rem; margin-top: 28px; border-top: 1px solid #e3e9f2; padding-top: 12px; }
.article table.prices { width: 100%; table-layout: fixed; }
.article table.prices td { white-space: normal; overflow-wrap: anywhere; }
.article table.prices td:last-child { width: 42%; }
.art-fig { margin: 22px 0; }
.art-fig img { width: 100%; max-width: 480px; height: auto; border-radius: 12px; display: block; }
.art-fig figcaption { color: #5b6b80; font-size: .92rem; margin-top: 8px; }
