/* ====== Reset & Base ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
body {
    font-family: 'Manrope', sans-serif;
    background: #0b1221; /* глубокий сине-графитовый фон */
    color: #e5e7eb;
    line-height: 1.6;
    font-size: 16px;
}

/* Palette (комментарии для ориентира):
   Primary: #6ee7f0 (акцент морской)
   Primary-600: #22d3ee
   Accent: #a78bfa (светлый фіолет)
   Ink: #e5e7eb
   Card: rgba(255,255,255,0.06)
   Stroke: rgba(255,255,255,0.12)
*/

/* Гарантуємо, що [hidden] завжди ховає елемент */
[hidden] { display: none !important; }


.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ====== Header ====== */
.header {
    background: rgba(11,18,33,0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky; top: 0; z-index: 1000;
}
.header__container { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; }
.header__logo { font-size: 1.25rem; font-weight: 700; color: #6ee7f0; letter-spacing: 0.4px; }

.header__menu { list-style: none; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.header__menu-item a {
    text-decoration: none; color: #cfd3db; font-weight: 500; padding: 0.5rem 0.6rem; border-radius: 10px;
    transition: color .25s ease, background-color .25s ease, transform .2s ease;
}
.header__menu-item a:hover { color: #0b1221; background: #6ee7f0; transform: translateY(-1px); }

/* ====== Buttons ====== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1rem; border-radius: 14px; text-decoration: none; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.16);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    will-change: transform;
}
.btn i { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, #22d3ee, #a78bfa); color: #0b1221; border-color: transparent; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(34,211,238,0.25); }
.btn--ghost { background: transparent; color: #e5e7eb; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* ====== Hero ====== */
.hero {
    position: relative;
    isolation: isolate;
    background:
      radial-gradient(800px 400px at 10% 20%, rgba(34,211,238,0.12), transparent 60%),
      radial-gradient(700px 350px at 90% 10%, rgba(167,139,250,0.10), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    padding: 4.5rem 0 3rem;
    overflow: hidden;
}
.hero__container { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero__content { display: grid; gap: 1rem; }

.hero__title {
    font-size: 2.1rem; line-height: 1.1; letter-spacing: 0.2px; font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle { color: #cfd3db; max-width: 58ch; }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 0.4rem; }

.hero__meta { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; color: #aeb4bf; }
.hero__meta-item { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.hero__meta-item i { width: 16px; height: 16px; }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__image {
    width: 100%; max-width: 540px; aspect-ratio: 4/3; object-fit: cover;
    border-radius: 22px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04);
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    transform: translateZ(0);
}
.hero__badge {
    position: absolute; top: -8px; left: 8px;
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #0b1221; border: 1px solid rgba(255,255,255,0.14); color: #cfe9f0;
    padding: 0.4rem 0.6rem; border-radius: 999px; font-size: 0.9rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
    animation: hero-badge-float 4.5s ease-in-out infinite;
}
@keyframes hero-badge-float {
    0%,100%{ transform: translateY(0) }
    50%{ transform: translateY(-6px) }
}
.hero__floating-card {
    position: absolute; bottom: -14px; right: 10px;
    display: grid; grid-auto-flow: column; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(167,139,250,0.18));
    border: 1px solid rgba(255,255,255,0.18); color: #f3f4f6;
    padding: 0.6rem 0.8rem; border-radius: 16px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(34,211,238,0.2);
    transform: translateY(0);
    animation: card-pop 6s ease-in-out infinite;
}
@keyframes card-pop {
    0%,100% { transform: translateY(0) scale(1) }
    50% { transform: translateY(-5px) scale(1.02) }
}
.hero__floating-text { font-size: 0.95rem; max-width: 18ch; }
.hero__badge-text { font-weight: 700; }

/* Particles layer */
.hero__particles { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero__particle {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #6ee7f0, #22d3ee 60%, transparent 70%);
    opacity: 0.0; filter: blur(0.2px);
}

/* ====== Footer ====== */
.footer { background-color: #0a0f1a; color: #e5e7eb; padding: 2rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer__logo { font-size: 1.4rem; font-weight: 800; color: #6ee7f0; }
.footer__title { font-weight: 700; margin-bottom: 0.6rem; color: #cfd3db; }
.footer__menu { list-style: none; }
.footer__menu li { margin-bottom: 0.4rem; }
.footer__menu a { color: #aeb4bf; text-decoration: none; transition: color .2s ease; }
.footer__menu a:hover { color: #6ee7f0; }
.footer__contacts { list-style: none; }
.footer__contacts li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.footer__contacts i { width: 18px; height: 18px; }

/* ====== Responsive ====== */
@media (min-width: 768px) {
    .hero__container { grid-template-columns: 1.05fr 0.95fr; gap: 2.2rem; }
    .hero { padding: 6rem 0 4rem; }
    .hero__title { font-size: 3rem; }
}
@media (min-width: 1024px) {
    .hero__title { font-size: 3.6rem; }
}


/* ====== Stories ====== */
.stories { padding: 3rem 0; }
.stories__header { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; }
.stories__title { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg,#fff,#a5b4fc); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stories__subtitle { color:#cfd3db; }
.stories__grid { display:grid; grid-template-columns: 1fr; gap: 1rem; }
.story-card { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius: 18px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.story-card:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); border-color: rgba(110,231,240,0.35); }
.story-card__image { width:100%; aspect-ratio: 16/9; object-fit: cover; display:block; background: rgba(255,255,255,0.04); }
.story-card__body { padding: 1rem; display:grid; gap:0.6rem; }
.story-card__meta { display:flex; gap:0.6rem; align-items:center; flex-wrap:wrap; }
.story-card__tag { background: rgba(167,139,250,0.18); border:1px solid rgba(167,139,250,0.35); color:#eae9ff; padding:0.2rem 0.5rem; border-radius:999px; font-size:0.85rem; }
.story-card__city { display:inline-flex; align-items:center; gap:0.3rem; color:#aeb4bf; font-size:0.9rem; }
.story-card__title { font-size:1.2rem; font-weight:800; color:#e5e7eb; }
.story-card__excerpt { color:#cfd3db; }
.story-card__footer { display:flex; justify-content:space-between; align-items:center; gap:0.6rem; flex-wrap:wrap; }
.story-card__author { color:#aeb4bf; display:inline-flex; align-items:center; gap:0.35rem; }
.story-card__cta { padding:0.55rem 0.8rem; }

/* ====== Insights ====== */
.insights { padding: 3rem 0; }
.insights__header { display:grid; gap:0.8rem; margin-bottom:1rem; }
.insights__title { font-size:1.8rem; font-weight:800; background: linear-gradient(135deg,#fff,#a5b4fc); -webkit-background-clip:text; background-clip:text; color:transparent; }
.insights__tabs { display:flex; gap:0.5rem; flex-wrap:wrap; }
.insights__tab { background: transparent; color:#e5e7eb; border:1px solid rgba(255,255,255,0.16); padding:0.45rem 0.7rem; border-radius:999px; cursor:pointer; font-weight:700; transition: background .2s ease, color .2s ease, transform .2s ease; }
.insights__tab:hover { transform: translateY(-1px); }
.insights__tab.is-active { background: linear-gradient(135deg,#22d3ee,#a78bfa); color:#0b1221; border-color:transparent; }
.insights__grid { display:grid; grid-template-columns: 1fr; gap: 1rem; }
.insight-card { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius: 18px; padding:1rem; display:grid; gap:0.6rem; transition: border-color .2s ease, transform .2s ease; }
.insight-card:hover { border-color: rgba(110,231,240,0.35); transform: translateY(-2px); }
.insight-card__icon { width:22px; height:22px; color:#6ee7f0; }
.insight-card__title { font-weight:800; }
.insight-card__text { color:#cfd3db; }
.insight-card__cta { justify-self:start; }

/* ====== Tools ====== */
.tools { padding: 3rem 0; }
.tools__header { display:grid; gap:0.4rem; margin-bottom:1.2rem; }
.tools__title { font-size:1.8rem; font-weight:800; background: linear-gradient(135deg,#fff,#a5b4fc); -webkit-background-clip:text; background-clip:text; color:transparent; }
.tools__subtitle { color:#cfd3db; }
.tools__grid { display:grid; grid-template-columns: 1fr; gap:1rem; }
.tool-card { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius: 18px; padding:1rem; display:grid; gap:0.5rem; transition: border-color .2s ease, transform .2s ease; }
.tool-card:hover { border-color: rgba(167,139,250,0.35); transform: translateY(-2px); }
.tool-card__icon { width:22px; height:22px; color:#a78bfa; }
.tool-card__title { font-weight:800; }
.tool-card__text { color:#cfd3db; }

/* ====== Careers ====== */
.careers { padding: 3rem 0; }
.careers__header { display:grid; gap:0.4rem; margin-bottom:1.2rem; }
.careers__title { font-size:1.8rem; font-weight:800; background: linear-gradient(135deg,#fff,#a5b4fc); -webkit-background-clip:text; background-clip:text; color:transparent; }
.careers__subtitle { color:#cfd3db; }
.careers__grid { display:grid; grid-template-columns: 1fr; gap:1rem; }
.career-card { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius: 18px; padding:1rem; display:grid; gap:0.6rem; }
.career-card__icon { width:22px; height:22px; color:#6ee7f0; }
.career-card__title { font-weight:800; }
.career-card__list { display:grid; gap:0.35rem; color:#cfd3db; list-style: none; }
.career-card__cta { justify-self:start; }

/* ====== Responsive grids ====== */
@media (min-width: 768px){
  .stories__grid { grid-template-columns: repeat(2, 1fr); }
  .insights__grid { grid-template-columns: repeat(2, 1fr); }
  .tools__grid { grid-template-columns: repeat(3, 1fr); }
  .careers__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px){
  .stories__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ====== Contact ====== */
.contact { padding: 3rem 0; }
.contact__header { display:grid; gap:.4rem; margin-bottom:1.2rem; }
.contact__title { font-size:1.8rem; font-weight:800; background:linear-gradient(135deg,#fff,#a5b4fc); -webkit-background-clip:text; background-clip:text; color:transparent; }
.contact__subtitle { color:#cfd3db; }

.contact__grid { display:grid; grid-template-columns: 1fr; gap:1rem; }
.contact__form { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius:18px; padding:1rem; display:grid; gap:.8rem; }
.form__field { display:grid; gap:.35rem; }
.form__label { font-weight:700; color:#e5e7eb; }
.form__input {
  width:100%; padding:.75rem .9rem; border-radius:12px; border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05); color:#e5e7eb; outline:none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form__input:focus { border-color:#22d3ee; box-shadow:0 0 0 4px rgba(34,211,238,.15); background: rgba(255,255,255,0.08); }
.form__error { font-size:.9rem; color:#fca5a5; min-height:1.2em; }

.form__field--captcha .captcha { display:flex; align-items:center; gap:.6rem; }
.captcha__question { background: rgba(34,211,238,0.15); border:1px solid rgba(34,211,238,0.35); color:#e5fafd; padding:.4rem .6rem; border-radius:999px; font-weight:800; }
.captcha__input { flex: 0 0 90px; text-align:center; }
.captcha__refresh {
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:12px; border:1px solid rgba(255,255,255,0.16);
  background: transparent; color:#e5e7eb; cursor:pointer; transition: transform .2s ease, background .2s ease;
}
.captcha__refresh:hover { transform: rotate(-8deg); background: rgba(255,255,255,0.08); }
.captcha__refresh i { width:18px; height:18px; }

.form__agree { display:grid; gap:.35rem; }
.checkbox { display:flex; align-items:flex-start; gap:.6rem; cursor:pointer; user-select:none; }
.checkbox input { position:absolute; opacity:0; pointer-events:none; }
.checkbox__box { width:20px; height:20px; border-radius:6px; border:1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); display:inline-block; margin-top:3px; transition: background .2s ease, border-color .2s ease; }
.checkbox input:checked + .checkbox__box { background: linear-gradient(135deg,#22d3ee,#a78bfa); border-color: transparent; }
.checkbox__text { color:#cfd3db; }
.form__note { color:#aeb4bf; font-size:.9rem; }

.contact__submit { margin-top:.4rem; }

.contact__success {
  background: rgba(34,211,238,0.06); border:1px solid rgba(34,211,238,0.25);
  border-radius:18px; padding:1rem; display:grid; gap:.6rem; text-align:left;
}
.success__icon i { width:28px; height:28px; color:#6ee7f0; }
.success__title { font-weight:800; font-size:1.2rem; }
.success__text { color:#cfd3db; }
.success__email { color:#fff; }

.contact__aside { margin-top:1rem; }
.contact__list { list-style:none; display:grid; gap:.35rem; color:#aeb4bf; }
.contact__item { display:flex; align-items:center; gap:.5rem; }
.contact__item i { width:18px; height:18px; }

.form__input.is-invalid { border-color:#fca5a5; box-shadow:0 0 0 4px rgba(252,165,165,.12); }

/* layout на широких экранах */
@media (min-width: 768px){
  .contact__grid { grid-template-columns: 1.2fr .8fr; align-items:start; }
  .contact__success { grid-column: 1 / -1; }
}

/* ====== Cookie Popup ====== */
.cookie-popup {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(95%, 600px);
  background: rgba(11,18,33,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f3f4f6;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 2000;
  animation: cookie-slide-up 0.4s ease forwards;
}
.cookie-popup__text { font-size: 0.95rem; line-height: 1.4; }
.cookie-popup__text a { color: #6ee7f0; text-decoration: underline; }
.cookie-popup__btn {
  align-self: flex-start;
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  color: #0b1221;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cookie-popup__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,211,238,0.25); }

@keyframes cookie-slide-up {
  from { transform: translate(-50%, 100%); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ====== Policy Pages ====== */
.pages { padding: 2.5rem 0; }
.pages .container { max-width: 800px; }
.pages h1 {
  font-size: 2rem; font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pages h2 {
  font-size: 1.4rem; font-weight: 700;
  margin-top: 1.8rem; margin-bottom: 0.6rem;
  color: #e5e7eb;
}
.pages p {
  margin-bottom: 1rem;
  color: #cfd3db;
}
.pages ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.pages li { margin-bottom: 0.5rem; color: #cfd3db; }
.pages li strong { color: #e5e7eb; }
.pages a { color: #6ee7f0; text-decoration: underline; }
