:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --green: #6fcf3f;
  --teal: #17a2a0;
  --gradient: linear-gradient(135deg, var(--teal), var(--green));
  --text: #1c2733;
  --text-muted: #5b6b7c;
  --bg: #f5f8fa;
  --white: #ffffff;
  --border: #e3e9ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); }
.btn--accent { background: var(--gradient); color: var(--white); box-shadow: 0 8px 20px rgba(111, 207, 63, .3); }
.btn--outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 11px 22px; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--full { width: 100%; }

/* Topbar */
.topbar { background: var(--navy-dark); color: rgba(255,255,255,.85); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; gap: 12px; flex-wrap: wrap; }
.topbar__info { display: flex; align-items: center; gap: 10px; }
.topbar__info .dot { opacity: .5; }
.topbar__contact a { font-weight: 600; color: var(--green); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px;
}
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.nav a { font-weight: 600; font-size: 15px; color: var(--text); }
.nav a:hover { color: var(--teal); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.header__phone svg { color: var(--green); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,26,51,.96) 0%, rgba(7,26,51,.9) 42%, rgba(7,26,51,.55) 70%, rgba(7,26,51,.25) 100%);
}
.hero__inner { position: relative; padding: 90px 20px 100px; }
.hero__text { max-width: 640px; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 20px; font-weight: 800; }
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.85); margin: 0 0 32px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__badges { display: flex; flex-direction: column; gap: 10px; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.9); }
.hero__badge span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--navy-dark); font-size: 12px; font-weight: 800; flex-shrink: 0; }

/* Section headings */
.section-title { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-sub { color: var(--text-muted); margin: 0; font-size: 16px; }

/* Categories */
.categories { padding: 56px 0 16px; }
.cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.cat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 14px; text-align: center; transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.cat-card__icon { font-size: 30px; margin-bottom: 10px; }
.cat-card span { font-weight: 700; font-size: 14px; color: var(--navy); display: block; }

/* Solutions */
.solutions { padding: 56px 0; }
.solutions__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-card {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
}
.solution-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--gradient); opacity: 0; transition: opacity .25s ease;
}
.solution-card:hover::before { opacity: .12; }
.solution-card h3 { margin: 0 0 10px; font-size: 20px; }
.solution-card p { margin: 0 0 18px; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.6; }
.link-arrow { font-weight: 700; color: var(--green); position: relative; }

/* Products */
.products { padding: 56px 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card__media { position: relative; background: #f0f3f6; padding: 18px; }
.product-card__media img { height: 200px; margin: 0 auto; object-fit: contain; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 6px; color: var(--white);
}
.badge--hit { background: var(--navy); }
.badge--sale { background: #e6452e; }
.badge--order { background: #8a93a1; }
.product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 16px; line-height: 1.4; margin: 0 0 12px; color: var(--navy); min-height: 44px; }
.product-card__specs { margin-bottom: 16px; flex: 1; }
.product-card__specs li { font-size: 13.5px; color: var(--text-muted); padding: 3px 0; position: relative; padding-left: 16px; }
.product-card__specs li::before { content: "•"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.price { display: flex; flex-direction: column; }
.price__old { font-size: 13px; color: #a8b1bc; text-decoration: line-through; }
.price__current { font-size: 18px; font-weight: 800; color: var(--navy); }

/* Promo */
.promo { background: var(--navy); color: var(--white); padding: 56px 0; margin: 56px 0; }
.promo__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.promo__text { max-width: 480px; }
.promo__text h2 { font-size: 26px; margin: 0 0 10px; }
.promo__text p { color: rgba(255,255,255,.75); margin: 0; line-height: 1.6; }
.promo__form { display: flex; gap: 10px; flex-wrap: wrap; }
.promo__form input {
  padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: var(--white); font-family: inherit; font-size: 14px; min-width: 190px;
}
.promo__form input::placeholder { color: rgba(255,255,255,.5); }

/* Why */
.why { padding: 20px 0 70px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { text-align: center; padding: 10px; }
.why-card__icon {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(111,207,63,.12);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px;
}
.why-card h3 { font-size: 16px; color: var(--navy); margin: 0 0 8px; }
.why-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Footer */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__logo-wrap {
  display: inline-flex; align-items: center; background: var(--white);
  border-radius: 10px; padding: 8px 14px; margin-bottom: 12px; width: fit-content;
}
.footer__logo { height: 32px; display: block; }
.footer__col h4 { color: var(--white); font-size: 15px; margin: 0 0 6px; }
.footer__col a, .footer__col span { font-size: 14px; color: rgba(255,255,255,.65); }
.footer__col a:hover { color: var(--green); }
.footer__requisites {
  padding: 18px 20px 0; text-align: center; font-size: 12px; line-height: 1.7;
  color: rgba(255,255,255,.4); max-width: 900px; margin: 0 auto;
}
.footer__bottom { padding: 16px 20px 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* Legal / info pages */
.page-hero { background: var(--navy); color: var(--white); padding: 44px 0; }
.page-hero .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-hero h1 { font-size: 28px; margin: 0; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); width: 100%; margin-bottom: 4px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--green); }
.legal { padding: 50px 0 80px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 21px; color: var(--navy); margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { line-height: 1.75; color: var(--text); margin: 0 0 14px; font-size: 15px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { line-height: 1.75; color: var(--text); margin-bottom: 6px; font-size: 15px; }
.legal .updated { color: var(--text-muted); font-size: 13.5px; margin-bottom: 30px; }
.legal .requisites-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; font-size: 14.5px; line-height: 1.9; color: var(--text); margin: 20px 0;
}

/* About page */
.about-hero { background: var(--navy); color: var(--white); padding: 60px 0; }
.about-hero .container { max-width: 820px; }
.about-hero h1 { font-size: 32px; margin: 0 0 14px; }
.about-hero p { color: rgba(255,255,255,.8); font-size: 16px; line-height: 1.7; margin: 0; }
.about-section { padding: 50px 0; }
.about-section .container { max-width: 820px; }
.about-section h2 { font-size: 22px; color: var(--navy); margin: 0 0 14px; }
.about-section p { line-height: 1.75; color: var(--text); margin: 0 0 14px; font-size: 15.5px; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.about-stat { text-align: center; padding: 20px 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.about-stat strong { display: block; font-size: 26px; color: var(--navy); margin-bottom: 4px; }
.about-stat span { font-size: 13px; color: var(--text-muted); }

@media (max-width: 640px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 22px; }
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7,26,51,.6); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; background: var(--white); border-radius: 16px; padding: 34px 30px 28px;
  width: 100%; max-width: 440px; box-shadow: 0 30px 60px rgba(0,0,0,.25);
  animation: modal-in .2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 26px;
  color: var(--text-muted); cursor: pointer; line-height: 1; width: 32px; height: 32px;
}
.modal__dialog h3 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.modal__product { font-size: 13.5px; color: var(--teal); font-weight: 700; margin: 0 0 20px; }
#lead-form { display: flex; flex-direction: column; gap: 14px; }
#lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
#lead-form input, #lead-form textarea {
  font-family: inherit; font-size: 14.5px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); resize: none; color: var(--text);
}
#lead-form input:focus, #lead-form textarea:focus { outline: none; border-color: var(--teal); }
.modal__note { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.modal__view--success { text-align: center; padding: 10px 0; }
.modal__success-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--gradient); color: var(--white);
  font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.modal__view--success h3 { margin-bottom: 8px; }
.modal__view--success p { color: var(--text-muted); margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; }

/* Mobile call button */
.mobile-call {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--gradient);
  align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(111,207,63,.4);
}

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header--open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; padding: 16px 20px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .header--open .nav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .header__phone span { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .solutions__grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
  .mobile-call { display: flex; }
}

@media (max-width: 640px) {
  .topbar__info span:nth-child(3), .topbar__info .dot:nth-child(4) { display: none; }
  .header__inner { padding: 12px 16px; }
  .logo img { height: 38px; }
  .header__phone { display: none; }
  .hero__inner { padding: 60px 16px 70px; }
  .hero h1 { font-size: 28px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .promo__inner { flex-direction: column; align-items: stretch; }
  .promo__form { flex-direction: column; }
  .promo__form input { min-width: 0; }
}

/* Contacts page */
.contacts-section { padding: 50px 0 80px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 16px; display: flex; gap: 14px; align-items: flex-start;
}
.contact-card__icon {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(111,207,63,.12);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.contact-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.contact-card p, .contact-card a { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.contact-card a:hover { color: var(--teal); }
.contact-form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-form-box h2 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.contact-form-box > p.lede { margin: 0 0 24px; color: var(--text-muted); font-size: 14.5px; }
#contact-form { display: flex; flex-direction: column; gap: 16px; }
#contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
#contact-form input, #contact-form textarea {
  font-family: inherit; font-size: 14.5px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); resize: none; color: var(--text);
}
#contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--teal); }
.contact-success { text-align: center; padding: 30px 10px; }
.contact-success__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--gradient); color: var(--white);
  font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.contact-success h2 { margin: 0 0 8px; color: var(--navy); }
.contact-success p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  #contact-form .form-row { grid-template-columns: 1fr; }
}
