/* ==========================================================
   Геліос Консалтинг — стилі
   Кольори та шрифти змінюються в блоці :root нижче.
   ========================================================== */

:root {
  --bg: #F6F4EE;        /* загальний фон */
  --white: #FFFFFF;
  --dark: #10231C;      /* темно-зелений: текст, темні секції */
  --green: #1E6B4F;     /* акцентний зелений */
  --sun: #F5A524;       /* акцент «сонце» */
  --sun-soft: #FDF1D8;
  --mint: #E1EDE6;
  --text-soft: #46554E; /* другорядний текст */
  --text-on-dark: #B9C6BF;
  --line: #DDD8CB;
  --line-dark: #2E4A3F;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Manrope', system-ui, sans-serif;

  --page-width: 1200px;
  --side: clamp(20px, 4vw, 40px);   /* бічні відступи */
  --section-pad: clamp(56px, 8vw, 96px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

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

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Спільні елементи ---------- */

.container {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--section-pad) var(--side);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.section-head {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.section-head p { color: var(--text-soft); }

.form-buttons {
  display: flex;
  flex-wrap: nowrap;     /* без переносу: завжди в один рядок */
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
}

.btn-sun { background: var(--sun); color: var(--dark); }
.btn-sun:hover { background: #ffb73d; color: var(--dark); }
.btn-outline { border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--bg); }
.btn-dark { background: var(--dark); color: var(--bg); }
.btn-dark:hover { background: var(--green); color: var(--bg); }
.btn-wide {max-width: 480px;}

.btn svg { width: 20px; height: 20px; }

/* Список з галочками */
.checks { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B4F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Шапка ---------- */

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 18px var(--side);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { width: 24px; height: 24px; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 16px;
  font-weight: 500;
}

.main-nav a { padding: 10px 0; }
.main-nav .nav-cta {
  padding: 12px 22px;
  background: var(--dark);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--green); color: var(--bg); }

/* ---------- Головний екран ---------- */

.hero {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--side);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-text {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-lead { font-size: 20px; line-height: 1.55; color: var(--text-soft); max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 15px;
  font-weight: 500;
}
.hero-points li { position: relative; padding-left: 28px; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B4F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") no-repeat center / contain;
}

.hero-picture {
  flex: 1 1 400px;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #CFE5EC;
}
.hero-picture svg { width: 100%; height: auto; }

/* ---------- Послуги ---------- */

.band-white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards { display: flex; flex-wrap: wrap; gap: 24px; }

.card {
  flex: 1 1 320px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card svg { width: 100%; height: auto; }

.card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-body h3 { font-size: 25px; }
.card-body > p { color: var(--text-soft); }

.callout {
  margin-top: 48px;
  background: var(--sun-soft);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.callout-text { flex: 1 1 360px; min-width: 0; }
.callout-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.callout-text p { color: var(--text-soft); }

/* ---------- Одна система ---------- */

.flow { display: flex; flex-wrap: wrap; gap: 24px; }
.flow-item { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.flow-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--dark);
  color: var(--sun);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-icon svg { width: 46px; height: 46px; }

.flow-title { font-family: var(--font-head); font-size: 21px; font-weight: 800; }
.flow-item p { color: var(--text-soft); font-size: 16px; }

/* ---------- Підхід ---------- */

.steps { display: flex; flex-wrap: wrap; gap: 32px 24px; }
.step { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.step-pic { width: 112px; height: 112px; border-radius: 24px; overflow: hidden; }
.step-pic svg { width: 100%; height: 100%; }

.step-num { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: var(--green); }
.step h3 { font-size: 22px; line-height: 1.25; }
.step p { color: var(--text-soft); font-size: 16px; }

/* ---------- Кому допомагаємо ---------- */

.band-dark { background: var(--dark); color: var(--bg); }
.band-dark .eyebrow { color: var(--sun); }

.card-dark {
  flex: 1 1 300px;
  min-width: 0;
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-dark svg { width: 100%; height: auto; }
.card-dark .card-body { gap: 14px; }
.card-dark h3 { font-size: 24px; }
.card-dark p { color: var(--text-on-dark); font-size: 16px; }

/* ---------- Питання ---------- */

.faq { max-width: 900px; margin: 0 auto; padding: var(--section-pad) var(--side); }
.faq .section-head { margin-bottom: 40px; }
.faq-list { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310231C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin: 14px 40px 0 0; color: var(--text-soft); }

/* ---------- Контакти ---------- */

.contact { background: var(--sun); }

.contact-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--section-pad) var(--side);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.contact-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-info h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.015em; }
.contact-info > p { font-size: 19px; max-width: 480px; }
.contact-list { display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.contact-info svg { width: 100%; max-width: 420px; height: auto; margin-top: 8px; }

.form {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--white);
  border-radius: 24px;
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }

.field input, .field select, .field textarea {
  padding: 0 14px;
  border: 1.5px solid #8A958F;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  background: var(--white);
  color: var(--dark);
}
.field input, .field select { height: 48px; }
.field textarea { padding: 12px 14px; resize: vertical; }

.form button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: var(--bg);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.form button:hover { background: var(--green); }

/* ---------- Підвал ---------- */

.site-footer { background: var(--dark); color: var(--text-on-dark); font-size: 15px; }

.footer-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 32px var(--side);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--bg); }

.contact-picture {
  flex: 1 1 420px;
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #CFE5EC;
}
.contact-picture svg,
.contact-picture img {
  width: 100%;
  height: auto;
}

.btn-portal {
  align-self: flex-start;          /* кнопка не розтягується на всю ширину */
  background: var(--dark);
  color: var(--bg);
  padding: 0 32px;
  box-shadow: 0 6px 0 rgba(16, 35, 28, 0.25);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-portal:hover {
  background: var(--green);
  color: var(--bg);
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(16, 35, 28, 0.25);
}
.btn-portal:active {
  transform: translateY(6px);
  box-shadow: none;
}
.center {
  display: flex;
  align-self: stretch;
  width: 100%;
  justify-content: center;
}