/* ГИКЕЛИОН — базовые стили сайта */

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

:root {
  --cream: #f5f3ec;
  --cream-alt: #eef1e2;
  --ink: #14150f;
  --ink-soft: #3d3e35;
  --gray: #6b6b62;
  --line: #ddd9cc;
  --olive: #6f7d3d;
  --olive-dark: #545f2f;
  --olive-light: #dfe6c9;
  --white: #ffffff;
  --danger: #a6392c;
  --radius: 4px;
  --container: 1180px;
  --shadow: 0 10px 30px rgba(20, 21, 15, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); text-transform: uppercase; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section--tight { padding: 48px 0; }
.section--alt { background: var(--cream-alt); }
.section--dark { background: var(--ink); color: var(--cream); border-bottom: none; }
.section--dark p { color: #c7c9bb; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--olive { background: var(--olive); color: var(--white); border-bottom: none; }
.section--olive p { color: rgba(255,255,255,0.85); }
.section--olive h2 { color: var(--white); }
.section:last-of-type { border-bottom: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 14px;
}

.section--dark .eyebrow, .section--olive .eyebrow { color: var(--olive-light); }

.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  background: var(--olive);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 3px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.section-head h2 { margin: 0; }

.lede {
  font-size: 1.1rem;
  max-width: 720px;
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn--primary {
  background: var(--olive);
  color: var(--white);
}
.btn--primary:hover { background: var(--olive-dark); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); }

.section--dark .btn--ghost, .section--olive .btn--ghost {
  border-color: var(--white);
  color: var(--white);
}
.section--dark .btn--ghost:hover, .section--olive .btn--ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn--block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  max-width: 1360px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  flex: none;
}
.brand__mark {
  height: 42px;
  width: auto;
}
.brand__name {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: none;
}

.main-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.is-active {
  color: var(--olive-dark);
  border-color: var(--olive);
}

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: 56px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero */
.hero {
  padding: 56px 0 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(20,21,15,0.85), transparent);
  color: var(--white);
  padding: 20px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero h1 { margin-bottom: 18px; }
.hero__sub {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border-left: 4px solid var(--olive);
  padding-left: 16px;
  margin-bottom: 26px;
}

.inline-link {
  color: var(--olive-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--olive);
}
.inline-link:hover { color: var(--ink); }

/* Page hero (inner pages) */
.page-hero {
  padding: 54px 0 40px;
  text-align: left;
}
.page-hero .eyebrow { margin-bottom: 10px; }
.page-hero .lede { margin-top: 6px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-card__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  background: var(--olive-light);
  color: var(--olive-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { margin: 0; font-size: 0.92rem; }

/* Process steps */
.process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}
.process__step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.process__step--mid {
  background: var(--olive-light);
  border-color: var(--olive);
}
.process__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--olive);
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0 6px;
}
.process__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: 8px;
}
.process__step h3 { text-transform: uppercase; margin-bottom: 8px; }
.process__step p { margin: 0; font-size: 0.92rem; }

/* Checklist */
.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 30px;
}
.checklist__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checklist__item .plus {
  flex: none;
  color: var(--olive);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 3px;
}
.checklist__item h4 { margin: 0 0 4px; font-size: 0.98rem; text-transform: none; }
.checklist__item p { margin: 0; font-size: 0.9rem; }

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat-card__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.stat-card__value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
}

/* Comparison photos */
.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.compare figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.compare img { width: 100%; height: 420px; object-fit: cover; }
.compare figcaption {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.compare figcaption.is-bad { background: var(--danger); }
.compare figcaption.is-good { background: var(--olive); }

/* Video */
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame video {
  width: 100%;
  max-height: 640px;
  display: block;
}

/* Result banner */
.result-banner {
  background: var(--olive);
  color: var(--white);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-top: 20px;
}
.result-banner h3 { color: var(--white); margin-bottom: 6px; text-transform: uppercase; }
.result-banner p { color: rgba(255,255,255,0.9); margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}
caption {
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--olive-dark);
  margin-bottom: 10px;
}
th, td {
  text-align: left;
  padding: 13px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
tbody tr:nth-child(even) { background: var(--cream-alt); }

.compare-table th, .compare-table td { text-align: left; }
.compare-table .col-bad { color: var(--danger); font-weight: 700; }
.compare-table .col-good { color: var(--olive-dark); font-weight: 700; }

/* Industries */

/* Compact photo tile — used on homepage "Где применяется" */
.industry-tile {
  position: relative;
  display: block;
  min-height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  isolation: isolate;
}
.industry-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,21,15,0.05) 0%, rgba(20,21,15,0.78) 100%);
  z-index: 0;
  transition: background 0.2s ease;
}
.industry-tile:hover::before { background: linear-gradient(180deg, rgba(20,21,15,0.15) 0%, rgba(111,125,61,0.85) 100%); }
.industry-tile__body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}
.industry-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: rgba(245,243,236,0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.industry-tile__icon svg { width: 20px; height: 20px; }
.industry-tile h3 { color: var(--white); margin-bottom: 2px; font-size: 1.05rem; }
.industry-tile p { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.85rem; }

/* Full card — used on applications.html overview grid */
.industry-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}
.industry-card__photo {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.industry-card__icon {
  position: absolute;
  left: 16px;
  bottom: -20px;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--olive-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.industry-card__icon svg { width: 22px; height: 22px; }
.industry-card__body { padding: 32px 22px 24px; }
.industry-card h3 { margin-bottom: 6px; }
.industry-card p { margin: 0; font-size: 0.88rem; }
.industry-card .more { display:inline-block; margin-top:14px; font-size:0.82rem; font-weight:700; color:var(--olive-dark); text-transform:uppercase; letter-spacing:.03em; }
.industry-card:hover .more { color: var(--ink); }

/* Testimonial/quote-style callout */
.callout {
  border-left: 4px solid var(--olive);
  background: var(--cream-alt);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin: 0; }

/* CTA banner */
.cta-banner {
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0 0 6px; color: var(--white); }
.cta-banner p { margin: 0; color: #c7c9bb; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--gray);
}
.consent input { margin-top: 4px; }
.form-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 14px;
}

/* Contact info list */
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 3px;
  background: var(--olive-light);
  color: var(--olive-dark);
  display: flex; align-items: center; justify-content: center;
}
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray); margin-bottom: 2px; }
.info-list span, .info-list a { font-size: 1.05rem; font-weight: 700; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c7c9bb;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { color: #a9ab9c; font-size: 0.9rem; max-width: 320px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #8c8e7e;
  flex-wrap: wrap;
  gap: 10px;
}

/* Utilities */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; color: var(--gray); }

/* Responsive */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .checklist { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .process__arrow { transform: rotate(90deg); padding: 6px 0; }
}

@media (max-width: 900px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .section { padding: 52px 0; }
}

/* Mobile nav drawer */
.site-header.is-open .main-nav {
  display: flex;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  background: var(--cream);
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 24px 26px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.main-nav a.nav-cta {
  display: none;
  color: var(--white);
}
.site-header.is-open .main-nav a.nav-cta {
  display: inline-flex;
  margin-top: 6px;
}
.main-nav a.nav-cta:hover {
  color: var(--white);
}

/* Footer legal links */
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--olive-light); }
@media (max-width: 640px) { .footer-legal { align-items: flex-start; text-align: left; } }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Legal page */
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: 1.15rem; margin: 34px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 0.95rem; line-height: 1.75; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 10px 0 16px; }
.legal-body li { margin-bottom: 6px; }
.legal-meta { font-size: 0.85rem; opacity: 0.75; margin-bottom: 28px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 940px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}
.faq-item:hover { border-color: var(--olive); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 26px;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-item summary:hover { color: var(--olive); }
.faq-item summary:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }
.faq-answer a { color: var(--olive); }
@media (max-width: 640px) {
  .faq-item summary { padding: 16px 46px 16px 16px; font-size: 0.95rem; }
  .faq-item summary::after { right: 18px; }
  .faq-answer { padding: 0 16px 18px; }
}
