:root {
  --brand: #40358b;
  --brand-dark: #1f1b3b;
  --accent: #ca2f86;
  --accent-dark: #a8226d;
  --text: #3a3a3a;
  --muted: #6b6b76;
  --bg: #ffffff;
  --bg-light: #f5f5f7;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(31, 27, 59, .08);
  --font-head: "Raleway", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font-body); color: var(--text); background: var(--bg); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--brand-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.center { text-align: center; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 860px; }

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font: 700 1rem var(--font-head); text-decoration: none; transition: background .2s, color .2s, transform .2s; border: 2px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--brand); }
.nav__list > li > .btn--small { padding: 8px 18px; margin-left: 8px; background: var(--accent); color: #fff; border-radius: 999px; }
.nav__list > li > .btn--small:hover { background: var(--accent-dark); color: #fff; }

/* Top bar */
.topbar { background: var(--brand-dark); color: #d7d4ec; font-size: .875rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar__tagline { margin: 0; }
.topbar__phone { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Header */
.header { background: var(--brand); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { text-decoration: none; }
.logo__img { display: block; height: 56px; width: auto; }
.logo__img--small { height: 40px; }

.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav__list > li > a, .nav__dropdown-toggle { display: block; padding: 10px 14px; color: #fff; text-decoration: none; font: 600 .95rem var(--font-head); background: none; border: 0; cursor: pointer; }
.nav__list > li > a:hover, .nav__dropdown-toggle:hover { color: #f3c4de; }
.nav__dropdown-toggle::after { content: "▾"; margin-left: 6px; font-size: .75em; }
.nav__item--dropdown { position: relative; }
.nav__dropdown { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.nav__dropdown a { display: block; padding: 10px 18px; color: var(--text); text-decoration: none; }
.nav__dropdown a:hover { background: var(--bg-light); color: var(--brand); }
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero: фото фона — assets/img/hero.png */
.hero {
  background-color: #8c8c96;
  background-image: linear-gradient(rgba(31, 27, 59, .78), rgba(64, 53, 139, .7)), url(../img/hero.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  padding: 110px 0;
}
.hero__inner { max-width: 820px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.1rem; color: #ecebf6; }
.hero .btn { margin-top: 12px; }

/* Delivery */
.delivery { padding: 64px 0; background: var(--bg-light); }
.delivery__inner { display: flex; gap: 32px; align-items: flex-start; }
.delivery__icon { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font: 700 .8rem var(--font-head); color: var(--accent); margin-bottom: .4em; }

/* Service area */
.areas { padding: 64px 0; }
.areas .section-head { margin-bottom: 32px; }
.areas__list { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; }
.areas__list li { position: relative; padding-left: 26px; color: var(--text); font-size: 1rem; }
.areas__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath fill='%23ca2f86' d='M8 0a8 8 0 0 0-8 8c0 6 8 12 8 12s8-6 8-12a8 8 0 0 0-8-8zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E") no-repeat center / contain; }
.areas__list li:first-child { font-weight: 700; color: var(--brand-dark); }

/* Services */
.services { padding: 80px 0; }
.services--alt { background: var(--bg-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(31, 27, 59, .14); }
.card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: 16px; background: var(--bg-light); }
.services--alt .card__img { background: #fff; }
.card h3 { margin: 18px 20px 8px; }
.card p { margin: 0 20px 16px; color: var(--muted); font-size: .95rem; flex: 1; }
.card__link { margin: 0 20px 20px; font: 700 .9rem var(--font-head); color: var(--accent); text-decoration: none; }
.card__link::after { content: " →"; }

/* Image + text cards (marketing section) */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.split__img { width: 100%; height: auto; }
.cards--text { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards--text .card h3 { margin-top: 20px; }
.cards--text .card:last-child { grid-column: 1 / -1; }

/* Why */
.why { padding: 80px 0; background: var(--brand); color: #fff; }
.why__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.why h2 { color: #fff; }
.why h2 span { color: #f3a6d0; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 1.05rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }

/* FAQ */
.faq { padding: 80px 0; background: var(--bg-light); }
.faq details { background: #fff; border-radius: var(--radius); margin-bottom: 12px; box-shadow: 0 2px 8px rgba(31,27,59,.05); }
.faq summary { padding: 18px 52px 18px 22px; font: 700 1.05rem var(--font-head); color: var(--brand-dark); cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; margin: 0; }

/* CTA */
.cta { padding: 80px 0; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; }
.cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .btn--accent { background: #fff; color: var(--brand); }
.cta .btn--accent:hover { background: var(--bg-light); }

/* Contact page */
.page-hero { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; text-align: center; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; }
.page-hero__lead { font-size: 1.15rem; color: #ecebf6; margin-bottom: .4em; }
.page-hero__phone { font: 800 1.8rem var(--font-head); color: #fff; text-decoration: none; }
.page-hero__phone:hover { color: #f3a6d0; }

.contact { padding: 72px 0; background: var(--bg-light); }
.contact__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 32px; align-items: start; }

.form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form__note { color: var(--muted); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; margin-bottom: 18px; }
.form__field label { font: 700 .95rem var(--font-head); color: var(--brand-dark); margin-bottom: 6px; }
.form__field input, .form__field textarea { font: inherit; color: var(--text); padding: 12px 14px; border: 1px solid #cfcfd8; border-radius: 8px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.form__field textarea { resize: vertical; min-height: 140px; }
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(64, 53, 139, .15); }
.form__field small { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.form__honey { position: absolute; left: -9999px; }
.form__submit { border: 0; cursor: pointer; min-width: 180px; }
.req { color: var(--accent); }

.contact__info { background: var(--brand); color: #ecebf6; border-radius: var(--radius); padding: 32px; }
.contact__info h2 { color: #fff; font-size: 1.5rem; }
.contact__item { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact__item h3 { color: #f3a6d0; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.contact__item a { color: #fff; font-weight: 600; text-decoration: none; }
.contact__item a:hover { text-decoration: underline; }
.contact__item address, .contact__item p { font-style: normal; margin: 0 0 6px; }

/* Footer */
.footer { background: var(--brand-dark); color: #c9c6e0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 64px 16px 48px; }
.footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #c9c6e0; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; line-height: 1.9; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__bottom p { margin: 0; }

/* Responsive */
@media (max-width: 992px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--brand); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav.is-open { max-height: 80vh; overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 8px 16px 20px; }
  .nav__dropdown-toggle { width: 100%; text-align: left; }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.06); display: none; }
  .nav__item--dropdown:hover .nav__dropdown { display: none; }
  .nav__item--dropdown.is-open .nav__dropdown { display: block; }
  .nav__dropdown a { color: #fff; }
  .nav__dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav__list > li > .btn--small { text-align: center; margin: 8px 0 0; }
  .why__inner { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .areas__list { grid-template-columns: repeat(3, 1fr); }
  .split__img { max-width: 520px; margin: 0 auto; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { background-attachment: scroll; }
}

@media (max-width: 768px) {
  .topbar__inner { font-size: .8rem; }
  .logo__img { height: 44px; }
  .hero { padding: 72px 0; }
  .delivery__inner { flex-direction: column; gap: 20px; }
  .services, .areas, .why, .faq, .cta { padding: 56px 0; }
  .areas__list { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .form { padding: 24px 16px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .cards--text { grid-template-columns: 1fr; }
  .cta__buttons .btn { width: 100%; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}
