/* ГРАНЬ ЭЛЕКТРОННЫЕ КОМПОНЕНТЫ — фирменные стили
   Палитра бренда: графитовый #1F2937, кирпично-красный #E23D28, тёплый светлый #F2F0EA
   Шрифт заголовков и логотипа: Exo 2 Bold */

:root {
  --graphite: #1F2937;
  --graphite-deep: #161E29;
  --graphite-soft: #2C3A4C;
  --brick: #E23D28;
  --brick-dark: #C22F1C;
  --warm: #F2F0EA;
  --warm-card: #FFFFFF;
  --muted: #5C6675;
  --line: #DDD8CE;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 41, 55, .08);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--warm);
  color: var(--graphite);
  font-family: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.18; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 4.6vw, 58px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 14px;
}

/* ---------- Шапка ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--graphite);
  border-bottom: 3px solid var(--brick);
}
header.site .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 84px;
}
.logo { display: inline-flex; flex-direction: column; gap: 4px; color: #fff; line-height: 1; }
.logo:hover { color: #fff; }
/* Фирменный логотип — файл из брендбука (/opt/brands/gran-ek/logo), не перерисовывается */
.logo img { display: block; height: 54px; width: auto; }
footer.site .logo img { height: 62px; }
.logo .mark {
  font-family: "Exo 2", sans-serif; font-weight: 700;
  font-size: 27px; letter-spacing: .05em; color: #fff; white-space: nowrap;
}
.logo .mark .dot { color: var(--brick); margin: 0 1px; }
.logo .mark .ek { color: var(--brick); }
.logo .mark em { font-style: normal; color: var(--brick); }
.logo .sub {
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-weight: 600; white-space: nowrap;
}
@media (max-width: 1240px) { .logo .sub { display: none; } }
nav.main { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav.main a {
  color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 600;
  padding: 8px 11px; border-radius: 9px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .16s, color .16s;
}
nav.main a svg { width: 19px; height: 19px; flex: none; opacity: .85; }
nav.main a:hover { color: #fff; background: rgba(255,255,255,.08); }
nav.main a:hover svg { opacity: 1; }
nav.main a.active { color: #fff; background: rgba(226,61,40,.16); }
nav.main a.active svg { opacity: 1; color: var(--brick); }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 10px;
  font-weight: 700; font-size: 16px; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: .18s;
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.07); }
.btn-outline { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn-outline:hover { background: var(--graphite); color: #fff; }
header.site .btn { padding: 11px 20px; font-size: 15px; }
.burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Герой ---------- */
.hero {
  background: linear-gradient(150deg, var(--graphite) 0%, var(--graphite-deep) 100%);
  color: #fff; padding: 84px 0 76px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,61,40,.22), transparent 68%);
}
.hero .wrap { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brick); }
.hero p.lead { font-size: 20px; color: rgba(255,255,255,.82); max-width: 720px; margin-bottom: 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Секции ---------- */
section { padding: 74px 0; }
section.alt { background: #fff; }
section.dark { background: var(--graphite); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: rgba(255,255,255,.78); }
.section-head { max-width: 760px; margin-bottom: 44px; }

.grid { display: grid; gap: 22px; }
.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(--warm-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.card ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.card ul li { margin-bottom: 6px; }
.card .more { margin-top: auto; font-weight: 700; font-size: 15px; }
.card .num {
  font-weight: 700; font-size: 14px; color: var(--brick);
  letter-spacing: .12em; margin-bottom: 12px;
}

.stat { text-align: left; }
.stat .big { font-size: 40px; font-weight: 700; color: var(--brick); line-height: 1; margin-bottom: 8px; }
.stat .cap { color: rgba(255,255,255,.72); font-size: 15.5px; }

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(5, 1fr); }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-weight: 700; font-size: 22px; color: var(--brick);
}
.step::after {
  content: ""; position: absolute; top: 16px; left: 46px; right: 0; height: 1px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step h4 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 15px; font-weight: 600; color: var(--graphite);
}
section.dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }

.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 17px; }
.faq details[open] summary { color: var(--brick); margin-bottom: 10px; }
.faq p { color: var(--muted); margin: 0; font-size: 16px; }

/* ---------- Форма ---------- */
.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 16px; background: var(--warm); color: var(--graphite);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brick); outline-offset: -1px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Первый шаг, снятие риска, ограничения ---------- */
.hero-note {
  font-size: 15px; color: rgba(255,255,255,.62);
  margin: 18px 0 0; max-width: 620px;
}

.offer {
  background: linear-gradient(150deg, var(--graphite) 0%, var(--graphite-deep) 100%);
  color: #fff; border-radius: var(--radius); padding: 28px 32px;
}
.offer h3 { color: #fff; margin-bottom: 10px; }
.offer p { color: rgba(255,255,255,.8); margin-bottom: 12px; }
.offer .term {
  display: inline-block; background: rgba(226,61,40,.18);
  border: 1px solid rgba(226,61,40,.5); border-radius: 999px;
  padding: 7px 16px; font-weight: 600; font-size: 14.5px;
}

.risk { list-style: none; padding: 0; margin: 20px 0 0; }
.risk li {
  position: relative; padding-left: 32px; margin-bottom: 12px;
  font-size: 16px; color: var(--muted);
}
.risk li strong { color: var(--graphite); }
.risk li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 18px; height: 10px;
  border-left: 3px solid var(--brick); border-bottom: 3px solid var(--brick);
  transform: rotate(-45deg);
}
.risk.light li { color: rgba(255,255,255,.78); }
.risk.light li strong { color: #fff; }

/* ---------- Прочее ---------- */
.note {
  background: #fff; border-left: 4px solid var(--brick);
  padding: 18px 22px; border-radius: 0 12px 12px 0; color: var(--muted); font-size: 15.5px;
}
.breadcrumbs { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumbs a { color: rgba(255,255,255,.8); }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: 16px; }
.spec-table th { background: var(--graphite); color: #fff; font-weight: 700; font-size: 15px; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { font-weight: 600; width: 38%; }
.spec-table td { color: var(--muted); }

/* ---------- Подвал ---------- */
footer.site { background: var(--graphite-deep); color: rgba(255,255,255,.7); padding: 54px 0 28px; font-size: 15.5px; }
footer.site h4 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
footer.site a { color: rgba(255,255,255,.78); }
footer.site a:hover { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 9px; }
footer.site .bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px;
}
.draft-note { color: rgba(255,255,255,.42); font-size: 13px; margin-top: 10px; }

@media (max-width: 980px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  footer.site .cols { grid-template-columns: repeat(2, 1fr); }
  nav.main { display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--graphite); flex-direction: column; gap: 0; padding: 12px 24px 20px; align-items: flex-start; }
  nav.main.open { display: flex; }
  nav.main a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .burger { display: block; }
  header.site .btn { display: none; }
}
@media (max-width: 620px) {
  .logo img { height: 42px; }
  footer.site .logo img { height: 52px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; }
  .photo-frame img, .photo-frame.small img, .photo-frame.wide img { height: 260px; }
  section { padding: 54px 0; }
}

/* ---------- Иконки и иллюстрации ---------- */
.card .ico {
  width: 52px; height: 52px; margin-bottom: 18px; flex: none;
  color: var(--brick);
}
.card .ico svg { width: 100%; height: 100%; }

.hero-wide .wrap { max-width: var(--maxw); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; display: block; }
.photo-frame {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--graphite-soft);
  box-shadow: 0 24px 56px rgba(8,12,19,.42);
}
.photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(22,30,41,.12), rgba(226,61,40,.18));
  pointer-events: none;
}
.photo-frame img {
  width: 100%; height: 420px; object-fit: cover; display: block;
  filter: saturate(.95) contrast(1.06);
}
.photo-frame.small img { height: 360px; }
.photo-frame.wide img { height: 340px; }
.photo-caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.photo-caption span {
  background: rgba(255,255,255,.92); color: var(--graphite);
  border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(8,12,19,.18);
}
.photo-caption span.accent { background: var(--brick); color: #fff; }

.page-art { margin-top: 34px; max-width: 760px; }
.page-art img { width: 100%; height: auto; display: block; }

.photo-note { color: rgba(255,255,255,.52); font-size: 12.5px; margin-top: 12px; text-align: center; }

.feature { display: grid; grid-template-columns: 88px 1fr; gap: 22px; align-items: start; }
.feature .ico { width: 88px; height: 88px; color: var(--brick); }
.feature .ico svg { width: 100%; height: 100%; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }

.icon-row { display: flex; flex-wrap: wrap; gap: 14px; }
.icon-row .item {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
  font-weight: 600; font-size: 15.5px;
}
.icon-row .item svg { width: 26px; height: 26px; color: var(--brick); flex: none; }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { max-width: 560px; }
  .photo-frame img { height: 340px; }
}
@media (max-width: 880px) {
  .feature { grid-template-columns: 60px 1fr; gap: 16px; }
  .feature .ico { width: 60px; height: 60px; }
}
