/* ============================================================
   МК Прим — main stylesheet
   Fonts: Inter (body), Oswald (headings/display)
   Palette:
     --primary:   #2d4a6e  (steel blue)
     --accent:    #3b82b4  (bright blue)
     --bg:        #f5f6f8  (off-white)
     --bg-alt:    #eef0f4  (section alt)
     --card:      #ffffff
     --border:    #dde1e8
     --fg:        #1a1f2b  (charcoal)
     --muted:     #6b7280
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

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

:root {
  --primary:   #2d4a6e;
  --primary-hover: #243d5c;
  --accent:    #3b82b4;
  --bg:        #f5f6f8;
  --bg-alt:    #eef0f4;
  --card:      #ffffff;
  --border:    #dde1e8;
  --fg:        #1a1f2b;
  --muted:     #6b7280;
  --radius:    3px;
  --max-w:     1200px;
  --font-body: 'Inter', sans-serif;
  --font-head: 'Oswald', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Utilities ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
@media (min-width: 1024px) { .container { padding: 0 3rem; } }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-white { background: var(--card); }

.section-label {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.section-label::before {
  content: ''; display: block;
  width: 2.5rem; height: 1px; background: var(--accent); flex-shrink: 0;
}
.section-label span {
  font-size: .7rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}

.section-title {
  font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700; color: var(--fg); line-height: 1.15;
  margin-bottom: .75rem;
}
.section-desc { color: var(--muted); line-height: 1.7; max-width: 42rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .9rem 2rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline {
  background: transparent; color: var(--primary); border-color: rgba(45,74,110,.35);
}
.btn-outline:hover { background: rgba(45,74,110,.06); }
.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover { background: #2f6fa0; border-color: #2f6fa0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
@media (min-width: 1024px) { .header-inner { height: 5rem; } }

.logo {
  display: flex; align-items: center; gap: .75rem;
}
.logo-mark {
  width: 2.25rem; height: 2.25rem;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark span {
  color: #fff; font-weight: 700; font-size: .75rem; letter-spacing: .02em; line-height: 1;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .08em; color: var(--fg);
}
.logo-sub {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

.header-nav {
  display: none;
}
@media (min-width: 768px) {
  .header-nav {
    display: flex; align-items: center; gap: 2.5rem;
  }
}
.header-nav a {
  font-size: .8rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.header-nav a:hover,
.header-nav a.active { color: var(--fg); }

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

.burger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .5rem; border: none; background: none;
}
@media (min-width: 768px) { .burger { display: none; } }
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column; gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .75rem 0; border-bottom: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fg);
}
.mobile-nav a:last-of-type { border-bottom: none; margin-bottom: .5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg); overflow: hidden;
  padding-top: 5rem;
}
.hero-bg-right {
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: #eef0f4;
  transform: skewX(-6deg) translateX(4rem);
  pointer-events: none;
}
.hero-bg-accent {
  position: absolute; top: 0; right: 0;
  width: 33%; height: 100%;
  background: rgba(45,74,110,.04);
  transform: skewX(-6deg) translateX(2rem);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; gap: 3rem;
  padding: 4rem 0 5rem;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}
.hero-tag {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: ''; width: 3rem; height: 1px; background: var(--accent); flex-shrink: 0;
}
.hero-tag span { font-size: .7rem; font-weight: 600; color: var(--accent); letter-spacing: .2em; text-transform: uppercase; }
.hero-title {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700; line-height: 1.1; color: var(--fg); margin-bottom: 1.25rem;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 36rem; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--fg);
}
.hero-stat-label {
  font-size: .65rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted);
  margin-top: .15rem;
}
.hero-illustration {
  display: none;
}
@media (min-width: 1024px) {
  .hero-illustration { display: flex; align-items: center; justify-content: center; }
}
.hero-illustration svg { width: 100%; max-width: 440px; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  transition: color .2s;
}
.hero-scroll:hover { color: var(--fg); }
.hero-scroll svg { animation: bounce 1.8s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .products-grid { grid-template-columns: 1fr 1fr; } }

.product-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: border-color .2s, box-shadow .2s;
}
.product-card:hover { border-color: rgba(59,130,180,.4); box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.product-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.product-card:hover::after { transform: scaleX(1); }

.product-num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 700;
  color: var(--border); line-height: 1;
}
.product-arrow {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid rgba(59,130,180,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background .2s, border-color .2s;
}
.product-card:hover .product-arrow {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.product-head { display: flex; align-items: flex-start; justify-content: space-between; }
.product-title {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--fg);
  margin-bottom: .5rem;
}
.product-desc { font-size: .875rem; color: var(--muted); line-height: 1.65; }
.product-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.product-tag {
  font-size: .75rem; font-weight: 500;
  background: var(--bg-alt); border: 1px solid var(--border);
  padding: .35rem .85rem; border-radius: var(--radius); color: var(--fg);
}
.product-link {
  font-size: .8rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .25rem; transition: gap .2s;
}
.product-link:hover { gap: .6rem; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.adv-grid {
  display: grid; gap: 1.25rem; margin-top: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .adv-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .adv-grid { grid-template-columns: 1fr 1fr 1fr; } }

.adv-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: box-shadow .2s;
}
.adv-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.adv-icon {
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--radius);
  background: rgba(45,74,110,.07); border: 1px solid rgba(45,74,110,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.adv-icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.adv-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--fg);
}
.adv-desc { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid; margin-top: 3rem;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 768px)  { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: 1fr 1fr 1fr; } }

.step-item {
  padding: 2rem; border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .75rem;
  transition: background .2s;
}
.step-item:hover { background: rgba(238,240,244,.6); }
.step-num {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--border);
}
.step-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--fg);
}
.step-desc { font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-grid {
  display: grid; gap: 3rem; margin-top: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .contacts-grid { grid-template-columns: 1fr 1fr; } }

.contact-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.form-control {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1rem;
  font-size: .875rem; font-family: var(--font-body); color: var(--fg);
  transition: border-color .2s, box-shadow .2s; outline: none; width: 100%;
}
.form-control::placeholder { color: #a0a8b4; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,180,.15); }
textarea.form-control { resize: vertical; min-height: 110px; }

.form-note {
  font-size: .72rem; color: var(--muted); text-align: center; margin-top: .5rem;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; justify-content: center; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  background: rgba(45,74,110,.07); border: 1px solid rgba(45,74,110,.12);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon svg { width: 1.1rem; height: 1.1rem; color: var(--primary); }
.contact-item-label {
  font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .15rem;
}
.contact-item-val { font-weight: 500; color: var(--fg); }
.contact-item-val a:hover { color: var(--accent); }

.contact-region-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.contact-region-box .contact-item-label { margin-bottom: .5rem; }
.contact-region-box p { font-size: .875rem; color: var(--fg); line-height: 1.65; }
.contact-region-box a { color: var(--accent); }
.contact-region-box a:hover { text-decoration: underline; }

/* Form success */
.form-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; padding: 3rem 1.5rem; text-align: center;
}
.form-success svg { color: var(--accent); }
.form-success h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--fg); }
.form-success p { font-size: .875rem; color: var(--muted); max-width: 22rem; line-height: 1.65; }

/* ============================================================
   BREADCRUMBS & PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--bg-alt); padding: 8rem 0 3.5rem; margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--muted); margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--border); }

.page-title {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--fg); line-height: 1.1;
  margin-bottom: .75rem;
}
.page-desc { color: var(--muted); max-width: 38rem; line-height: 1.7; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.detail-specs-grid {
  display: grid; gap: 1rem; margin: 2rem 0;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.spec-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
}
.spec-label { font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.spec-val { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--fg); }

.variants-grid {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.variant-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.variant-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--fg); }
.variant-card p { font-size: .85rem; color: var(--muted); line-height: 1.65; }
.variant-card ul { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.variant-card ul li {
  font-size: .82rem; color: var(--fg);
  padding-left: 1rem; position: relative;
}
.variant-card ul li::before {
  content: ''; position: absolute; left: 0; top: .5rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.cta-banner {
  background: var(--primary); border-radius: var(--radius);
  padding: 3rem 2.5rem; margin-top: 3rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-banner h2 { font-family: var(--font-head); font-size: 1.8rem; color: #fff; margin-bottom: .5rem; }
.cta-banner p { color: rgba(255,255,255,.75); font-size: .9rem; max-width: 32rem; line-height: 1.6; }
.cta-banner .btn-accent { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary); color: rgba(255,255,255,.9);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand-desc { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; max-width: 22rem; margin: 1rem 0; }
.footer-phone { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.1rem; color: #fff; }
.footer-phone:hover { color: rgba(255,255,255,.8); }
.footer-phone svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.footer-col-title {
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.75); transition: color .2s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding: 1.25rem 0;
}
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.4); }

/* ============================================================
   ALERT
   ============================================================ */
.alert {
  padding: .85rem 1.25rem; border-radius: var(--radius);
  font-size: .875rem; margin-bottom: 1.25rem;
}
.alert-success { background: #e7f7ee; border: 1px solid #a3d9b5; color: #1a6b38; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* 404 */
.not-found {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem;
}
.not-found-num {
  font-family: var(--font-head); font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700; color: var(--border); line-height: 1;
}
