:root {
  --color-primary: #ff6a1a;
  --color-primary-dark: #e2570f;
  --color-dark: #1c2530;
  --color-dark-2: #263243;
  --color-heading: #1c2530;
  --color-text: #333c47;
  --color-muted: #6b7684;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f6f8;
  --color-surface: #ffffff;
  --color-border: #e4e8ec;
  --header-bg: rgba(255,255,255,.96);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(28, 37, 48, 0.08);
  --container: 1160px;
  --header-h: 78px;
  color-scheme: light;
}

[data-theme="dark"] {
  --color-heading: #f2f5f8;
  --color-text: #c7ced6;
  --color-muted: #8d99a6;
  --color-bg: #12161d;
  --color-bg-soft: #181e27;
  --color-surface: #1c2530;
  --color-border: #2a3444;
  --header-bg: rgba(18,22,29,.92);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--color-bg); }
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, -apple-system, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  transition: background .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 16px; color: var(--color-heading); line-height: 1.25; }
p { margin: 0 0 14px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--color-dark); color: #fff; }
.btn-dark:hover { background: var(--color-dark-2); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.site-header .container { width: 100%; margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; }
.logo-img { height: 62px; display: block; }
.logo-img-dark { display: none; }
[data-theme="dark"] .logo-img-light { display: none; }
[data-theme="dark"] .logo-img-dark { display: block; }
.nav { display: flex; gap: 22px; }
.nav a { font-weight: 600; font-size: 14.5px; color: var(--color-heading); padding: 8px 0; position: relative; }
.nav a:hover, .nav a.active { color: var(--color-primary); }
.header-contacts { display: flex; align-items: center; gap: 18px; }
.header-contacts .phone { font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--color-heading); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--color-heading); border-radius: 2px; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-heading); cursor: pointer; flex: none;
  transition: background .2s ease, border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, rgba(20,26,34,.72), rgba(20,26,34,.82)), url('../img/pict_header.jpg') center/cover no-repeat;
  padding: 110px 0 90px;
}
.hero-inner { max-width: 720px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--color-primary); font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head .eyebrow { color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p { color: var(--color-muted); }

.grid { display: grid; gap: 26px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,106,26,.12); color: var(--color-primary); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.card h3 { font-size: 18px; }
.card p { color: var(--color-muted); font-size: 14.5px; margin-bottom: 0; }

.why-grid { align-items: start; }
.feature-plain { text-align: center; padding: 0 8px; }
.feature-icon { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 22px; display: block; }
[data-theme="dark"] .feature-icon { filter: invert(1); }
.feature-plain h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; line-height: 1.4; }
.feature-plain p { color: var(--color-muted); font-size: 14px; }

.numbered { display: flex; gap: 18px; }
.numbered .num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--color-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.numbered h3 { font-size: 17px; margin-bottom: 6px; }
.numbered p { color: var(--color-muted); font-size: 14.5px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--color-bg-soft); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* Articles */
.article-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28,37,48,.14); }
.article-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--color-bg-soft); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.article-card:hover .thumb img { transform: scale(1.06); }
.article-card .body { padding: 22px; }
.article-card .date { font-size: 13px; color: var(--color-primary); font-weight: 700; margin-bottom: 8px; }
.article-card h3 { font-size: 17px; }
.article-card p { color: var(--color-muted); font-size: 14px; }

/* Order form */
.order-section {
  background: linear-gradient(180deg, rgba(20,26,34,.86), rgba(20,26,34,.9)), url('../img/form_back.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
}
.order-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.order-wrap h2 { color: #fff; }
.order-wrap p { color: rgba(255,255,255,.8); }
.order-perks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.order-perks li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); font-size: 14.5px; }
.order-perks li::before { content: "✓"; color: var(--color-primary); font-weight: 700; }

.order-form { background: var(--color-surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.order-form h3 { color: var(--color-heading); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--color-heading); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-surface);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); }
.form-note { font-size: 12.5px; color: var(--color-muted); margin-top: 10px; text-align: center; }
.form-status { margin-top: 14px; font-size: 14px; font-weight: 600; display: none; padding: 12px 14px; border-radius: 8px; }
.form-status.success { display: block; background: #e8f8ee; color: #1a7a3f; }
.form-status.error { display: block; background: #fdeceb; color: #c62f27; }
.form-status .order-number { font-weight: 800; }
[data-theme="dark"] .form-status.success { background: #16351f; color: #7be3a0; }
[data-theme="dark"] .form-status.error { background: #3a1a17; color: #ff8f86; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 20, 26, .6);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box { background: var(--color-surface); border-radius: var(--radius); max-width: 460px; width: 100%; padding: 32px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--color-muted); line-height: 1; }

/* Page header (inner pages) */
.page-hero {
  background: linear-gradient(180deg, rgba(20,26,34,.78), rgba(20,26,34,.86)), url('../img/pict_header.jpg') center/cover no-repeat;
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb { color: rgba(255,255,255,.7); font-size: 14px; }
.breadcrumb a { color: rgba(255,255,255,.9); }

.prose h2 { font-size: 22px; margin-top: 36px; }
.prose h3 { font-size: 18px; margin-top: 24px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--color-text); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { background: var(--color-bg-soft); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); margin-bottom: 10px; }
.contact-card a, .contact-card p { display: block; font-size: 16px; font-weight: 600; color: var(--color-heading); margin-bottom: 4px; }

/* Footer */
.site-footer { background: var(--color-dark); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 58px; margin-bottom: 14px; display: block; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--color-primary); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 8px; margin-bottom: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px; text-align: center; font-size: 13px; }

.sticky-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.sticky-cta a, .sticky-cta button {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); font-size: 22px; border: none; cursor: pointer;
}
.sticky-cta .wa { background: #25d366; color: #fff; }
.sticky-cta .tg { background: #229ed9; color: #fff; }
.sticky-cta .order-fab { background: var(--color-primary); color: #fff; }

.call-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--color-primary);
  color: #fff;
  align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px;
  font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 -6px 20px rgba(0,0,0,.15);
}
.call-bar svg { width: 20px; height: 20px; flex: none; }

@media (max-width: 600px) {
  .call-bar { display: flex; }
  .sticky-cta { bottom: 78px; }
  body { padding-bottom: 54px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-contacts .phone { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .order-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--color-surface); padding: 20px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow);
  }
}
@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 60px; }
  .section { padding: 56px 0; }

  .header-inner { gap: 10px; }
  .logo-img { height: 42px; }
  .header-contacts { gap: 10px; }
  .header-contacts .btn { display: none; }
  .theme-toggle { width: 34px; height: 34px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .burger { padding: 6px; }
}
