:root{
  --bg:#03262a;
  --bg-2:#0d3c40;
  --card:#1e4d50;
  --accent:#18b0a5;
  --text:#e9f1f0;
  --muted:#b7c7c6;
  --shadow: 0 10px 30px rgba(0,0,0,.3);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(24,176,165,.25), transparent 60%),
              radial-gradient(800px 400px at 110% 10%, rgba(24,176,165,.15), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.6;
}

.container{width:min(1120px,92vw);margin-inline:auto;padding:20px}
.site-header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 0;
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.brand__logo{width:40px;height:40px}
.brand__name{font-weight:800;letter-spacing:.2px}

.nav a{color:var(--muted);text-decoration:none;margin-left:16px}
.nav a:hover{color:var(--text)}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 60px 0;
  border-radius: 20px;      /* скругляем углы */
  overflow: hidden;         /* обрезаем фон по радиусу */
  isolation: isolate;
  min-height: 100vh;         /* высота первого экрана (можно 100vh или фикс 640px) */
}

/* фоновый слой для параллакса */
.hero__bg{
  position:absolute;
  inset:-12% 0 -12% 0;
  z-index:-1;
  will-change: transform;
}
.hero__bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 30%; /* подкорректируй как тебе нужно */
  display:block;
}

/* затемняющий градиент поверх фона */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.45) 0%,
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,.15) 100%
  );
  z-index: 0;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
  z-index: 1;               /* над фоном */
}

.hero__content h1 {
  font-size: clamp(28px,3.5vw,44px);
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}

.hero__content p {
  margin: 0 0 20px;
  color: #e9f1f0;
  max-width: 64ch;
}

.hero__card {
  background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px 18px 10px;
  box-shadow: var(--shadow);
}

.checks {
  margin: 0;
  padding-left: 20px;
}
.checks li {
  margin: 8px 0;
}

/* уважение к reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__bg { transform: none !important; }
}


/* ---------- СЕТКИ ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}

.card{
  background:var(--card);border:1px solid rgba(255,255,255,.08);
  border-radius:18px;padding:16px;box-shadow:var(--shadow)
}
.card h3{margin-top:0}

.form-section h2,.benefits h2,.contacts h2{margin-bottom:8px}

/* ---------- FORM ---------- */
.field{display:flex;flex-direction:column;gap:6px}
.field input,.field select,.field textarea{
  width:100%;padding:12px 14px;border-radius:12px;
  background:#083539;border:1px solid rgba(255,255,255,.12);color:var(--text);
  outline:none
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent)}
.field small.error{color:#ffd2d2;min-height:1em}

.field--wide{grid-column:1 / -1}
.checkbox{display:flex;align-items:center;gap:10px}

.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.form-actions{display:flex;align-items:center;gap:16px;margin-top:12px}
.form-note{color:var(--muted);margin:0}

/* ---------- BUTTONS ---------- */
.btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s;
  flex: 1;
  max-width: 220px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.1);
}

/* ---------- FOOTER ---------- */
.site-footer{margin-top:40px;border-top:1px solid rgba(255,255,255,.08)}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* центрируем текст */
  padding: 16px 0;
  position: relative;
}

.footer-inner p {
  text-align: center;
  margin: 0 auto; /* текст по центру */
}

.footer-inner .to-top {
  position: absolute;
  right: 20px;   /* прижимаем к правому краю */
  top: 50%;
  transform: translateY(-50%);
}

.to-top{color:var(--muted);text-decoration:none;font-size:20px}

/* ---------- TOAST ---------- */
#toast{
  position:fixed;right:18px;bottom:18px;min-width:260px;max-width:92vw;
  background:#0b2f32;color:var(--text);border:1px solid rgba(255,255,255,.1);
  border-radius:14px;padding:12px 14px;box-shadow:var(--shadow);
  opacity:0;transform:translateY(10px);pointer-events:none;transition:.25s ease;
}
#toast.show{opacity:1;transform:translateY(0)}
#toast.success{border-color:#2ecc71}
#toast.error{border-color:#e74c3c}

/* ---------- АДАПТИВ ---------- */
@media (max-width:900px){
  .hero__inner{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
}
/* ---------- NAV (бургер) ---------- */
.nav-toggle{
  display:none;
  background:none;
  border:0;
  color:var(--text);
  cursor:pointer;
  padding:6px;
  border-radius:10px;
}
.nav-toggle:focus{
  outline:2px dashed rgba(255,255,255,.5);
  outline-offset:3px;
}

@media (max-width:900px){
  .nav-toggle{display:block}
  .nav{display:none}

  .nav.is-open{
    display:flex;
    flex-direction:column;
    gap:14px;
    position:fixed;
    inset:0;
    padding:80px 20px 20px;
    background:rgba(3,38,42,.98);
    z-index:1001;
  }
  .nav.is-open a{
    color:#fff;
    font-size:20px;
    text-decoration:none;
    padding:12px 10px;
    border-radius:12px;
    background:rgba(255,255,255,.06);
  }
  .nav.is-open a:hover{background:rgba(255,255,255,.12)}

  .nav-backdrop[hidden]{display:none}
  .nav-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:1000;
  }

  .site-header{position:relative}
  .site-header .brand{flex:1}
}

.card a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.card a:hover {
  filter: brightness(1.1);
}
.contact-buttons {
  display: flex;
  justify-content: center;  /* по центру */
  gap: 16px;                /* расстояние между кнопками */
  margin-top: 12px;
}

.contact-buttons a {
  flex: 1;
  max-width: 150px;         /* одинаковая ширина */
  text-align: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.contact-buttons a:hover {
  filter: brightness(1.1);
}

.h1-small {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  display: block;
  margin: 0;          
  line-height: 1;     /* плотнее */
  color: #fff;
}

.h1-big {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin: -25px 0 0 0;  /* подняли ещё ближе */
  line-height: 1;
}

/* Затемнение для article-hero */
.article-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* затемнение */
  z-index: 0;
}

.article-hero .container {
  position: relative;
  z-index: 1; /* текст поверх */
}



/* === Reviews Slider === */
.reviews { margin-block: 56px; }
.reviews h2 { margin-bottom: 18px; }

.reviews__viewport { position: relative; }

.reviews__track{
  display: grid;
  grid-auto-flow: column;
  /* ширина карточки: 3 на десктопе, 2 на планшете, 1 на мобиле */
  grid-auto-columns: calc(33.333% - 12px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;              /* чуть места под скрытый скроллбар */
}

/* «Прищелкивание» к началу карточки */
.review{ scroll-snap-align: start; }

@media (max-width: 1024px){
  .reviews__track{ grid-auto-columns: calc(50% - 9px); }
}
@media (max-width: 640px){
  .reviews__track{ grid-auto-columns: 100%; }
}

/* Кнопки */
.reviews__btn {
  position: absolute;
  bottom: -20px;       /* опустили вниз на 20px, подстройте под высоту блока */
  top: auto;           /* убираем центрирование */
  transform: none;     /* отменяем translateY */
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow, 0 8px 24px rgba(18,29,48,.12));
  cursor: pointer;
  display: grid; place-content: center;
  z-index: 3; /* поверх затуханий и карточек */
}

.reviews__btn.left { left: 0; }
.reviews__btn.right { right: 0; }

.reviews__btn:active { transform: scale(.95); }


/* Затухания по краям (под цвет фона секции) */
.reviews__viewport::before,
.reviews__viewport::after{
  content:"";
  position:absolute; top:0; bottom:0; width:24px;
  pointer-events:none;
}
.reviews__viewport::before{
  left:0;
  background: linear-gradient(90deg, #03262a 0, rgba(3,38,42,0));
}
.reviews__viewport::after{
  right:0;
  background: linear-gradient(-90deg, #03262a 0, rgba(3,38,42,0));
}

/* Скрываем скроллбар */
.reviews__track{ scrollbar-width: none; }
.reviews__track::-webkit-scrollbar{ display: none; }

/* ——— Карточка отзыва ——— */
.review.card{ padding: 18px; }

/* Шапка карточки: аватар + имя/дата + звёзды справа */
.review__head{
  display:flex;
  align-items:center;
  justify-content:space-between; /* звёзды вправо */
  gap:12px;
  margin-bottom:10px;
}
.review__avatar{
  width:48px; height:48px; border-radius:50%; object-fit:cover; flex:0 0 48px;
}
.review__info{ flex:1; min-width:0; }
.review__name{ display:block; line-height:1.2; }
.review__date{ display:block; font-size:12px; color:#7e8ca0; }

.review__rating{ display:flex; gap:2px; flex-shrink:0; }
.review__rating .star{ width:18px; height:18px; fill:#ffb400; }

/* Текст ниже шапки */
.review__text{ margin:8px 0 0; }

/* ===== ДОБАВЛЕННЫЕ ПРАВКИ ===== */

/* телефон в карточке — обычная ссылка, не «кнопка» */
.card a[href^="tel:"] {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-weight: normal;
  text-decoration: none; /* поменяй на underline, если нужно подчёркивание */
}

/* хедер и мобильное меню поверх фона статьи */
.site-header { position: relative; z-index: 1200; }

@media (max-width:900px){
  .nav.is-open{ z-index: 1300; }
  .nav-backdrop{ z-index: 1250; }
}

/* ===== Блог: сетка карточек ===== */
.blog-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
@media (max-width:1024px){ .blog-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:640px){ .blog-grid{ grid-template-columns:1fr; } }

.post-card{
  background:var(--panel, #fff);
  border:1px solid var(--line, rgba(18,29,48,.12));
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:var(--shadow, 0 8px 24px rgba(18,29,48,.06));
}
.post-card__image img{ display:block; width:100%; height:auto; }
.post-card__content{ padding:16px; display:grid; gap:10px; }
.post-card__title{ font-weight:800; line-height:1.25; }
.post-card__excerpt{ color:var(--muted, #667085); }

/* ===== Оформление статьи ===== */
.article-hero .lead{ color:var(--muted, #667085); }
.article-cover{ margin-top:16px; border-radius:12px; width:100%; height:auto; }
.article{ display:grid; gap:16px; }
.article h2{ margin-top:8px; }
.note{
  background:rgba(0,0,0,.03);
  border-left:4px solid var(--accent, #0ea5e9);
  padding:12px 14px;
  border-radius:8px;
}
/* Моб-режим: сворачиваем меню, раскрываем по .is-open */
@media (max-width: 768px){
  .nav[data-collapsible]{ display: none; }
  .nav[data-collapsible].is-open{ display: block; }
  .menu-btn{ 
    background: transparent; border: 0; font-size: 26px; line-height: 1;
    padding: 8px; cursor: pointer;
  }
}

/* На десктопе кнопка не нужна */
@media (min-width: 769px){
  .menu-btn{ display:none; }
  .nav[data-collapsible]{ display:flex !important; gap:16px; }
}

/* --- Collapsible SEO block --- */
.collapsible[data-collapsed="true"] .collapsible__content {
  max-height: 240px;   /* ограничение высоты */
  overflow: hidden;
}

.collapsible__toggle {
  margin-top: 16px;
}

.faq .faq__item + .faq__item { margin-top: 14px; }
.faq h3 { font-size: 1.05rem; margin: 6px 0; }
.faq p  { margin: 0; opacity: .95; }

/* Стили ссылок внутри SEO-блока и FAQ */
.seo-text a,
.seo-article a,
.faq a {
  color: #1cc5c9;            /* фирменный бирюзовый */
  font-weight: 600;
  text-decoration: none;
}

.seo-text a:hover,
.seo-article a:hover,
.faq a:hover {
  text-decoration: underline;
}


/* FAQ */
.faq__item { border-bottom: 1px solid rgba(255,255,255,.15); padding: 8px 0; }
.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  color: var(--text, #fff);
}
.faq__question[aria-expanded="true"] { color: var(--primary, #1cc5c9); }
.faq__answer { padding: 0 0 10px 0; }
.faq__answer p { margin: 0; opacity: .9; }
.faq__phone { color: #1cc5c9; font-weight: 600; text-decoration: none; }
.faq__phone:hover { text-decoration: underline; }

.cta-links { margin: 24px 0; font-size: .95rem; }
.cta-links ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-links a { color: #1cc5c9; font-weight: 600; text-decoration: none; }
.cta-links a:hover { text-decoration: underline; }

/* CTA Section — выравнивание под общий стиль */
.cta-section {
  margin-block: 56px;         /* одинаково как у .reviews и других секций */
}

.cta-section h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;          /* такой же размер, как у заголовков других блоков */
  font-weight: 800;
}

.cta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;     /* ссылки одна под другой */
  gap: 12px;
}

.cta-list a {
  color: #1cc5c9;             /* бирюзовый */
  font-weight: 600;
  text-decoration: none;
  line-height: 1.55;
}

.cta-list a:hover {
  text-decoration: underline;
}

/* --- Вакансии --- */
.vacancies { margin-block: 56px; }
.vacancies h2 { margin-bottom: 18px; }

.vacancy h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vacancy-more {
  font-size: 0.95rem;
  color: #1cc5c9;
  font-weight: 600;
  text-decoration: none;
}
.vacancy-more:hover { text-decoration: underline; }

.vacancy p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === Галерея === */
.gallery {
  margin-block: 56px;
}

.gallery h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 800;
}

.gallery__intro {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 60ch;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.gallery-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.gallery-card__image img {
  display: block;
  width: 100%;
  height: 200px;          /* фиксированная высота превью */
  object-fit: cover;      /* заполняет рамку */
}

.gallery-card__content {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.gallery-card__content h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-card__content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
