/* ===================================================
   САПСАН ТУР — стили лендинга
   =================================================== */

:root{
  --navy:#0c2540;
  --navy-2:#143a5e;
  --sky:#3da5d9;
  --sky-dark:#2e93c6;
  --sky-light:#7ec8e8;
  --sky-bg:#eaf6fc;
  --ink:#102233;
  --muted:#5b7184;
  --white:#ffffff;
  --radius:18px;
  --shadow:0 12px 40px rgba(12,37,64,.14);
  --maxw:1180px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Segoe UI',-apple-system,Roboto,'Helvetica Neue',Arial,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
section{padding:80px 0}
h2.section-title{
  font-size:clamp(26px,4vw,42px);
  color:var(--navy);
  text-align:center;
  margin-bottom:14px;
  line-height:1.2;
}
.section-sub{
  text-align:center;color:var(--muted);
  max-width:640px;margin:0 auto 48px;font-size:17px;
}

/* Появление блоков при скролле — лёгкое всплытие */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.reveal.visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
}

/* ===== ИКОНКИ (inline SVG) ===== */
.icon{
  width:24px;height:24px;flex:none;
  fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
.icon--fill{fill:currentColor;stroke:none}

/* ===== ШАПКА ===== */
header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e4eef5;
}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;color:var(--navy)}
.brand img{width:46px;height:46px;border-radius:10px;object-fit:cover}
.brand .brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand .brand-text b{font-size:18px;letter-spacing:.5px}
.brand .brand-text span{font-size:11px;color:var(--sky);font-weight:600;letter-spacing:2px;text-transform:uppercase}

.nav-links{display:flex;align-items:center;gap:28px}
.nav-links a{color:var(--ink);font-weight:600;font-size:15px;transition:color .2s}
.nav-links a:hover{color:var(--sky)}

.nav-phone{
  display:inline-flex;align-items:center;gap:9px;
  background:var(--sky);color:#fff;padding:11px 20px;border-radius:999px;
  border:1.5px solid var(--sky);
  font-weight:700;font-size:15px;line-height:1;white-space:nowrap;
  box-shadow:0 4px 14px rgba(61,165,217,.30);
  transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.nav-phone:hover,
.nav-phone:focus-visible{
  background:transparent;color:var(--sky);
  border-color:var(--sky);
  box-shadow:none;outline:none;
}
.nav-phone .icon{width:18px;height:18px}

.burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:8px}
.burger span{width:26px;height:3px;background:var(--navy);border-radius:3px;transition:.3s}

/* ===== HERO ===== */
.hero{
  position:relative;
  background:
    linear-gradient(180deg,rgba(12,37,64,.72),rgba(12,37,64,.55)),
    url('../img/main/rock.png'),
    linear-gradient(135deg,#0c2540 0%,#143a5e 45%,#3da5d9 100%);
  background-size:cover;background-position:center;
  color:#fff;text-align:center;
  padding:130px 20px 120px;
}
.hero h1{font-size:clamp(32px,6vw,60px);line-height:1.1;margin-bottom:20px;font-weight:800;text-shadow:0 3px 20px rgba(0,0,0,.3)}
.hero h1 .accent{color:var(--sky-light)}
.hero p{font-size:clamp(16px,2.4vw,21px);max-width:720px;margin:0 auto 36px;opacity:.95}
.hero-cta{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

.btn{
  display:inline-flex;align-items:center;gap:9px;
  padding:15px 32px;border-radius:999px;font-weight:700;font-size:16px;
  cursor:pointer;border:1.5px solid transparent;
  transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.btn .icon{width:20px;height:20px}
/* Единый стиль ховера: заливка уходит → остаётся обводка фирменного цвета */
.btn-primary{background:var(--sky);color:#fff;border-color:var(--sky);box-shadow:0 4px 14px rgba(61,165,217,.30)}
.btn-primary:hover,.btn-primary:focus-visible{background:transparent;color:var(--sky);border-color:var(--sky);box-shadow:none;outline:none}
.btn-ghost{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.6)}
.btn-ghost:hover,.btn-ghost:focus-visible{background:transparent;color:var(--sky-light);border-color:var(--sky-light);box-shadow:none;outline:none}

.hero-badges{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:44px}
.hero-badges .badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);
  padding:10px 20px;border-radius:999px;font-size:14px;font-weight:600;backdrop-filter:blur(4px);
}
.hero-badges .badge .icon{width:18px;height:18px;color:var(--sky-light)}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features{background:var(--sky-bg)}
.features-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.feature{
  background:#fff;border-radius:var(--radius);padding:34px 26px;text-align:center;
  box-shadow:0 6px 24px rgba(12,37,64,.07);transition:transform .25s,box-shadow .25s;
}
.feature:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.feature .ic{
  width:64px;height:64px;margin:0 auto 18px;border-radius:16px;color:#fff;
  background:linear-gradient(135deg,var(--sky),var(--navy));
  display:flex;align-items:center;justify-content:center;
}
.feature .ic .icon{width:30px;height:30px}
.feature h3{color:var(--navy);font-size:18px;margin-bottom:8px}
.feature p{color:var(--muted);font-size:15px}

/* ===== О НАС ===== */
.about-wrap{display:grid;grid-template-columns:1.1fr 1fr;gap:54px;align-items:center}
.about-text h2{font-size:clamp(26px,4vw,40px);color:var(--navy);margin-bottom:22px;line-height:1.18}
.about-text p{color:var(--muted);font-size:17px;margin-bottom:18px}
.about-list{list-style:none;margin-top:24px;display:grid;gap:14px}
.about-list li{display:flex;gap:12px;align-items:flex-start;font-size:16px;font-weight:600;color:var(--ink)}
.about-list li .icon{width:22px;height:22px;color:var(--sky);margin-top:2px}
.about-media{
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
  background:
    linear-gradient(180deg,rgba(12,37,64,.30),rgba(12,37,64,.62)),
    url('../img/galery/image_3.jpeg') center/cover no-repeat,
    linear-gradient(135deg,#143a5e,#3da5d9);
  min-height:380px;display:flex;align-items:flex-end;justify-content:center;color:#fff;text-align:center;padding:30px;
}
.about-media .stat{font-size:64px;font-weight:800;line-height:1}
.about-media .stat small{display:block;font-size:18px;font-weight:600;opacity:.9;margin-top:10px}

/* ===== НАПРАВЛЕНИЯ ===== */
.dirs-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.dir-card{
  position:relative;border-radius:var(--radius);overflow:hidden;min-height:300px;
  display:flex;align-items:flex-end;color:#fff;box-shadow:0 8px 28px rgba(12,37,64,.12);
  transition:transform .3s;
}
.dir-card:hover{transform:translateY(-6px)}
.dir-card .bg{position:absolute;inset:0;z-index:0;transition:transform .5s}
.dir-card:hover .bg{transform:scale(1.07)}
.dir-card .overlay{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(12,37,64,0) 35%,rgba(12,37,64,.85) 100%)}
.dir-card .content{position:relative;z-index:2;padding:26px}
.dir-card h3{font-size:24px;margin-bottom:6px}
.dir-card p{font-size:14px;opacity:.92}
/* Цветные плейсхолдеры вместо фото. ЗАМЕНИТЕ [4]: подставьте свои фото в .bg (background-image:url(...)) */
.d-dagestan .bg{background:url('../img/directions/dagestan.jpg') center/cover no-repeat}
.d-osetia   .bg{background:url('../img/directions/osetia.jpeg') center/cover no-repeat}
.d-georgia  .bg{background:url('../img/directions/grusia.jpg') center/cover no-repeat}
.d-chechnya .bg{background:url('../img/directions/grozniy.jpeg') center/cover no-repeat}
.d-dombay   .bg{background:url('../img/directions/dombai.webp') center/cover no-repeat}
.d-tailor   .bg{background:url('../img/directions/kater.jpeg') center/cover no-repeat}

/* ===== ГАЛЕРЕЯ ===== */
.gallery{background:var(--sky-bg)}
/* Карусель галереи */
.gallery-carousel{position:relative}
.gallery-viewport{overflow:hidden}
.gallery-track{display:flex;transition:transform .45s ease}
.gallery-page{flex:0 0 100%;display:grid;gap:16px}
.gallery-page img{
  width:100%;height:100%;aspect-ratio:1/1;object-fit:cover;
  border-radius:14px;display:block;cursor:pointer;
  box-shadow:0 4px 16px rgba(12,37,64,.10);transition:transform .35s ease,box-shadow .35s ease;
}
.gallery-page img:hover{transform:scale(1.04);box-shadow:0 10px 28px rgba(12,37,64,.20)}
/* до инициализации JS — фото лежат флекс-рядом, не растягиваясь на весь экран */
.gallery-track > img{flex:0 0 23%;aspect-ratio:1/1;object-fit:cover;border-radius:14px}

.gal-nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:46px;height:46px;border-radius:50%;border:0;background:#fff;color:var(--navy);
  box-shadow:0 6px 20px rgba(12,37,64,.18);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  transition:background .2s,color .2s,opacity .2s;
}
.gal-nav:hover{background:var(--sky);color:#fff}
.gal-nav .icon{width:24px;height:24px}
.gal-prev{left:8px}
.gal-next{right:8px}
.gal-nav:disabled{opacity:.3;cursor:default;background:#fff;color:var(--navy)}

.gallery-dots{display:flex;gap:8px;justify-content:center;margin-top:24px}
.gallery-dots button{
  width:10px;height:10px;border-radius:50%;border:0;padding:0;cursor:pointer;
  background:#bcd7e6;transition:background .2s,width .2s;
}
.gallery-dots button.active{background:var(--sky);width:26px;border-radius:6px}

/* Lightbox / просмотр фото */
.lightbox{
  position:fixed;inset:0;z-index:1000;display:none;
  align-items:center;justify-content:center;padding:30px;
  background:rgba(8,27,47,.93);backdrop-filter:blur(3px);
}
.lightbox.open{display:flex}
.lightbox img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:10px;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.lb-btn{
  position:absolute;z-index:2;width:52px;height:52px;border-radius:50%;cursor:pointer;
  background:rgba(255,255,255,.12);border:1.5px solid rgba(255,255,255,.45);color:#fff;
  display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s,transform .2s;
}
.lb-btn:hover{background:var(--sky);border-color:var(--sky)}
.lb-btn .icon{width:24px;height:24px}
.lb-close{top:24px;right:24px}
.lb-prev{left:24px;top:50%;transform:translateY(-50%)}
.lb-next{right:24px;top:50%;transform:translateY(-50%)}
.lb-prev:hover,.lb-next:hover{transform:translateY(-50%) scale(1.08)}
.lb-counter{
  position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
  color:#fff;font-size:14px;font-weight:600;background:rgba(0,0,0,.45);padding:6px 16px;border-radius:999px;
}

/* ===== CTA / ЗАЯВКА ===== */
.cta-band{
  background:linear-gradient(135deg,#0c2540,#143a5e);color:#fff;border-radius:24px;
  padding:54px;display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;
}
.cta-band h2{font-size:clamp(24px,3.5vw,34px);margin-bottom:10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cta-band h2 .icon{width:32px;height:32px;color:var(--sky-light)}
.cta-band p{opacity:.85;font-size:17px;max-width:560px}
.cta-actions{display:flex;gap:14px;flex-wrap:wrap}

/* ===== ФОРМА ===== */
.form-wrap{max-width:560px;margin:0 auto;background:#fff;border-radius:var(--radius);padding:40px;box-shadow:var(--shadow)}
.form-wrap .row{display:grid;gap:16px;margin-bottom:16px}
.form-wrap label{font-weight:600;font-size:14px;color:var(--navy);display:block;margin-bottom:6px}
.form-wrap input,.form-wrap select,.form-wrap textarea{
  width:100%;padding:13px 16px;border:1.5px solid #d7e6ef;border-radius:12px;font-size:15px;font-family:inherit;transition:border .2s;
}
.form-wrap input:focus,.form-wrap select:focus,.form-wrap textarea:focus{outline:none;border-color:var(--sky)}
.form-note{font-size:12px;color:var(--muted);text-align:center;margin-top:14px}
.form-wrap .btn-primary{width:100%;justify-content:center}

/* Чекбокс согласия */
.consent{display:flex;gap:10px;align-items:center;margin-bottom:18px}
.consent input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:var(--sky);cursor:pointer}
.consent label{margin:0;font-size:13px;font-weight:400;color:var(--muted);line-height:1.4;cursor:pointer}
.consent a{color:var(--sky);font-weight:600;text-decoration:underline}
.consent a:hover{color:var(--sky-dark)}

/* ===== ЮРИДИЧЕСКИЕ СТРАНИЦЫ (политика, согласие) ===== */
.legal-hero{background:linear-gradient(135deg,#0c2540,#143a5e);color:#fff;padding:56px 0}
.legal-hero h1{font-size:clamp(24px,4vw,38px);line-height:1.2}
.legal-hero .back{display:inline-flex;align-items:center;gap:7px;color:var(--sky-light);font-weight:600;margin-bottom:16px;font-size:15px}
.legal-hero .back:hover{color:#fff}
.legal-hero .back .icon{width:18px;height:18px}
.legal{max-width:860px;margin:0 auto;padding:50px 20px 80px}
.legal h2{color:var(--navy);font-size:21px;margin:34px 0 12px}
.legal h2:first-child{margin-top:0}
.legal h3{color:var(--navy-2);font-size:17px;margin:22px 0 8px}
.legal p{color:var(--ink);margin-bottom:12px;font-size:16px}
.legal ul,.legal ol{margin:0 0 14px 22px;color:var(--ink)}
.legal li{margin-bottom:7px;font-size:16px}
.legal .updated{color:var(--muted);font-size:14px;margin-bottom:30px}
.legal .fill{background:#fff4d6;padding:1px 5px;border-radius:4px;font-weight:600}

/* ===== КОНТАКТЫ ===== */
.contacts{background:var(--navy);color:#fff}
.contacts h2.section-title{color:#fff}
.contacts-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.contact-item{display:flex;gap:16px;align-items:flex-start;margin-bottom:26px}
.contact-item .ic{
  width:50px;height:50px;flex:none;border-radius:12px;background:var(--sky);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.contact-item .ic .icon{width:24px;height:24px}
.contact-item .label{font-size:13px;opacity:.65;text-transform:uppercase;letter-spacing:1px;margin-bottom:3px}
.contact-item .value{font-size:18px;font-weight:600}
.contact-item .value a:hover{color:var(--sky-light)}
.socials{display:flex;gap:14px;margin-top:30px;flex-wrap:wrap}
.socials a{
  display:inline-flex;align-items:center;gap:9px;padding:12px 22px;border-radius:999px;
  font-weight:700;color:#fff;border:1.5px solid transparent;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.socials a .icon{width:20px;height:20px}
.soc-tg{background:#2aabee;border-color:#2aabee}
.soc-vk{background:#0077ff;border-color:#0077ff}
.soc-wa{background:#25d366;border-color:#25d366}
/* Тот же стиль: заливка уходит → обводка цвета соцсети */
.soc-tg:hover,.soc-tg:focus-visible{background:transparent;color:#2aabee;border-color:#2aabee;outline:none}
.soc-vk:hover,.soc-vk:focus-visible{background:transparent;color:#0077ff;border-color:#0077ff;outline:none}
.soc-wa:hover,.soc-wa:focus-visible{background:transparent;color:#25d366;border-color:#25d366;outline:none}
.map-box{
  position:relative;border-radius:var(--radius);overflow:hidden;min-height:380px;background:#143a5e;
}
.map-box iframe{width:100%;height:100%;min-height:380px;border:0;display:block}
.map-credit{
  position:absolute;left:10px;z-index:2;color:#eee;font-size:12px;
  background:rgba(12,37,64,.55);padding:2px 6px;border-radius:6px;
}
.map-credit--top{top:8px}
.map-credit--sub{top:30px}
.map-credit:hover{color:#fff}

/* ===== ПОДВАЛ ===== */
footer{background:#081b2f;color:#9fb6c9;padding:34px 0;text-align:center;font-size:14px}
footer .brand{justify-content:center;margin-bottom:14px;color:#fff}
footer a:hover{color:var(--sky-light)}
.footer-legal{margin-top:16px;font-size:12px;line-height:1.6;color:#6f879c;opacity:.85}

/* ===== АДАПТИВ / МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media(max-width:980px){
  .features-grid{grid-template-columns:repeat(2,1fr)}
  .dirs-grid{grid-template-columns:repeat(2,1fr)}
  .about-wrap{grid-template-columns:1fr;gap:34px}
  .contacts-grid{grid-template-columns:1fr;gap:30px}
  .cta-band{grid-template-columns:1fr;text-align:center;padding:40px 28px}
  .cta-band h2{justify-content:center}
  .cta-actions{justify-content:center}
}
@media(max-width:760px){
  section{padding:58px 0}
  .nav-links{
    position:fixed;top:74px;right:0;width:78%;max-width:320px;height:calc(100vh - 74px);
    background:#fff;flex-direction:column;align-items:flex-start;gap:0;padding:24px;
    box-shadow:-10px 0 40px rgba(0,0,0,.12);transform:translateX(110%);transition:transform .3s;
  }
  .nav-links.open{transform:translateX(0)}
  .nav-links a{width:100%;padding:14px 0;border-bottom:1px solid #eef4f8;font-size:17px}
  .nav-links .nav-phone{margin-top:14px;width:100%;justify-content:center;border-bottom:0}
  .burger{display:flex}
  .burger.active span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .burger.active span:nth-child(2){opacity:0}
  .burger.active span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  .hero{padding:90px 18px 80px}
  .hero-cta{flex-direction:column}
  .hero-cta .btn{width:100%;justify-content:center}
  .form-wrap{padding:28px 20px}
}
@media(max-width:480px){
  .features-grid{grid-template-columns:1fr}
  .dirs-grid{grid-template-columns:1fr}
  .brand .brand-text b{font-size:16px}
}
