/* ===============================
   БАЗА / ТЕМИ
   =============================== */
:root{
  --bg: #f5f9ff;        /* світлий фон сторінки */
  --panel: #ffffff;     /* фон карток/панелей */
  --ink: #0f172a;       /* основний текст */
  --ink-2: #334155;     /* вторинний текст */
  --muted: #64748b;     /* приглушений текст */
  --line: #e5e7eb;      /* лінії/бордери */
  --brand: #0ea5e9;     /* акцент (кнопки) */
  --brand-ink: #083344; /* контрастний текст на акценті */
  --ring: rgba(14,165,233,.35);  /* підсвітка фокусу */
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-1: 0 10px 30px rgba(2, 8, 23, .06);
  --shadow-2: 0 18px 50px rgba(2, 8, 23, .08);
}

/* ТЕМНА ТЕМА */
html[data-theme="dark"]{
  --bg: #0b1220;
  --panel: #0f172a;
  --ink: #e5e7eb;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --line: #1f2937;
  --brand: #38bdf8;     /* трохи світліший акцент у темній */
  --brand-ink: #05202a;
  --shadow-1: none;
  --shadow-2: none;
}

/* під темну тему — картки/вітальний блок уже автоматично підхоплять змінні */


@media (prefers-color-scheme: dark){
  /* за бажанням можна активувати легкий “темніший” фон */
  /* :root{ --bg:#0b1220; --panel:#0f172a; --ink:#e5e7eb; --ink-2:#cbd5e1; --muted:#94a3b8; --line:#1f2937; --shadow-1:none; --shadow-2:none; } */
}

/* ===============================
   НОРМАЛІЗАЦІЯ
   =============================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.9)), var(--bg);
  min-height: 100dvh;
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* ===============================
   КОНТЕЙНЕРИ / СЕКЦІЇ
   =============================== */
main{ padding: 16px 0 40px; }

.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section{
  padding: 28px 0;
}
.section--dark{
  background: transparent;
}

.section__title{
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  letter-spacing: .2px;
  margin: 0 0 18px;
}
.section__title em{
  font-style: normal;
  font-weight: 900;
  color: var(--brand);
}

/* ===============================
   ВІТАЛЬНИЙ БЛОК
   (section.welcome-block у <main>)
   =============================== */
.welcome-block{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  margin: 16px auto 22px;
  padding: 28px 24px;
  max-width: 1200px;
}

.header-inner{
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 20px;
}

.header-logo {
  width: 120px;              /* фіксована ширина */
  height: 120px;             /* фіксована висота */
  object-fit: contain;       /* зберігає пропорції всередині квадрату */
  object-position: center;
  display: block;
  margin-inline: auto;
  background-color: #fff;    /* опціонально — фон для логотипів різного формату */
  border-radius: 12px;       /* для візуальної гармонії */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.welcome-block h2{
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.25;
  text-align: center;
}

.welcome-block h3{
  margin: 0 0 10px;
  color: var(--ink-2);
  font-weight: 700;
  text-align: center;
}

.hero__subtitle{
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  font-size: clamp(.95rem, .9rem + .2vw, 1.05rem);
}

/* Адаптив для вітального блоку */
@media (max-width: 900px){
  .header-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .header-left, .header-right{ order: -1; }
}
@media (max-width: 768px) {
  .header-logo {
    width: 90px;
    height: 90px;
  }
}

/* ===============================
   ГРИД КАРТОК (3 колонки)
   =============================== */
.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.col-4{ grid-column: span 4; }

@media (max-width: 1024px){
  .col-4{ grid-column: span 6; }
}
@media (max-width: 640px){
  .col-4{ grid-column: span 12; }
}

/* ===============================
   КАРТКИ
   =============================== */
.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 18px 16px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.card p{
  margin: 0 0 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ===============================
   КНОПКИ
   =============================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  text-decoration: none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn--primary:hover{
  background: color-mix(in srgb, var(--brand), #000 10%);
  border-color: color-mix(in srgb, var(--brand), #000 10%);
  box-shadow: 0 8px 20px var(--ring);
}
.btn--ghost{
  background: transparent;
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.btn--ghost:hover{
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border-color: var(--brand);
}

/* Група дій у картці */
.card-actions{ display: flex; gap: 10px; flex-wrap: wrap; }

/* ===============================
   ФУТЕР
   =============================== */
footer{
  margin-top: 28px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}
footer .banner{
  margin: 12px auto 0;
  max-width: 320px;
  border-radius: 8px;
}

/* ===============================
   АНІМАЦІЇ / PREFERS-REDUCED-MOTION
   =============================== */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ===============================
   ПОВНА ДЕАКТИВАЦІЯ МОБІЛЬНОГО МЕНЮ
   (згідно з вашим запитом)
   =============================== */
.mobile-nav{ display: none !important; }
.burger{ display: none !important; }

/* ===============================
   ДРІБНІ ПРИБРАЛИ / ВИРІВНЯЛИ
   =============================== */
main .section--dark .wrap{ padding-top: 4px; }
