/* ===== Design tokens ===== */
:root {
  --orange: #F7941E;
  --gold: #FDB913;
  --blue: #1B4F91;
  --sky: #4FA8DE;
  --ink: #16212e;
  --ink-soft: #4b5b6b;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --border: #e7ebef;

  --grad-sun: linear-gradient(135deg, var(--gold), var(--orange));
  --grad-sky: linear-gradient(135deg, var(--sky), var(--blue));

  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 33, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 33, 46, 0.14);

  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Poppins', var(--font);
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); line-height: 1.2; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-sun);
  color: #fff;
  box-shadow: 0 8px 20px rgba(247, 148, 30, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(247, 148, 30, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; padding: 14px 22px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.logo { flex-shrink: 0; }
.logo img { height: 34px; width: auto; flex-shrink: 0; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.15s; }
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  padding: 72px 0 60px;
  background: radial-gradient(ellipse at top right, #fff6e8 0%, #ffffff 55%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}
.hero h1 span {
  background: var(--grad-sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; gap: 36px; flex-wrap: wrap; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--blue); }
.trust-item span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.sun-glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,185,19,0.35) 0%, rgba(253,185,19,0) 70%);
  filter: blur(4px);
}
.hero-panel { position: relative; width: 100%; max-width: 420px; height: auto; }

/* ===== Stats ===== */
.stats { background: var(--grad-sky); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: #fff; }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.85); }

/* ===== Sections (generic) ===== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); max-width: 620px; font-size: 1.02rem; margin-bottom: 48px; }

/* ===== Service cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}
.icon-home, .icon-battery, .icon-plan { background: var(--grad-sun); }
.icon-biz, .icon-tools, .icon-doc { background: var(--grad-sky); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Warranty ===== */
.warranty-list { display: flex; flex-direction: column; gap: 10px; }
.warranty-list li { color: var(--ink-soft); font-size: 0.93rem; padding-left: 18px; position: relative; }
.warranty-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.warranty-list strong { color: var(--ink); }

.service-block {
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
.service-block h3 { font-size: 1.3rem; margin-bottom: 24px; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-list li { display: flex; gap: 16px; align-items: flex-start; }
.service-list strong { display: block; margin-bottom: 4px; font-family: var(--font-head); }
.service-list p { color: var(--ink-soft); font-size: 0.95rem; }

@media (max-width: 720px) {
  .service-list { grid-template-columns: 1fr; }
}

/* ===== Why us ===== */
.why-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.why-visual { display: flex; justify-content: center; }
.why-badge {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--grad-sun);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.why-badge strong { font-family: var(--font-head); font-size: 3rem; }
.why-badge span { font-size: 0.95rem; text-align: center; padding: 0 30px; }
.why-list { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-sky);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.why-list strong { display: block; margin-bottom: 4px; font-family: var(--font-head); }
.why-list p { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Projects ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-img { height: 190px; position: relative; }
.proj-1 { background: linear-gradient(135deg, #4FA8DE, #1B4F91); }
.proj-2 { background: linear-gradient(135deg, #FDB913, #F7941E); }
.proj-3 { background: linear-gradient(135deg, #1B4F91, #16212e); }
.project-info { padding: 18px 20px; }
.project-info h3 { font-size: 1.02rem; margin-bottom: 4px; }
.project-info p { color: var(--ink-soft); font-size: 0.88rem; }

/* ===== Calculator ===== */
.section-calc { background: linear-gradient(180deg, #fff, #f7f9fb); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.calc-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-box label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }
.calc-box input, .calc-box select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
}
.calc-box input:focus, .calc-box select:focus { outline: none; border-color: var(--orange); }
.calc-box .btn { margin-top: 10px; }
.calc-result { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.calc-result[hidden] { display: none; }
.result-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.result-row span { color: var(--ink-soft); }
.result-row strong { color: var(--blue); font-family: var(--font-head); }

/* ===== About ===== */
.about-grid { display: grid; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; max-width: 760px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.about-values strong { display: block; font-family: var(--font-head); color: var(--blue); margin-bottom: 6px; }
.about-values span { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 500; }
.contact-info-item svg { color: var(--orange); flex-shrink: 0; }
.contact-info-link { color: #229ED9; transition: color 0.15s; }
.contact-info-link svg { color: #229ED9; }
.contact-info-link:hover { color: #1b7fae; }

/* ===== Telegram floating button ===== */
.tg-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #229ED9;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.45);
  z-index: 200;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tg-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(34, 158, 217, 0.55); }

/* ===== Telegram modal ===== */
.tg-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tg-modal[hidden] { display: none; }
.tg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 46, 0.55);
  backdrop-filter: blur(2px);
}
.tg-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: tg-pop 0.18s ease;
}
@keyframes tg-pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.tg-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px;
}
.tg-modal-close:hover { color: var(--ink); }
.tg-modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #229ED9;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.tg-modal-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tg-modal-box p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 20px; }
.tg-modal-qr { display: block; margin: 0 auto 22px; border-radius: 10px; border: 1px solid var(--border); padding: 8px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.98rem;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.form-note { font-size: 0.88rem; color: var(--blue); text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #cfd7df; padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; color: #9aa6b2; max-width: 300px; }
.footer-links h4, .footer-contact h4 { color: #fff; font-family: var(--font-head); font-size: 1rem; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.92rem; color: #9aa6b2; transition: color 0.15s; }
.footer-links a:hover { color: var(--orange); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: #9aa6b2; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; color: #7c8894; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .header-phone span { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-trust { gap: 20px; }
}

@media (max-width: 460px) {
  .header-inner { gap: 10px; }
  .logo img { height: 26px; }
  .header-phone { display: none; }
  .header-actions .btn-primary { padding: 10px 14px; font-size: 0.82rem; }
}

/* ===== Mobile nav (open state) ===== */
.main-nav.open {
  display: flex;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  background: #fff;
  flex-direction: column;
  padding: 20px 24px;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
