/* ==========================================================================
   IZODOM — стили сайта
   Дизайн: акцент #599F4F, текст #2E2E2D, шрифт Rubik
   ========================================================================== */

:root {
  --green: #599F4F;
  --green-dark: #4a8642;
  --green-light: #eef5ec;
  --ink: #2e2e2d;
  --gray: #717171;
  --line: #e5e5e5;
  --bg-soft: #f5f6f4;
  --dark: #2f3a2c;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.07);
  --maxw: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Rubik", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; color: var(--green); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: .8rem;
}
.lead { font-size: 1.12rem; color: var(--gray); max-width: 60ch; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .92rem; letter-spacing: .04em;
  text-transform: uppercase; padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; transition: .2s ease; white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { width: 40px; height: 40px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-weight: 700; font-size: 1.28rem; letter-spacing: .04em; color: var(--ink); }
.logo-text i { font-style: normal; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--green); margin-top: 3px; font-weight: 600; }
.logo--light .logo-text b { color: #fff; }
.logo--light .logo-text i { color: var(--green); }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; justify-content: center; }
.main-nav a {
  padding: 8px 11px; font-size: .93rem; font-weight: 500; border-radius: 8px; color: var(--ink);
  transition: .15s; white-space: nowrap;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* language switcher */
.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .85rem;
}
.lang-current .flag { width: 22px; height: 16px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.lang-caret { transition: .2s; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-sm); min-width: 170px; padding: 6px; display: none; overflow: hidden;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .9rem; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-align: left;
}
.lang-menu button:hover { background: var(--green-light); }
.lang-menu button.active { color: var(--green); font-weight: 600; }
.lang-menu .flag { width: 22px; height: 16px; border-radius: 3px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: clamp(40px,6vw,80px) 0; }
.hero-copy h1 { margin-bottom: .4em; }
.hero-copy .lead { margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex;
  align-items: flex-end; padding: 26px; color: #fff;
}
.hero-slide.active { opacity: 1; }
.hero-slide-card {
  background: rgba(255,255,255,.94); color: var(--ink); border-radius: 14px; padding: 20px 22px;
  max-width: 320px; box-shadow: var(--shadow-sm);
}
.hero-slide-num { font-weight: 300; color: #bcbcbc; letter-spacing: .3em; font-size: 1.1rem; margin-bottom: .4rem; }
.hero-slide-num b { color: var(--ink); font-weight: 700; }
.hero-slide-card h3 { margin-bottom: .3em; }
.hero-slide-card p { margin: 0; font-size: .95rem; color: var(--gray); }
.hero-dots { position: absolute; bottom: 18px; left: 26px; display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* ---------- Split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px;
  transition: .2s;
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.benefit-icon { width: 54px; height: 54px; margin-bottom: 18px; color: var(--green); }
.benefit h3 { font-size: 1.15rem; }
.benefit p { color: var(--gray); font-size: .95rem; margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stat b { display: block; font-size: clamp(2rem,4vw,2.8rem); font-weight: 700; color: var(--green); }
.stat span { color: var(--gray); font-size: .95rem; }

/* ---------- Cards / catalog ---------- */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16/10; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--gray); font-size: .95rem; flex: 1; }
.card-link { color: var(--green); font-weight: 600; font-size: .9rem; margin-top: 10px; display: inline-flex; gap: 6px; }
.card-tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); font-weight: 600; margin-bottom: 6px; }

/* projects grid */
.projects { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.project { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); background:#fff; }
.project-media { aspect-ratio: 4/3; }
.project-info { padding: 18px 20px 20px; }
.project-info h3 { font-size: 1.2rem; margin-bottom: .3em; }
.project-specs { display: flex; gap: 18px; color: var(--gray); font-size: .9rem; flex-wrap: wrap; margin-top: 6px; }
.project-specs span b { color: var(--ink); }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; }
.testi-track { display: flex; gap: 24px; overflow: hidden; }
.testi {
  min-width: calc(33.333% - 16px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.testi p { font-style: italic; color: var(--ink); }
.testi-author { margin-top: auto; padding-top: 14px; }
.testi-author b { display: block; }
.testi-author span { color: var(--gray); font-size: .88rem; }
.testi-stars { color: #f5a623; margin-bottom: 12px; letter-spacing: 2px; }
.slider-nav { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.slider-nav button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 1.2rem; color: var(--ink); transition: .15s; display: grid; place-items: center;
}
.slider-nav button:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark); color: #fff; border-radius: var(--radius); padding: clamp(36px,5vw,60px); text-align:center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 0 auto 1.6rem; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.calc-form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; }
.field .range-val { color: var(--green); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.seg { display: flex; gap: 10px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 90px; padding: 12px; border: 1px solid var(--line); background:#fff; border-radius: 10px;
  cursor: pointer; font: inherit; font-size: .9rem; transition: .15s;
}
.seg button.active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.calc-result { background: var(--dark); color:#fff; border-radius: var(--radius); padding: 32px; position: sticky; top: 96px; }
.calc-result h3 { color:#fff; }
.calc-row { display:flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-row:last-of-type { border-bottom: 0; }
.calc-row span { color: rgba(255,255,255,.75); }
.calc-total { font-size: 2rem; font-weight: 700; color: var(--green); }
.calc-note { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
input, textarea, select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  background:#fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--gray); }
.form-msg { padding: 14px 16px; border-radius: 10px; background: var(--green-light); color: var(--green-dark); font-weight: 500; margin-top: 8px; display: none; }
.form-msg.show { display: block; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--green-light); padding: clamp(48px,7vw,96px) 0 clamp(40px,6vw,72px); }
.page-hero .eyebrow { color: var(--green-dark); }
.breadcrumbs { color: var(--gray); font-size: .88rem; margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--green); }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { display:flex; gap: 14px; margin-bottom: 22px; }
.contact-item svg { width: 26px; height: 26px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.contact-item b { display:block; }
.contact-item span, .contact-item a { color: var(--gray); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; color: rgba(255,255,255,.72); font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-brand .logo span { color:#fff; }
.footer-brand p { font-size: .92rem; margin-top: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.footer-social a:hover { background: var(--green); }
.footer-social svg { width: 18px; height: 18px; }
.footer-newsletter input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color:#fff; margin-bottom: 10px; }
.footer-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom a:hover { color:#fff; }

/* floating contact button */
.float-contact {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color:#fff; display: grid; place-items:center; box-shadow: var(--shadow);
  transition: .2s;
}
.float-contact:hover { background: var(--green); transform: scale(1.06); }
.float-contact svg { width: 24px; height: 24px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Video ---------- */
.video-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background:#000; }
.video-wrap video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.video-poster {
  position: absolute; inset: 0; background-size: cover; background-position: center; cursor: pointer;
  display: grid; place-items: center; transition: .3s;
}
.video-poster::after { content:""; position:absolute; inset:0; background: rgba(0,0,0,.28); }
.video-play {
  position: relative; z-index: 2; width: 84px; height: 84px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: .2s;
}
.video-poster:hover .video-play { transform: scale(1.08); }
.video-play svg { width: 32px; height: 32px; margin-left: 4px; color:#fff; }

/* ---------- Product cards with specs ---------- */
.prod-media { aspect-ratio: 4/3; background: var(--bg-soft); display:grid; place-items:center; padding: 18px; }
.prod-media img { max-height: 200px; width: auto; object-fit: contain; }
.spec-list { list-style: none; padding: 0; margin: 12px 0 0; }
.spec-list li { display:flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li span { color: var(--gray); }
.spec-list li b { color: var(--ink); }
.badge { display:inline-block; background: var(--green-light); color: var(--green-dark); font-weight: 600; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }

/* ---------- Applications ---------- */
.apps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.app { display:flex; gap: 14px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 22px; }
.app svg { width: 30px; height: 30px; color: var(--green); flex-shrink:0; }
.app h3 { font-size: 1.05rem; margin-bottom: .3em; }
.app p { color: var(--gray); font-size: .9rem; margin: 0; }

/* ---------- Steps (partnership) ---------- */
.steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.step { text-align:center; position: relative; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color:#fff; font-weight:700; font-size:1.2rem; display:grid; place-items:center; margin: 0 auto 14px; }
.step h3 { font-size: 1rem; }
.step p { color: var(--gray); font-size: .86rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .calc, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .benefits { grid-template-columns: repeat(2,1fr); }
  .cards, .projects { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi { min-width: calc(50% - 12px); }
  .form-grid { grid-template-columns: 1fr; }
  .apps { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1024px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; justify-content: flex-start; flex: none; padding: 12px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: .3s; gap: 2px; max-height: calc(100vh - var(--header-h)); overflow:auto;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 14px; border-radius: 8px; }
  .main-nav a:hover { background: var(--green-light); }
  .nav-toggle { display: block; }
  .header-cta-desktop { display: none; }
}
@media (max-width: 640px) {
  .benefits, .cards, .projects, .stats, .footer-grid, .apps, .steps { grid-template-columns: 1fr; }
  .testi { min-width: 100%; }
  .hero-visual { min-height: 320px; }
  .hero-slide-card { max-width: 100%; }
}
