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

:root {
  --navy:      #162235;
  --navy-card: #1e3050;
  --lime:      #b5c420;
  --lime-dark: #9fad18;
  --white:     #ffffff;
  --bg-soft:   #f7f8fa;
  --text-muted:#6b7a8d;
  --border:    #e8eaed;
}

body { font-family: 'Inter', system-ui, sans-serif; color: var(--navy); background: #fff; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── TOP BAR ── */
.top-bar { background: var(--navy); padding: 9px 0; font-size: 13px; }
.top-bar__inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar__contacts { display: flex; align-items: center; gap: 6px; }
.top-bar__contacts a { color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 7px; transition: color .18s; }
.top-bar__contacts a:hover { color: #fff; }
.top-bar__sep { color: rgba(255,255,255,.2); margin: 0 10px; font-size: 16px; }
.top-bar__links { display: flex; gap: 24px; }
.top-bar__links a { color: rgba(255,255,255,.6); transition: color .18s; font-size: 13px; }
.top-bar__links a:hover { color: #fff; }

/* ── HEADER ── */
.header { background: #fff; padding: 14px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.header__inner { display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 88px; width: auto; }
.search { flex: 1; position: relative; }
.search__input { width: 100%; padding: 11px 18px 11px 44px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--bg-soft); color: var(--navy); outline: none; transition: border-color .18s, background .18s; }
.search__input:focus { border-color: var(--navy); background: #fff; }
.search__input::placeholder { color: #aab0bb; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #aab0bb; pointer-events: none; }
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-wish { background: none; border: none; padding: 8px; color: #aab0bb; display: flex; align-items: center; transition: color .18s; border-radius: 8px; }
.btn-wish:hover { color: var(--navy); }
.btn-cart { background: var(--lime); color: #fff; border: none; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: background .18s; }
.btn-cart:hover { background: var(--lime-dark); }

/* ── NAVBAR ── */
.navbar { background: var(--navy); }
.navbar__inner { display: flex; align-items: stretch; }
.navbar__catalog-btn { background: var(--lime); color: #fff; border: none; padding: 0 22px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; flex-shrink: 0; transition: background .18s; height: 48px; }
.navbar__catalog-btn:hover { background: var(--lime-dark); }
.navbar__links { display: flex; flex: 1; }
.navbar__links li { position: relative; }
.navbar__links li a { display: flex; align-items: center; height: 48px; padding: 0 18px; font-size: 14px; color: rgba(255,255,255,.8); transition: color .18s; white-space: nowrap; gap: 5px; }
.navbar__links li a:hover, .navbar__links li a.active { color: #fff; }
.navbar__links li a.sale { color: var(--lime); font-weight: 600; }

/* Dropdown */
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #1e3050; border-top: 2px solid var(--lime); min-width: 210px; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.navbar__links li:hover .nav-dropdown { display: block; }
.nav-dropdown li a { height: auto; padding: 12px 18px; font-size: 13px; color: rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 8px; }
.nav-dropdown li a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-dropdown li:last-child a { border-bottom: none; }

@media (max-width: 768px) {
  .nav-dropdown { position: static; display: none; box-shadow: none; border-top: none; background: rgba(255,255,255,.04); }
  .navbar__links li.open .nav-dropdown { display: block; }
  .nav-dropdown li a { padding-left: 36px; font-size: 13px; }
}

/* ── BREADCRUMB ── */
.breadcrumb { padding: 14px 0; border-bottom: 1px solid var(--border); }
.breadcrumb__list { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb__list a { color: var(--text-muted); transition: color .18s; }
.breadcrumb__list a:hover { color: var(--navy); }
.breadcrumb__list .sep { opacity: .4; }
.breadcrumb__list .current { color: var(--navy); font-weight: 500; }

/* ── BUTTONS ── */
.btn-primary { background: var(--lime); color: #fff; border: none; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; transition: background .18s; }
.btn-primary:hover { background: var(--lime-dark); }
.btn-secondary { background: var(--navy); color: #fff; border: none; padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 700; transition: background .18s; }
.btn-secondary:hover { background: #0e1c2d; }
.btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 11px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: background .18s, color .18s; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.45); padding: 13px 30px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: border-color .18s, background .18s; }
.btn-ghost:hover { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); }
.btn-dark { background: var(--navy); color: #fff; border: none; padding: 13px 26px; border-radius: 8px; font-size: 14px; font-weight: 700; font-family: inherit; white-space: nowrap; transition: background .18s; }
.btn-dark:hover { background: #0e1c2d; }

/* ── PRODUCT CARD ── */
.prod-card { background: #fff; border-radius: 12px; border: 1.5px solid var(--border); overflow: hidden; transition: box-shadow .22s; }
.prod-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); }
.prod-card__img { position: relative; height: 216px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--lime); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 3px 10px; border-radius: 5px; }
.badge.red { background: #e53e3e; }
.prod-card__body { padding: 16px; }
.prod-card__name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; line-height: 1.4; min-height: 40px; }
.prod-card__price { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.btn-add { width: 100%; background: var(--navy); color: #fff; border: none; padding: 11px; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px; transition: background .18s; }
.btn-add:hover { background: var(--lime); }

/* ── SECTION HELPERS ── */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.section-head p { font-size: 15px; color: var(--text-muted); }

/* ── CTA BANNER ── */
.cta-banner { background: var(--lime); padding: 38px 0; }
.cta-banner__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-banner__text h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 7px; }
.cta-banner__text p { font-size: 14px; color: rgba(22,34,53,.65); }
.cta-banner__form { display: flex; gap: 10px; flex-shrink: 0; }
.cta-banner__form input { width: 260px; padding: 13px 18px; border: none; border-radius: 8px; font-size: 14px; font-family: inherit; background: rgba(255,255,255,.88); color: var(--navy); outline: none; transition: background .18s; }
.cta-banner__form input:focus { background: #fff; }
.cta-banner__form input::placeholder { color: #aab4bc; }

/* ── FOOTER ── */
.footer { background: var(--navy); padding: 56px 0 0; }
.footer__grid { display: grid; grid-template-columns: 220px 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-brand__logo { display: flex; align-items: center; margin-bottom: 18px; }
.footer-brand__icon { height: 48px; width: auto; background: #fff; border-radius: 10px; padding: 6px 14px; }
.footer-brand > p { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.7; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.48); transition: color .18s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li span { font-size: 13px; color: rgba(255,255,255,.3); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.footer__bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
.socials { display: flex; gap: 10px; }
.socials a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); transition: color .18s, border-color .18s, background .18s; }
.socials a:hover { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--navy); padding: 40px 0; }
.page-hero h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.page-hero p { font-size: 15px; color: rgba(255,255,255,.55); }

/* ══════════════════════════════════════════
   BURGER
══════════════════════════════════════════ */
.burger {
  display: none;
  background: none;
  border: none;
  padding: 7px;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .18s;
  flex-shrink: 0;
}
.burger:hover { background: var(--bg-soft); }

.search-toggle {
  display: none;
  background: none;
  border: none;
  padding: 7px;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background .18s;
  flex-shrink: 0;
}
.search-toggle:hover { background: var(--bg-soft); }

/* ══════════════════════════════════════════
   TABLET  ≤ 1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cats-grid      { grid-template-columns: repeat(3, 1fr); }
  .prods-grid     { grid-template-columns: repeat(2, 1fr); }
  .advs-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer__grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
  .logo img       { height: 68px; }
}

/* ══════════════════════════════════════════
   MOBILE  ≤ 768px
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Container */
  .container { padding: 0 16px; }

  /* Top bar */
  .top-bar { display: none; }

  /* Header */
  .header { padding: 10px 0; }
  .header__inner { gap: 8px; }
  .logo img { height: 52px; }
  .search { display: none; width: 100%; }
  .search--open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 200;
  }
  .search--open .search__input { border-radius: 8px; }
  .btn-wish { display: none; }
  .burger        { display: flex; }
  .search-toggle { display: flex; }

  /* Navbar */
  .navbar__inner { flex-direction: column; align-items: stretch; }
  .navbar__catalog-btn { width: 100%; height: 50px; justify-content: center; border-radius: 0; }
  .navbar__links {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .navbar__links.open { display: flex; }
  .navbar__links li { width: 100%; }
  .navbar__links li a {
    height: auto;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    width: 100%;
  }

  /* Hero */
  .hero { min-height: 280px; padding: 36px 0; }
  .hero h1 { font-size: 26px; letter-spacing: 0; }
  .hero p  { font-size: 14px; margin-bottom: 24px; }
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 14px; }

  /* Sections */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 24px; }
  .section-head p  { font-size: 14px; }

  /* Categories */
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Products */
  .prods-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .products-top { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .products-top h2 { font-size: 22px; }
  .prod-card__img { height: 170px; }
  .prod-card__price { font-size: 16px; }

  /* Advantages */
  .advs-grid { grid-template-columns: 1fr; gap: 12px; }

  /* CTA Banner */
  .cta-banner { padding: 28px 0; }
  .cta-banner__inner { flex-direction: column; gap: 20px; }
  .cta-banner__text h2 { font-size: 20px; }
  .cta-banner__form { flex-direction: column; width: 100%; }
  .cta-banner__form input { width: 100%; }
  .btn-dark { width: 100%; text-align: center; }

  /* Footer */
  .footer { padding: 36px 0 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px 0; }
  .socials { justify-content: center; }

  /* Page hero */
  .page-hero { padding: 28px 0; }
  .page-hero h1 { font-size: 24px; }

  /* Breadcrumb */
  .breadcrumb { padding: 10px 0; }
  .breadcrumb__list { font-size: 12px; }
}

/* ══════════════════════════════════════════
   ORDER MODAL
══════════════════════════════════════════ */
#order-modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; }
#order-modal.open { display: flex; }

.order-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }

.order-modal__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 420px;
  margin: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  animation: modalIn .22s ease;
  text-align: center;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.order-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.order-modal__close:hover { background: var(--bg-soft); color: var(--navy); }

.order-modal__icon {
  width: 64px; height: 64px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--navy);
}

.order-modal__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.order-modal__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-modal__form { text-align: left; }

.order-modal__field { margin-bottom: 16px; }

.order-modal__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.order-modal__input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  transition: border-color .18s;
}
.order-modal__input:focus { border-color: var(--navy); }
.order-modal__input--error { border-color: #e53e3e !important; }

.order-modal__submit {
  width: 100%;
  background: var(--lime);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 6px;
  transition: background .18s;
}
.order-modal__submit:hover { background: var(--lime-dark); }

.order-modal__success {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.order-modal__success h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0; }
.order-modal__success p  { font-size: 14px; color: var(--text-muted); margin: 0; }

@media (max-width: 480px) {
  .order-modal__box { padding: 32px 20px 24px; }
  .order-modal__title { font-size: 19px; }
}
