/* ============================================================
   КАМИ — Стили сайта
   Цветовая схема: белый фон, тёмный уголь, ember orange акцент
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #FAFAF9;
  --fg:           #1F1A15;
  --primary:      #C2510F;       /* ember orange */
  --primary-dark: #A84209;
  --secondary:    #F3F0EC;
  --border:       #E5DED5;
  --muted:        #8A7E72;
  --card:         #FAFAF9;
  --radius:       0.5rem;
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-heading: 'Roboto Condensed', 'Inter', sans-serif;
  --max-w:        1152px;
  --px:           clamp(1rem, 4vw, 2rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
}

/* ---------- Utilities ---------- */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--px); }
.section    { padding-block: 6rem; }
.section--alt { background: var(--secondary); }
.section--dark {
  background: var(--fg);
  color: #fff;
}
.section__eyebrow {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .5rem;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}
.section__title--light { color: #fff; }
.text-balance { text-wrap: balance; }
.text-muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 500;
  transition: background .2s, opacity .2s, gap .2s;
  border: none;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
.btn--outline {
  background: var(--secondary);
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn--outline:hover { background: var(--border); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250,250,249,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.logo__icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.logo__icon svg { width: 1.25rem; height: 1.25rem; }
.logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: var(--fg);
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: .25rem; }
.nav__link {
  padding: .5rem .75rem;
  font-size: .875rem;
  color: var(--muted);
  border-radius: var(--radius);
  transition: color .15s;
}
.nav__link:hover, .nav__link.active { color: var(--fg); }
.nav__link.active { color: var(--primary); font-weight: 500; }

/* Dropdown */
.nav__item { position: relative; }
.nav__dropdown-btn {
  display: flex; align-items: center; gap: .25rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  color: var(--muted);
  background: none; border: none;
  border-radius: var(--radius);
  transition: color .15s;
}
.nav__dropdown-btn:hover,
.nav__dropdown-btn.active { color: var(--primary); font-weight: 500; }
.nav__dropdown-btn svg { width: .875rem; height: .875rem; transition: transform .2s; }
.nav__item:hover .nav__dropdown-btn svg { transform: rotate(180deg); }

.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  min-width: 12rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: .625rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: .25rem 0;
  flex-direction: column;
}
.nav__item:hover .nav__dropdown { display: flex; }
.nav__dropdown a {
  padding: .5rem 1rem;
  font-size: .875rem;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.nav__dropdown a:hover { background: var(--secondary); color: var(--fg); }
.nav__dropdown a.active { color: var(--primary); font-weight: 500; }

/* Phone CTA */
.header__phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--primary);
  transition: opacity .15s;
}
.header__phone:hover { opacity: .8; }
.header__phone svg { width: 1rem; height: 1rem; }

/* Mobile menu */
.burger {
  display: none;
  background: none; border: none;
  color: var(--muted); padding: .5rem;
}
.burger svg { width: 1.25rem; height: 1.25rem; display: block; }
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem var(--px);
  gap: .25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav__section-label {
  padding: .5rem 0;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a {
  padding: .625rem .75rem;
  font-size: .875rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); }
.mobile-nav__phone {
  margin-top: .75rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 500;
  color: var(--primary);
}
.mobile-nav__phone svg { width: 1rem; height: 1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--primary);
}
.hero__geo {
  position: absolute;
  top: 6rem; right: 0;
  width: 50%; height: 100%;
  pointer-events: none;
}
.hero__geo-sq1 {
  position: absolute; top: 2rem; right: 3rem;
  width: 16rem; height: 16rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transform: rotate(12deg);
  opacity: .3;
}
.hero__geo-sq2 {
  position: absolute; top: 5rem; right: 7rem;
  width: 10rem; height: 10rem;
  border: 1px solid rgba(194,81,15,.2);
  border-radius: 2px;
  transform: rotate(12deg);
  opacity: .5;
}
.hero__geo-sq3 {
  position: absolute; top: 12rem; right: 2rem;
  width: 5rem; height: 5rem;
  background: rgba(194,81,15,.05);
  border-radius: 2px;
  transform: rotate(12deg);
}
.hero__inner { position: relative; padding-block: 6rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(194,81,15,.3);
  border-radius: 100px;
  padding: .25rem .75rem;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}
.hero__title span { color: var(--primary); }
.hero__desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 30rem;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero__stat-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}
.hero__stat-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .125rem;
}

/* ============================================================
   PRODUCTS SECTION / CATALOG
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.5rem;
  transition: box-shadow .25s, border-color .25s;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
  border-color: rgba(194,81,15,.3);
}
.product-card__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: .5rem;
  background: rgba(194,81,15,.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: background .2s;
}
.product-card:hover .product-card__icon { background: rgba(194,81,15,.18); }
.product-card__icon svg { width: 1.75rem; height: 1.75rem; }
.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.product-card__desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}
.product-card__features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.product-card__feature {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem;
}
.product-card__feature::before {
  content: '';
  width: .375rem; height: .375rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.product-card__link {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .875rem; font-weight: 500;
  color: var(--primary);
  transition: gap .2s;
}
.product-card__link:hover { gap: .625rem; }
.product-card__link svg { width: .875rem; height: .875rem; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.about-visual {
  position: relative;
  width: min(18rem, 100%);
  height: 18rem;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.about-visual__sq1 {
  position: absolute; inset: 0;
  border: 2px solid var(--border);
  border-radius: 2px;
  transform: rotate(6deg);
  opacity: .4;
}
.about-visual__sq2 {
  position: absolute; inset: 1rem;
  border: 2px solid rgba(194,81,15,.3);
  border-radius: 2px;
  transform: rotate(3deg);
}
.about-visual__sq3 {
  position: absolute; inset: 2rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.about-visual__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-align: center;
  padding: 1.5rem;
}
.about-visual__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
}
.about-visual__label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-visual__divider { width: 2rem; height: 1px; background: rgba(194,81,15,.4); margin: .25rem 0; }
.about-visual__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg);
}
.about-visual__city { font-size: .75rem; color: var(--muted); }

.about-text { display: flex; flex-direction: column; gap: 1.5rem; }
.about-text p { font-size: 1rem; color: var(--muted); line-height: 1.75; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: .5rem; }
.about-stat {
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
}
.about-stat__val {
  font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--fg);
}
.about-stat__label { font-size: .75rem; color: var(--muted); margin-top: .125rem; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  border: 1px solid rgba(255,255,255,.1);
}
.adv-card {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
}
.adv-card:hover { background: rgba(255,255,255,.04); }
.adv-card__icon {
  width: 3rem; height: 3rem;
  border-radius: .5rem;
  background: rgba(194,81,15,.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.adv-card__icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.adv-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
}
.adv-card__desc { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.65; }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: .75rem; }
.contact-item__icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: .5rem;
  background: rgba(194,81,15,.1);
  display: flex; align-items: center; justify-content: center;
  margin-top: .125rem;
}
.contact-item__icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.contact-item__label { font-size: .75rem; color: var(--muted); margin-bottom: .125rem; }
.contact-item__val { font-size: .875rem; font-weight: 500; color: var(--fg); }
.contact-item__val a { color: var(--fg); transition: color .15s; }
.contact-item__val a:hover { color: var(--primary); }

.address-card {
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--secondary);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
  margin-top: 2rem;
}
.address-card__label {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.address-card__addr {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  line-height: 1.4;
}
.address-card__hours { font-size: .875rem; color: var(--muted); display: flex; flex-direction: column; gap: .25rem; }
.address-card__map {
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .875rem; font-weight: 500;
  color: var(--primary);
  transition: opacity .15s;
}
.address-card__map:hover { opacity: .75; }

/* Form */
.contact-form {
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--card);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-form__title { font-size: 1.25rem; }
.contact-form__hint { font-size: .875rem; color: var(--muted); margin-top: -.75rem; }
.field { display: flex; flex-direction: column; gap: .375rem; }
.field label {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  border: 1px solid var(--border);
  border-radius: .375rem;
  padding: .625rem 1rem;
  font-size: .875rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194,81,15,.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { resize: none; }
.form-note {
  font-size: .75rem; color: var(--muted); text-align: center;
}
.form-success {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center; padding: 2.5rem 1rem;
}
.form-success__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: rgba(194,81,15,.12);
  display: flex; align-items: center; justify-content: center;
}
.form-success__icon svg { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.form-success__title { font-family: var(--font-heading); font-size: 1.25rem; }
.form-success__text { font-size: .875rem; color: var(--muted); max-width: 20rem; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-hero {
  padding-top: calc(4rem + 3rem);
  padding-bottom: 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { opacity: .5; }
.product-hero__eyebrow { margin-bottom: .75rem; }
.product-hero__title { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: .75rem; }
.product-hero__tagline { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }

.product-body { padding-block: 5rem; }
.product-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.product-desc { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; }
.product-features { margin-bottom: 2.5rem; }
.product-features h3,
.product-specs h3,
.product-apps h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.feature-list { display: flex; flex-direction: column; gap: .625rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: .625rem;
  font-size: .9rem;
}
.feature-list li::before {
  content: '';
  width: .375rem; height: .375rem; border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0; margin-top: .45rem;
}

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: .625rem .25rem; font-size: .875rem; }
.specs-table td:first-child { color: var(--muted); width: 55%; }
.specs-table td:last-child { font-weight: 500; }

.app-grid { display: flex; flex-wrap: wrap; gap: .625rem; }
.app-tag {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .375rem .875rem;
  font-size: .8rem;
  color: var(--fg);
}

.product-cta-card {
  position: sticky; top: 5.5rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1.75rem;
  background: var(--secondary);
  display: flex; flex-direction: column; gap: 1.25rem;
}
.product-cta-card h3 { font-family: var(--font-heading); font-size: 1.2rem; }
.product-cta-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.product-cta-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  padding-top: calc(4rem + 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.page-hero__title { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: .75rem; }
.page-hero__desc { font-size: 1rem; color: var(--muted); max-width: 40rem; line-height: 1.75; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--fg);
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand__logo { display: flex; align-items: center; gap: .625rem; }
.footer-brand__logo .logo__icon { background: var(--primary); }
.footer-brand__desc { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.65; max-width: 16rem; }
.footer-brand__phone { font-size: .875rem; font-weight: 500; color: var(--primary); transition: opacity .15s; }
.footer-brand__phone:hover { opacity: .8; }

.footer-col__title {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-col .footer__addr {
  font-size: .875rem; color: rgba(255,255,255,.6);
  display: flex; align-items: flex-start; gap: .625rem;
}
.footer-col .footer__addr svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; margin-top: .15rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem;
  font-size: .75rem; color: rgba(255,255,255,.3);
}
.footer-bottom a:hover { color: rgba(255,255,255,.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .burger { display: none !important; }
  .header__phone { display: flex !important; }

  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-visual { order: 1; }
  .about-text { order: 2; }

  .contacts-grid { grid-template-columns: 2fr 3fr; }
  .product-layout { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: block; }
  .product-cta-card { position: static; }
}
