/* ============================================================
   НТК Волна — общие стили для всех страниц
   Подключать ПЕРВЫМ, до header.css и footer.css.
   ============================================================ */

:root{
  --brand:#63A4B1;
  --brand-dark:#4D8A96;
  --brand-soft:#E8F2F4;
  --gray:#7C7C7C;
  --border:#E6E8E8;
  --bg-soft:#F4F6F7;
  --text-dark:#16303D;
  --text-medium:#54606B;
  --radius:12px;
}

*{margin:0;padding:0;box-sizing:border-box;font-family:'Inter','Segoe UI',Roboto,sans-serif}
html{scroll-behavior:smooth}
body{color:var(--text-dark);line-height:1.6;background:#fff;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* Секции */
section{padding:4.5rem 5%}
.container{max-width:92vw;margin:0 auto}
.section-title{
  text-align:center;margin-bottom:3rem;
  font-size:clamp(1.7rem,3.6vw,2.3rem);font-weight:800;
  position:relative;letter-spacing:-.02em;
}
.section-title::after{
  content:'';position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);
  width:70px;height:3px;background:var(--brand);
}
.bg-soft{background:var(--bg-soft)}

/* Кнопка CTA */
.cta-button{
  display:inline-block;background:var(--brand);color:#fff;padding:14px 34px;font-weight:700;
  font-size:1rem;box-shadow:0 6px 20px rgba(99,164,177,.4);border:2px solid var(--brand-dark);
  transition:all .3s;cursor:pointer;border-radius:6px;
}
.cta-button:hover{
  background:var(--brand-dark);transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(99,164,177,.5);
}

/* CTA-бокс */
.cta-box{
  background:linear-gradient(120deg,var(--brand-dark),var(--brand));color:#fff;
  border-radius:var(--radius);padding:3.5rem 3rem;text-align:center;position:relative;overflow:hidden;
}
.cta-box::before{
  content:'';position:absolute;right:-100px;top:-100px;width:340px;height:340px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.15),transparent 70%);
}
.cta-box h2{
  font-size:clamp(1.6rem,3.4vw,2.2rem);margin-bottom:1rem;
  position:relative;z-index:2;font-weight:800;
}
.cta-box p{
  color:rgba(255,255,255,.9);margin-bottom:2rem;position:relative;z-index:2;
  max-width:70ch;margin-left:auto;margin-right:auto;
}
.cta-box .cta-button{position:relative;z-index:2;background:#fff;color:var(--brand-dark);border-color:#fff}
.cta-box .cta-button:hover{background:#f0f0f0}

/* ============================================================
   Cookie-баннер (плавающая полоса внизу)
   ============================================================ */
.cookie-consent-banner{
  position:fixed;
  bottom:0;left:0;right:0;
  background:#fff;
  padding:14px 5%;
  z-index:9999;
  transform:translateY(100%);
  transition:transform .4s ease;
  box-shadow:0 -6px 24px rgba(0,0,0,.1);
  border-top:1px solid var(--border);
}
.cookie-consent-banner.active{transform:translateY(0)}

.cookie-consent-content{
  max-width:92vw;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:16px;
}
.cookie-consent-text{
  flex:1;font-size:.9rem;max-width:90ch;color:var(--text-dark);
}
.cookie-consent-text a{
  color:var(--brand);text-decoration:underline;
}
.cookie-consent-buttons{
  display:flex;gap:10px;flex-wrap:wrap;
}

/* Кнопки баннера */
.cookie-consent-button{
  padding:10px 22px;
  border-radius:8px;
  font-weight:600;
  font-size:.88rem;
  font-family:inherit;
  cursor:pointer;
  transition:.2s;
  white-space:nowrap;
  border:1.5px solid transparent;
}

/* «Настроить» — серая обводка */
.cookie-consent-button.settings{
  background:#fff;
  color:var(--text-medium);
  border-color:var(--border);
}
.cookie-consent-button.settings:hover{
  border-color:var(--brand);
  color:var(--brand-dark);
  background:var(--brand-soft);
}

/* «Отклонить все» — обводка брендом */
.cookie-consent-button.reject{
  background:#fff;
  color:var(--brand-dark);
  border-color:var(--brand);
}
.cookie-consent-button.reject:hover{
  background:var(--brand-soft);
}

/* «Принять все» — акцентная */
.cookie-consent-button.accept{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
  box-shadow:0 4px 12px rgba(99,164,177,.35);
}
.cookie-consent-button.accept:hover{
  background:var(--brand-dark);
  border-color:var(--brand-dark);
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(99,164,177,.45);
}

/* ============================================================
   Модалка «Настроить cookies»
   ============================================================ */
.cookie-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(22,48,61,.55);
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.cookie-modal-overlay.active{display:flex}

.cookie-modal{
  background:#fff;
  border-radius:var(--radius);
  max-width:560px;
  width:100%;
  padding:1.8rem 1.8rem 1.5rem;
  box-shadow:0 24px 64px rgba(0,0,0,.3);
  max-height:90vh;
  overflow-y:auto;
  animation:cookieModalIn .25s ease;
}
@keyframes cookieModalIn{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

.cookie-modal h3{
  font-size:1.25rem;font-weight:800;
  margin-bottom:.5rem;color:var(--text-dark);
  letter-spacing:-.01em;
}
.cookie-modal > p{
  color:var(--text-medium);
  font-size:.9rem;
  margin-bottom:1.4rem;
  line-height:1.5;
}

/* Категории */
.cookie-cat-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:1.5rem;
}
.cookie-cat-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  border:1.5px solid var(--border);
  border-radius:10px;
  cursor:pointer;
  transition:.2s;
  background:#fff;
}
.cookie-cat-row:hover{
  border-color:var(--brand);
  background:var(--brand-soft);
}
.cookie-cat-row.disabled{
  cursor:default;
  background:var(--bg-soft);
  opacity:.85;
}
.cookie-cat-row.disabled:hover{
  border-color:var(--border);
  background:var(--bg-soft);
}
.cookie-cat-row input[type="checkbox"]{
  width:20px;height:20px;
  margin-top:2px;
  accent-color:var(--brand);
  flex-shrink:0;
  cursor:pointer;
}
.cookie-cat-row.disabled input[type="checkbox"]{
  cursor:not-allowed;
}
.cookie-cat-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.cookie-cat-text strong{
  font-size:.95rem;
  font-weight:700;
  color:var(--text-dark);
  line-height:1.3;
}
.cookie-cat-text span{
  font-size:.83rem;
  color:var(--text-medium);
  line-height:1.4;
}

/* Кнопки модалки */
.cookie-modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
  padding-top:1.2rem;
  border-top:1px solid var(--border);
}
.cookie-modal-actions .cookie-consent-button{
  padding:11px 24px;
  font-size:.9rem;
}

/* Масштабирование шрифта */
@media (min-width:1600px){html{font-size:17px}}
@media (min-width:1920px){html{font-size:18px}}
@media (min-width:2200px){html{font-size:19px}}
@media (min-width:2560px){html{font-size:20px}}

/* Мобильный */
@media (max-width:768px){
  section{padding:3rem 5%}
  .cta-box{padding:2.5rem 1.5rem}

  /* Баннер — в столбик */
  .cookie-consent-content{
    flex-direction:column;
    text-align:center;
    gap:12px;
  }
  .cookie-consent-text{
    font-size:.85rem;
    line-height:1.45;
  }
  .cookie-consent-buttons{
    width:100%;
    justify-content:center;
  }
  .cookie-consent-button{
    padding:10px 18px;
    font-size:.83rem;
  }

  /* Модалка */
  .cookie-modal{
    padding:1.4rem 1.2rem 1.2rem;
  }
  .cookie-modal h3{font-size:1.1rem}
  .cookie-modal-actions{
    flex-direction:column-reverse;
    justify-content:stretch;
  }
  .cookie-modal-actions .cookie-consent-button{
    width:100%;
    text-align:center;
  }
}

@media (max-width:480px){
  /* На очень узких экранах — кнопки в столбик */
  .cookie-consent-buttons{
    flex-direction:column;
    align-items:stretch;
  }
}