/* =========================================
1. DESIGN TOKENS
========================================= */

:root{
--bg-main:#F5F5F5;
--bg-card:#ffffff;
--text-main:#333;

--orange:#F15200;
--blue:#0077B6;
--yellow:#FFD166;

--nav-height: 60px;
}

[data-theme="dark"]{
--bg-main:#121212;
--bg-card:#1E1E1E;
--text-main:#E6E6E6;
}

/* =========================================
2. BASE
========================================= */

body{
margin:0;
font-family:system-ui,sans-serif;
background:var(--bg-main);
color:var(--text-main);
line-height:1.6;
padding-top: var(--nav-height);
transition: padding-top 0.3s ease;

}

body::before {
  content: '';
  position: fixed;
  inset: 0;

  background: url('/img/bckgrnd.svg') center / cover no-repeat;

  opacity: 0.3; 
  pointer-events: none;

  z-index: -1;
}


h1,h2,h3{
color:var(--orange);
margin-bottom:15px;
}

/* =========================================
3. LINKS
========================================= */

a{
color:inherit;
text-decoration:none;
transition:.3s;
}

a:hover{
color:var(--orange);
}

/* =========================================
4. LAYOUT
========================================= */

.section{
max-width:1100px;
margin:auto;
padding:80px 20px;
}

.hero{
text-align:center;
}

.subtitle{
color:var(--blue);
}

/* =========================================
5. ANIMATION
========================================= */

.fade-section{
opacity:1;
transform:translateY(40px);
transition:all .8s ease;
}

.fade-section.visible{
opacity:1;
transform:none;
}

/* =========================================
6. TABLE
========================================= */

table{
width:100%;
border-collapse:collapse;
}

th{
background:var(--blue);
color:#fff;
}

td,th{
/*padding:12px;*/
padding-top: 12px;
padding-bottom: 12px;
border-bottom:1px solid #ddd;
}

/* =========================================
7. FORM
========================================= */

input,select{
width:100%;
padding:10px;
margin-bottom:10px;
border-radius:6px;
border:1px solid #ccc;
background:var(--bg-card);
color:var(--text-main);
box-sizing:border-box;
height:42px;
}

/* =========================================
8. BUTTON
========================================= */

button{
background:var(--blue);
color:#fff;
border:none;
padding:10px 20px;
border-radius:6px;
cursor:pointer;
transition:.3s;
}

button:hover{
background:var(--orange);
transform:translateY(-2px);
}

/* =========================================
9. CAROUSEL & CARDS (инерционная и закольцованная)
========================================= */

.doc-carousel{
  display:flex;
  gap:20px;
  overflow-x: scroll; 
  overflow-y: hidden;
  cursor: grab;
  position: relative;
  scroll-behavior: auto;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: none;
  scrollbar-width:none; 
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.doc-carousel,
.doc-carousel * {
  user-select: none;
}

.doc-carousel::-webkit-scrollbar{
  display:none;               /* Chrome/Safari */
}

.doc-carousel.dragging{
  cursor: grabbing !important;
  user-select: none;
  scroll-snap-type: none;
  -webkit-user-select: none;
}

.doc-carousel.dragging .doc-card {
  cursor: grabbing !important;
}

.doc-card{
  flex:0 0 260px;             /* фиксированная ширина карточки */
  min-height: 120px;
  background:var(--bg-card);

  display: flex;                /* ← добавили */
  flex-direction: column;       /* ← важно */
  justify-content: center;      /* ← вертикально */
  align-items: center;          /* ← горизонтально */
  text-align: center;           /* ← текст */

  padding:20px;
  border-radius:14px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  position:relative;
  z-index:1;
  transition:all .3s ease;
  /*cursor:pointer;*/
  
  user-select:none;          /* отключаем выделение текста при прокрутке */
}

/* база */
.doc-swiper {
  cursor: grab;
}

/* при зажатии в любой части карусели */
.doc-swiper:active,
.doc-swiper:active .doc-card {
  cursor: grabbing !important;
}

/* карточки наследуют */
.doc-card {
  cursor: inherit;
}

/* pointer только при наведении (но НЕ во время drag) */
.doc-swiper:not(:active) .doc-card:hover {
  cursor: pointer;
}


/* Активная карточка (модальное окно по центру) */
.doc-card.active{
  position:fixed;
  display: block;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  /*/width:90%;*/
  max-width:600px;
  width: auto;            /* подстраивается под контент */
  height: auto;           /* подстраивается под контент */
  overflow-y: auto;  /* прокрутка, если много текста */
  text-align:left;
  z-index:1001;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  cursor:auto;
  transition: transform 0.4s ease, opacity 0.4s ease;
    padding:30px;
  background: var(--bg-card);

}

.doc-card.active.show {
  transform: translate(-50%, -50%) scale(1); /* полный размер */
  opacity: 1;                                 /* полностью видима */
}

.doc-card.active:hover{
  transform:translate(-50%,-50%); /* убираем дергание */
}

.doc-card.active .card-expanded{
  text-align:left;          /* ← чтобы точно */
}

.card-expanded p{
  margin-bottom:25px;
  line-height:1.4;
}

/* Overlay затемнение */
.overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.6);
  z-index:1000;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;
}

.overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* Контент внутри раскрытой карточки */
.card-expanded{
  margin-top:15px;
  animation:fadeIn .3s ease;
}

.doc-card i {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--accent, #2b6cb0);
  transition: transform .3s ease, color .3s ease;
}

.doc-card span {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

/* эффект при наведении */
.doc-card:hover i {
  transform: scale(1.15);
  color: #1a4f8b;
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

/* Адаптивность для мобильников */
@media(max-width:600px){
  .doc-card{
    flex:0 0 200px;
    padding:15px;
  }
}

@media (max-width: 768px){
  .doc-carousel{
    scroll-snap-type: none;
  }
}

/* Мобильное раскрытие карточки с зазором */
@media (max-width: 600px) {
  .doc-card.active {
    width: calc(100% - 20px);    /* ширина на 20px меньше экрана */
    max-width: calc(100% - 20px);
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    padding: 12px 15px;           /* внутренние отступы */
    border-radius: 12px;
    box-sizing: border-box;        /* учитываем padding */
  }
}

/* =========================================
10. PROGRESS BAR
========================================= */

#progressBar{
position:fixed;
top:0;
left:0;
height:4px;
background:var(--orange);
width:0%;
z-index:9999;
}

/* =========================================
11. CTA
========================================= 

.sticky-cta{
position:fixed;
bottom:20px;
right:20px;
}
*/
/* =========================================
12. AI BLOCK
========================================= */

.ai-block ul{
line-height:1.7;
}

/* плавная тема */
html{
transition:background .3s, color .3s;
}

/* overlay уже есть — ок */

/* кнопка назад */
.back-btn{
position:fixed;
bottom:20px;
right:20px;
z-index:1000;
}

/* mobile first */
.section{
padding:40px 15px;
}

/* планшеты */
@media(min-width:768px){
.section{
padding:60px 20px;
}
}

/* десктоп */
@media(min-width:1100px){
.section{
padding:80px 20px;
}
}

/* =========================================
13. STATS
========================================= */

.stats {
  padding: 60px 0; /* сверху/снизу */
}

.stats-grid {
  display: grid;
  gap: clamp(0.5rem, 2vw, 2rem); /* расстояние между блоками */
  justify-content: center;
  align-items: stretch;
  /* grid-template-columns: 1fr;  mobile first */
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom:5px;
  }
}

@media (min-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  /* нет padding/bg/shadow */
}

.stat-num {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-main);
}

@media (max-width: 576px) {
  .stat-label {
    font-size: 1rem; /* мобильные */
  }
}

/* =========================================
ROOT
========================================= */

:root{
  --nav-gap:20px;
}

/* =========================================
NAVBAR
========================================= */

.navbar{
  position: fixed;
  top: 0;
  left: 0;        /* 👈 важно */
  width: 100%;    /* 👈 важно */
  z-index: 999;
  background:var(--bg-card);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  min-height: 60px;
}

.nav-container{
  max-width:1100px;
  margin:auto;
  padding:10px 20px;
  height: auto;
}

/* =========================================
STRUCTURE (DESKTOP BASE)
========================================= */

.nav-menu{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
}

.nav-left,
.nav-center,
.nav-right{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--nav-gap);
}

.nav-left {
  position: relative;
}

.nav-center{
  flex: 1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:var(--nav-gap);
}

.nav-right{
  margin-left:auto;
}

/* =========================================
BUTTONS & INPUTS (ЕДИНАЯ ВЫСОТА)
========================================= */

.nav-btn,
.dropdown-btn,
.nav-search input,
.nav-search button{
  height:40px;
  box-sizing:border-box;
  align-items:center;
}

.nav-btn{
  padding:0 16px;
  white-space:nowrap;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================================
SEARCH
========================================= */

.nav-search{
  display: flex;
  align-items: stretch; /* 👈 ключевой момент */
  gap: 6px;
  height: 40px;
}

.nav-search input{
  min-width:180px;
  padding:0 10px;
  display:block;
  align-items:center;
  height:40px;
  line-height:normal;
  margin:0;          /* 👈 обязательно */
  box-sizing:border-box;
}

.nav-search button{
  padding:0 12px;
  cursor:pointer;
  height:40px;
  line-height:normal;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================================
THEME BUTTON
========================================= */

.theme-btn{
  width:40px;
  height:40px;
  min-width:40px;
  min-height:40px;
  flex:0 0 40px;
  aspect-ratio:1/1;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  padding:0;
  cursor:pointer;
}

/* =========================================
BURGER
========================================= */

.nav-toggle{
  display:none;
  font-size:24px;
  cursor:pointer;
}

/* =========================================
DROPDOWN
========================================= */

.dropdown{
  position:relative;
}

.dropdown-btn{
  background:none;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 8px;
  color: var(--text-main);
}

/* стрелка */
.arrow{
  display:inline-block;
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid var(--text-main);
  transition:.2s;
}

.dropdown.open .dropdown-content{
  display:flex;
}

.dropdown.open .arrow{
  transform:rotate(180deg);
}

@media (hover: hover) {
  .dropdown:hover .dropdown-content{
    display:flex;
  }

  .dropdown:hover .arrow{
    transform:rotate(180deg);
  }
}

/*
.dropdown:hover .arrow{
  transform:rotate(180deg);
}
*/
/* меню */
.dropdown-content{
  position:absolute;
  top:100%;
  left:0;
  margin-top:0;
  display:none;
  flex-direction:column;
  min-width:200px;
  padding-top: 10px;
  border-radius:8px;
  background:var(--bg-card);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  z-index:1000;
}

.dropdown-content a{
  padding:8px;
  border-radius:6px;
  text-decoration:none;
  color: var(--text-main);
  font-family:system-ui,sans-serif;
  font-size: 14px;
}

/* Временная яркая подсветка */
.highlight-btn {
  background: var(--orange) !important;
  color: var(--text-main);               /* по желанию, чтобы текст читался */
  transition: background 0.15s;
}
.highlight-item {
  background: var(--orange) !important;
  transition: background 0.15s;
}

.dropdown-content a:hover{
  /*background:rgba(0,0,0,.05);*/
  background: var(--orange); 
}
/*
.dropdown:hover .dropdown-content{
  display:flex;
}
*/
/* =========================================
MOBILE
========================================= */

@media(max-width:900px){

  /* показываем бургер */
  .nav-toggle{
    display:block;
  }

  /* меню колонкой */
  .nav-menu{
    flex-direction:column;
    align-items:stretch;
    gap:var(--nav-gap);
  }

  /* скрываем контент */
  .nav-left,
  .nav-center{
    display:none;
  }

  /* показываем при открытии */
  .nav-menu.active .nav-left,
  .nav-menu.active .nav-center{
    display:flex;
    flex-direction:column;
    gap:var(--nav-gap);
    width:100%;
  }

  /* верхняя строка */
  .nav-right{
    width:100%;
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }

  /* элементы на всю ширину */
  .nav-btn,
  .dropdown-btn{
    width:100%;
    justify-content:flex-start;
  }

  /* поиск */
  .nav-search{
    width:100%;
  }

  .nav-search input{
    flex:1;
    min-width:0;
  }

  /* dropdown */
  .dropdown{
    width:100%;
  }

  .nav-menu .dropdown-content a {
    font-size: 14px;       /* совпадает с размером текста в .dropdown-btn */
    line-height: 1.5;      /* чтобы текст не сжимался вертикально */
    white-space: nowrap;    /* не переносить длинные названия */
  }

  /* для уверенности можно также задать font-family и weight */
  .nav-menu .dropdown-content a {
    font-family: inherit;
    font-weight: 500;      /* совпадает с кнопкой, если нужно */
  }

  /* правый dropdown скрыт */
  .nav-right .dropdown{
    display:none;
  }

  .nav-menu.active .nav-right .dropdown{
    display:block;
  }

}



/* ЛОГОТИП */

.logo-img {
    height: clamp(50px, 12vw, 90px);  
    width: auto;
    max-width: 90vw;  
    max-height: 90px;
    object-fit: contain;  
    display: block;
    margin: 0 auto;  
}
/*
.logo-img {
    max-width: 100%;
    height: auto;                       
    width: clamp(150px, 30vw, 400px);   
    display: block;
    margin: 0 auto;
}
*/

@media (max-width: 576px) {
    .logo-img {
        height: clamp(50px, 15vw, 80px);  /* Меньше на очень маленьких экранах */
    }
}

@media (min-width: 1200px) {
    .logo-img {
        height: 110px;  /* Фикс для больших экранов */
    }
}

/* =========================================
HERO CARD
========================================= */

.hero-card {
  margin-top: 0;
  padding: 20px;

  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);

  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero.section{
  padding-top: 10px;
}

@media (min-width:768px){
  .hero.section{
    padding-top: 10px;
  }
}

@media (min-width:1100px){
  .hero.section{
    padding-top: 20px;
  }
}

/* =========================================
МОДУЛЬ ЧАСОВ И СТАТУСА
========================================= */

.time-widget {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: default;
}

/* время */
.time {
  font-size: 20px;
  font-weight: 600;
}

/* мигающее двоеточие */
.colon {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* цвета статуса */
.time-widget.blue { color: #3b82f6; }
.time-widget.green { color: #0F9D58; }
.time-widget.orange { color: #FF6633; }
.time-widget.red { color: #ef4444; }

/* tooltip (для внутренних страниц) */
.time-widget .tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%); /* только X! */

  background: #111;
  color: #fff;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

/* 🖥 только для устройств с мышью */
@media (hover: hover) {
  body:not([data-page="home"]) .time-widget:hover .tooltip {
    opacity: 1;
  }
}

/* hover только не на главной 
body:not([data-page="home"]) .time-widget:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}
*/
/* ===== ГЛАВНАЯ ===== */
body[data-page="home"] #homeTimeWidget {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

/* ===== NAVBAR ===== */
.navbar .time-widget {
  margin-left: auto;
}

.nav-time .status-text {
  display: none;
}

body[data-page="home"] .nav-time {
  display: none;
}

/* BONUS PULSATION 

.time-widget.orange {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
*/

/* -----------------------------------------
   Кнопка-логотип возврата на главную
----------------------------------------- */
.home-logo-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-100%, -50%);
  display: flex;
  align-items: left;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--text-main);
  z-index: 10;
  white-space: nowrap;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  background: transparent;
  width: 60px;                /* фиксированная ширина для резервирования места */
  height: 40px;
}


/* Скрываем на главной странице */
body[data-page="home"] .home-logo-btn {
  display: none;
}

/* Иконка SVG */
.home-logo-btn .logo-icon {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Текстовая версия – скрыта по умолчанию */
.home-logo-btn .home-text {
  display: none;
  font-family: inherit;
  font-size: 13.3px;
  font-weight: inherit;
  line-height: inherit;
  padding-left: 8px;
}

/* -----------------------------------------
   ОТСТУП ДЛЯ .nav-left НА ДЕСКТОПЕ
----------------------------------------- */
/* Применяется только если мы НЕ на главной (можно без условия, но тогда скроется и отступ) */
body:not([data-page="home"]) .nav-left {
  margin-left: 60px;          /* ширина логотипа (160px) + 10px зазор */
}

/* =========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (≤900px)
   ========================================= */
@media (max-width: 900px) {
  .home-logo-btn {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    justify-content: flex-start;
    margin: 0 0 8px 0;
    font-size: inherit;
  }

  .home-logo-btn .logo-icon {
    display: none !important;
  }

  .home-logo-btn .home-text {
    display: inline;
    white-space: normal;
  }

  /* убираем принудительный отступ */
  body:not([data-page="home"]) .nav-left {
    margin-left: 0;
  }
}

/* =========================================
STATUS BLOCK
========================================= */

.hero-status {
  text-align: center;
  margin-bottom: 40px;
}

.time {
  font-size: 1.4rem;
  font-weight: 600;
}

.status-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===============================
CONTACTS ABOVE LOGO
=============================== */
.hero-contacts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 20px; /* расстояние между контактами */
  flex-wrap: wrap; /* чтобы на маленьких экранах переносились */
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 6px; /* расстояние между текстом и иконками */
}

.info-table td {
  border-bottom: none;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
}

.contact-icons {
  display: flex;
  gap: 4px; /* уменьшаем gap между кнопками */
}

/* кнопки иконок — более узкие */
.icon-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  background: rgba(0,0,0,0.05);
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
  font-size: 0.85rem; /* под иконку */
  color: var(--text-main);
}

td .icon-btn {
  display: inline;
}

.icon-btn:hover {
  background: var(--orange);
  color: #fff;
}

/* скрываем QR-иконки на мобильных */
.icon-btn.qr-icon {
  display: inline-flex;
}

.title-with-qr {
  position: relative;       /* контейнер для absolute-позиционирования кнопки */
  padding-right: 40px;      /* оставляем место справа под кнопку, если нужно */
}

/* кнопка вывешена поверх, не влияет на высоту строки */
.title-with-qr .icon-btn {
  position: absolute;
  right: 0;
  top: 25%;
  /*transform: translateY(-50%);  центр по высоте заголовка */
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
  cursor: pointer;
}

.title-with-qr .icon-btn:hover {
  background: var(--orange);
  color: #fff;
}

@media (max-width: 900px) {
  .hero-contacts {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
  }

  .contact-item {
    justify-content: center;
  }

  /* QR-иконки на мобильных скрываем */
  .icon-btn.qr-icon {
    display: none;
  }
}

/* плавное появление куар-кода */

.modal-shell__content img {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*bonus for copy buttons*/ 

.icon-btn {
  transition: transform 0.15s ease;
}

.icon-btn:active {
  transform: scale(0.9);
}


/* ===============================
LOGO AND STATUS
=============================== */
.logo-img {
  display: block;
  margin: 0 auto;
  height: clamp(70px, 18vw, 120px);
  width: auto;
}

.subtitle {
  text-align: center;
  margin: 10px 0 5px 0;
  padding-top: 20px;
}

@media (max-width: 600px) {
  .subtitle {
    padding-top: 5px;
  }
}

.hero-status {
  text-align: center;
  margin-top: 40px;
}

.time {
  font-size: 1.3rem;
  font-weight: 600;
}

.status-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===============================
RESPONSIVE: MOBILE
=============================== */
@media (max-width: 900px) {
  .hero-contacts {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
  }

  .contact-item {
    justify-content: center;
  }
}

/* === CALCULATOR === */

.calculator{
  background:var(--bg-card);
  border-radius:16px;
  padding:32px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  max-width:720px;
  margin:auto;
}



.calc-form{
margin-top:20px;
}

.calc-grid{
display:grid;
gap:10px;
}

@media(min-width:600px){
.calc-grid{
grid-template-columns:1fr 1fr;
}
}

.calc-options label{
display:flex;
align-items:center;
gap:8px;
cursor:pointer;
}

.calc-options input{
width:auto;
margin:0;
}

.calc-result{
margin-top:20px;
padding:0; 
background:none;
}

.calc-actions{
display:flex;
gap:10px;
margin-top:10px;
}

.doc-list{
margin-top:20px;
display:flex;
flex-direction:column;
gap:10px;
}

.doc-card{
background:var(--bg-card);
padding:15px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,.05);
}

.doc-card b{
color:var(--orange);
}

/* === TABLE STYLE (как прайс) === */

.price-table th{
background:var(--blue);
color:#fff;
text-align:left;
}

.price-table td{
padding:8px; /* было 12 — уменьшаем */
}

.price-card{
  background:var(--bg-card);
  padding:32px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  max-width:500px;
  margin:auto;
}

.price-result{
  margin-top:20px;
  padding:15px;
  border-radius:8px;
  background:var(--bg-main);
  border-left:4px solid var(--orange);
}

#price-mod {
margin:5px auto 0;
padding-top:80px;
padding-bottom: 0;
}

.price-text {
  max-width: 500px;  
  margin: 20px auto 0;  
  padding: 44px;
}

.price-text a {
  color:#0077B6;
}

.price-text a:hover{
  color: var(--orange);
}

@media (max-width: 768px) {
  .price-text {
    padding-bottom: 0;
    padding-top: 24px;
  }
}


/* === TOTAL BLOCK (как прайс) === */

.total-box{

margin-top:20px;
  padding:15px;
  border-radius:8px;
  background:var(--bg-main);
  border-left:4px solid var(--orange);
}

/* === УМЕНЬШАЕМ ОТСТУПЫ === */

.doc-list{
gap:5px; /* было 10 */
}

.calc-result{
padding:10px; /* было 15 */
}

.remove-btn{
background:none;
border:none;
color:#999;
cursor:pointer;
font-size:16px;
}

.remove-btn:hover{
color:var(--orange);
}

/*крестик рядом с файлами в форме отправки файлов */

.file-remove {
  position: relative;
}

.file-remove::before {
  content: '';
  position: absolute;
  inset: -10px; /* увеличивает зону клика */
}

/*поле вывода результата валидации ИНН*/

.inn-result {

  margin-bottom: 8px;
  padding: 10px;
  border-radius: 8px;
  background:var(--bg-card);
  font-size: 14px;
  line-height: 1.4;
  display: none;
}

.inn-result.active {
  display: block;
}

/* убираем стрелки */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{
-webkit-appearance:none;
margin:0;
}

input[type=number]{
  appearance: none;
  -moz-appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.secondary-btn{
background:none;
color:var(--blue);
border:1px dashed var(--blue);
}

.secondary-btn:hover{
background:var(--blue);
color:#fff;
}

/* =========================================
ORDER STATUS BOX
========================================= */

.order-card{
  margin-top:20px;
  padding:15px 20px;
  border-radius:8px;

  background:var(--bg-card);
  border-left:4px solid var(--orange);

  box-shadow:0 4px 12px rgba(0,0,0,0.05);

  width:100%;        /* 👈 занимает всю ширину контейнера */
  max-width:100%;    /* 👈 НЕ ограничиваем */
  box-sizing:border-box;
  margin-left:0;
  margin-right:0;
}

/* текст внутри */
.order-card p{
  margin:6px 0;
}

/* статус — можно выделить цветом */
.order-status{
  font-weight:600;
  color:var(--blue);
}

.status-10 {
   border-left:4px solid #999;
}

.status-20 {
   border-left:4px solid orange;
}

.status-30 {
   border-left:4px solid #2196F3;
}

.status-40 {
   border-left:4px solid green;
}

/* Контейнер для input + кнопки */
.status-form {
  display: flex;
  gap: 10px; /* расстояние между полем и кнопкой */
  max-width:720px;
  margin: 0 auto;
}

/* Поле ввода занимает всю оставшуюся ширину */
.status-form input {
  flex: 1;           /* растягивается, чтобы занять доступное место */
  min-width: 0;      /* важно для корректного сжатия на маленьких экранах */
}

/* Кнопка сохраняет свою ширину */
.status-form button {
  flex: 0 0 auto;    /* не растягивается */
  white-space: nowrap;
}

/* =========================================
STATUS MODULE - INPUT + BUTTON
========================================= */

.status-form {
  display: flex;
  align-items: stretch; /* важный момент - выравниваем по высоте */
  gap: 6px;             /* расстояние между полем и кнопкой */
  height: 40px;          /* фиксированная высота, как в панели навигации */
}

/* Поле ввода */
.status-form input {
  flex: 1;               /* адаптивная ширина */
  min-width: 0;          /* важно для сжатия на мобилках */
  padding: 0 10px;
  height: 40px;
  line-height: normal;
  margin: 0;
  box-sizing: border-box;
}

/* Кнопка */
.status-form button {
  flex: 0 0 auto;        /* фиксированная ширина */
  padding: 0 12px;
  cursor: pointer;
  height: 40px;           /* одинаковая высота с input */
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* new status popup styles */

.status-form{
  display:flex;
  gap:10px;
  margin-bottom:20px;
}

.status-form input{
  flex:1;
  margin-bottom:0;
}

.order-card{
  background:var(--bg-main);
  border-radius:12px;
  padding:20px;
  border-left:4px solid var(--blue);
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}

.order-card p{
  margin:8px 0;
}


/* =========================================
FOOTER (без Bootstrap, fully standalone)
========================================= */

.site-footer{
  background: var(--bg-main); /* тот же фон, но без графики */
  padding: 3rem 0 1.5rem;
  margin-top: 60px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* контейнер как у твоих section */
.footer-container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= GRID ================= */

.footer-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.footer-col{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* десктоп */
@media (min-width:768px){
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* ================= TEXT ================= */

.site-footer h4{
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-brand{
  font-weight: 600;
}

.footer-text{
  font-size: 0.95rem;
}

/* ================= LINKS ================= */

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer a{
  color: var(--blue);
}

.site-footer a:hover{
  color: var(--orange);
}

.form-card a {
  color: var(--blue);
}

.form-card a:hover{
  color: var(--orange);
}


/* ================= BOTTOM ================= */

.footer-bottom{
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.footer-bottom-grid{
  display: grid;
  gap: 10px;
}

.footer-right{
  text-align: left;
}

@media (min-width:768px){
  .footer-bottom-grid{
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-right{
    text-align: right;
  }
}


/* ================= MISC ================= */

.footer-muted{
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-seo{
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.75rem;
}

/* ================= POLICIES ================= */

.footer-policies{
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

@media (min-width:768px){
  .footer-policies a:not(:last-child)::after{
    content:"•";
    margin-left:0.9rem;
    opacity:0.5;
  }
}

@media (max-width:767.98px){

  .site-footer{
    padding: 2rem 0 1.2rem;
  }

  .footer-policies{
    flex-direction: column;
    gap: 0.3rem;
  }

  .footer-policies a::after{
    content:none;
  }
}

/* =========================================
POLICY PAGE
========================================= */

.policy{
  max-width: 900px; /* уже чем обычный контент → лучше читается */
}

/* заголовок */
.policy-title{
  text-align: center;
  margin-bottom: 10px;
}

.policy-date{
  text-align: right;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 30px;
}

/* контент */
.policy-content{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* заголовки */
.policy h2{
  margin-top: 30px;
  font-size: 1.4rem;
}

.policy h3{
  margin-top: 15px;
  font-size: 1.1rem;
}

/* текст */
.policy p{
  margin: 0;
}

/* списки */
.policy-list{
  padding-left: 18px;
  margin: 0;
}

.policy-list li{
  margin-bottom: 6px;
}

/* карточки (вместо bootstrap row/col) */
.policy-card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

/* десктоп */
@media (min-width:768px){
  .policy-row{
    grid-template-columns: 180px 1fr;
    align-items: start;
  }
}

.policy-label{
  font-weight: 600;
  color: var(--blue);
}

/* ссылки */
.policy a{
  color: var(--blue);
}

.policy a:hover{
  color: var(--orange);
}

.policy-sublist {
  list-style-type: none;      /* убираем буллеты */
  padding-left: 0;            /* убираем стандартный отступ списка */
  margin: 0;
}

.policy-sublist li {
  margin-left: 1em;           /* создаем утопление текста */
  text-indent: 0;             /* гарантируем, что текст не сдвигается дополнительно */
}


/* =========================================
ЛЕНДИНГИ
========================================= */

/* =========================================
LANDING GRID (Bootstrap replacement)
========================================= */

.grid{
display:grid;
gap:20px;
}

.grid-2{
grid-template-columns:1fr;
}

.grid-center{
max-width:600px;
margin:0 auto;
}

@media(min-width:768px){
.grid-2{
grid-template-columns:1fr 1fr;
}
}

.grid-3 {
    grid-template-columns: 1fr; /* по одной кнопке в столбец на мобильных */
}


@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr 1fr; /* три кнопки в ряд на десктопе */
    }
}

/* =========================================
SPACING (Bootstrap-like)
========================================= */

.mb-5{ margin-bottom:60px; }
.mt-4{ margin-top:30px; }
.mt-3{ margin-top:20px; }
.mt-2{ margin-top:10px; }

.text-center{ text-align:center; }

.small{ font-size:14px; }

/* =========================================
TEXT
========================================= */

.lead{
font-size:18px;
color:var(--blue);
}

.muted{
opacity:.7;
}

/* =========================================
BUTTON SYSTEM (Bootstrap imitation)
========================================= */

.btn-primary{
background:var(--blue);
color:#fff;
width:100%;
}

.btn-outline{
background:transparent;
border:2px solid var(--blue);
color:var(--blue);
width:100%;
}

.btn-secondary{
background:#777;
color:#fff;
}

.btn-lg{
padding:14px 20px;
font-size:16px;
}

/* ВАЖНО: имитация Bootstrap ширины */
@media(min-width:768px){
.grid-2 button{
width:100%;
}

.grid-2 > *{
max-width:100%;
}
}

.grid-2-center{
display:grid;
gap:20px;
grid-template-columns:1fr;
}

@media(min-width:768px){
.grid-2-center{
grid-template-columns:1fr 1fr;
}

/* ВАЖНО: центрирование */
.grid-2-center > *{
grid-column:1 / -1;   /* занимает всю строку */
max-width:500px;      /* ≈ половина контейнера */
margin:0 auto;        /* центр */
}
}

/* Центрирование CTA в сетке */
@media(min-width:768px){
.cta-row{
justify-items:center;
}

.cta-row button{
grid-column:1 / -1;   /* занимает всю строку */
max-width:50%;        /* РОВНО половина */
}
}

/* Оформление списка термин/значение */
.price-list{
  display: grid;
  gap: 8px 24px; /* вертикальный и горизонтальный отступ */
}

/* каждая строка — сетка с двумя колонками:
   левая колонка фиксированной ширины (как табуляция),
   правая — занимает остаток */
.price-list .row{
  display: contents; /* позволяет dt/dd участвовать в общей сетке */
}

/* задаём колонки для всего dl: фиксированная левая и гибкая правая */
.price-list {
  grid-template-columns: 160px 1fr; /* 160px — ширина "термина" (измените при необходимости) */
  align-items: start;
}

.price-list--wide { 
  grid-template-columns: 260px 1fr; 
}

/* стили для терминов и описаний */
.price-list dt{
  grid-column: 1 / 2;
  font-weight: 600;
  text-align: left; /* можно поставить right, если хотите выравнивать по правому краю */
  padding: 2px 0;
}

.price-list dd{
  grid-column: 2 / -1;
  margin: 0;
  padding: 2px 0;
}

/* уменьшить расстояние между колонками (как просили — примерно одна табуляция) */
.price-list { column-gap: 12px; }

/* адаптив: на очень узких экранах — одна колонка, термины над значениями */
@media (max-width: 520px){
  .price-list {
    grid-template-columns: 1fr;
  }
  .price-list dt{ grid-column: 1 / -1; }
  .price-list dd{ grid-column: 1 / -1; padding-left: 0.5em; }
}

/* примечание */
.note{ margin-top:12px; color:var(--muted-color, #666); font-size:14px; }

/* =========================================
LINKS
========================================= */

.link-primary{
color:var(--blue);
text-decoration: none !important;
}

.link-primary:hover{
color:var(--orange);
text-decoration: none !important;
}

/* =========================================
AI BLOCK
========================================= */

.ai-block{
background:var(--bg-card);
padding:32px;
border-radius:16px;
max-width: 1036px;
box-shadow:0 10px 30px rgba(0,0,0,.08);
margin:auto;
}

/* =========================================
BACK BUTTON
========================================= */

.back-btn-fixed{
position:fixed;
bottom:20px;
right:20px;
z-index:999;
}

/* =========================================
LANDING FIXES
========================================= */

.landing ul{
padding-left:20px;
}

.landing li{
margin-bottom:8px;
}

/* =========================================
PRICE LIST FULL
========================================= */

/* =========================================
TABLE BASE
========================================= */

.price-table{
width:100%;
border-collapse:collapse;
background:var(--bg-card);
border-radius:10px;
overflow:hidden;
font-size:0.9rem; /* уменьшили */
}

/* caption фикс */
.price-table caption{
caption-side:top;
text-align:center; /* было left */
font-weight:600;
margin-bottom:10px;
color:var(--blue);
width:100%;
display:table-caption;
}

/* заголовки */
.price-table th{
background:var(--blue);
color:#fff;
text-align:left;
padding:10px; /* было 12 */
font-size:0.9rem;
}

/* ячейки */
.price-table td{
padding:8px 10px; /* было 12 */
border-bottom:1px solid #eee;
font-size:0.9rem;
}

.price-table tr:hover{
background:rgba(0,0,0,0.03);
}

/* группы языков */
.lang-group td{
background:var(--bg-main);
font-weight:600;
color:var(--orange);
padding:8px 10px;
font-size:0.95rem;
}


/* =========================================
MOBILE
========================================= */

@media(max-width:768px){

/* НЕ увеличиваем масштаб! */
html{
font-size:15px; /* убрали 18px */
}

body{
font-size:0.95rem;
}

/* компактные секции */
.section{
padding:20px 12px;
}

/* =========================================
TABLE → CARDS (КОМПАКТНАЯ ВЕРСИЯ)
========================================= */

.price-table thead{
display:none;
}

.price-table,
.price-table tbody,
.price-table tr,
.price-table td{
display:block;
width:100%;
}

.price-table tr{
margin-bottom:8px; /* было 15 */
background:var(--bg-card);
border-radius:8px;
padding:6px; /* было 10 */
box-shadow:0 1px 4px rgba(0,0,0,0.05);
}

.price-table td{
display:grid;
grid-template-columns: 140px 1fr;
/* 👆 магия тут: первый столбец = по самому длинному label */
column-gap:6px;
padding:4px 6px;
border-bottom:1px solid #eee;
font-size:0.85rem;
line-height:1.3;
align-items:start;
}

.price-table td > *{
text-align:left;
}

.price-table td:last-child{
border-bottom:none;
}

/* подписи */
.price-table td::before{
content:attr(data-label);
font-weight:600;
color:var(--blue);
font-size:0.8rem;
white-space:nowrap; /* важно! */
}

/* значение */
.price-table td{
text-align:left;
}

/* группы */
.lang-group td{
padding:6px;
font-size:0.9rem;
line-height:1.3;
}

.lang-group td::before{
display:none;
}

}


/* =========================================
VISIBILITY HELPERS
========================================= */

.desktop-only{
display:block;
}

.mobile-only{
display:none;
}

@media(max-width:768px){
.desktop-only{
display:none;
}

.mobile-only{
display:block;
}
}

/* =========================================
FIX MOBILE TABLE OVERFLOW + GROUP WIDTH
========================================= */

@media(max-width:768px){

/* исправляем выход текста за экран */
.price-table td{
  display:grid;
  grid-template-columns: minmax(80px, 100px) 1fr; 
  column-gap:2px; 
  padding:3px 2px; 

  font-size:0.85rem;
  line-height:1.3;

  word-break: break-word;
  overflow-wrap: anywhere;
  box-sizing:border-box;
}

.price-table td::before{
  margin-right:2px; 
}

/* убираем переполнение из-за внутренних элементов */
.price-table td > *{
  min-width:0;
}

/* лейблы (слева) */
.price-table td::before{
  content:attr(data-label);
  font-weight:600;
  color:var(--blue);
  font-size:0.78rem;

  white-space:normal; /* обязательно */
}

/* строки-карточки */
.price-table tr{
  padding:6px;
  margin-bottom:6px;
}


/* РУБРИКИ НА ВСЮ ШИРИНУ */
.lang-group td{
  display:block;
  width:100%;
  padding:8px 6px;

  font-size:0.95rem;
  line-height:1.4;
}

.lang-group td::before{
  display:none;
}


/* делаем их визуально как блок */
.lang-group{
  margin-top:10px;
}

}



/* =========================================
COOKIE BANNER
========================================= */

.cookie-banner{
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: calc(100% - 40px);
  max-width: 1100px;
  z-index: 9999;

  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.cookie-banner.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cookie-content{
  background: var(--bg-card);
  color: var(--text-main);

  padding: 18px 20px;
  border-radius: 14px;

  display: flex;
  flex-direction: column;
  gap: 0;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

/* текст */
.cookie-content p{
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* ссылка */
.cookie-content a{
  color: var(--blue);
  text-decoration: underline;
}

/* кнопка */
.cookie-content button{
  align-self: flex-end;
  margin-top: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
}

/* адаптив */
@media (min-width: 600px){
  .cookie-content{
    flex-direction: row;
    align-items: center;
    justify-content: flex-start; /* было space-between */
    gap: 12px; /* теперь реально работает */
  }

  .cookie-content p{
    max-width: none;
  }

  .cookie-content button{
    margin-top: 0;
    margin-left: auto; 
  }
}



/* =========================================
FAQ FADE EXPAND
========================================= */
/* =========================================
FAQ FADE (PRO VERSION)
========================================= */

.faq-fade{
  position:relative;
  overflow:hidden;
  cursor:pointer;
}

/* внутренняя часть (анимируем её!) */
.faq-inner{
  max-height:140px;
  overflow:hidden;
  transition:max-height 0.5s ease;
}

/* градиент */
.faq-fade::after{
  content:"";
  position:absolute;
  bottom:40px;
  left:0;
  width:100%;
  height:60px;

  background:linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    var(--bg-card)
  );

  pointer-events:none;
  transition:opacity 0.3s;
}

/* кнопка */
.faq-toggle{
  text-align:center;
  padding:10px;
  font-size:0.9rem;
  color:var(--blue);
  font-weight:500;
}

/* раскрыто */
.faq-fade.expanded .faq-inner{
  max-height: none; /* ключевой момент */
}

.faq-fade.expanded::after{
  opacity:0;
}

/* текст кнопки меняется */
.faq-fade.expanded .faq-toggle{
  content:"Скрыть";
}

/* hover */
.faq-fade:hover .faq-toggle{
  color:var(--orange);
}

/* /////////////// CONTACTS AND BANK DETAILS
////////////////////*/

/* =========================================
INFO TABLE (контакты / реквизиты)
========================================= */

.info-table{
  /*width:100%;*/
  max-width:720px;
  border-collapse:collapse;
  background:var(--bg-card);
  border-radius:10px;
  overflow:hidden;
  margin-top:15px;
  margin:auto;
}

.info-table .contact-item {
display: block; 
}

/* строки */
.info-table tr{
  border-bottom:1px solid #eee;
}

/* ячейки */
.info-table td{
  /*padding:12px;*/
  vertical-align:top;
}

/* левая колонка (названия) */
.info-table td:first-child{
  width:260px;
  font-weight:600;
  color:var(--blue);
}

/* hover */
.info-table tr:hover{
  background:rgba(0,0,0,0.03);
}

/* =========================================
MOBILE
========================================= */

@media(max-width:768px){

.info-table td{
  /*padding:10px 8px;*/
  font-size:0.9rem;
}

/* делаем компактнее, но НЕ карточки */
.info-table td:first-child{
  width:140px;
}

}

/* =========================================
МОДУЛИ ФОРМ ОТПРАВКИ ДАННЫХ
========================================= */

.form-card{
  background:var(--bg-card);
  border-radius:16px;
  padding:32px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  max-width:720px;
  margin:auto;
}

textarea{
  width:100%;
  min-height:120px;
  padding:10px;
  border-radius:6px;
  border:1px solid #ccc;
  background:var(--bg-card);
  color:var(--text-main);
  resize:vertical;
  box-sizing:border-box;
  margin-bottom:10px;
  font-family:inherit;
  font-size: 14px;
}

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:12px 0 20px;
  font-size:14px;
}

.checkbox-row input{
  width:auto;
  height:auto;
  margin:4px 0 0;
}

.dropzone{
  border:2px dashed var(--blue);
  border-radius:12px;
  padding:28px;
  text-align:center;
  cursor:pointer;
  transition:.3s;
  margin-bottom:14px;
}

.dropzone:hover,
.dropzone.dragover{
  border-color:var(--orange);
  background:rgba(0,119,182,.05);
}

.dropzone span{
  color:var(--orange);
  font-weight:600;
}

.file-list{
  margin-top:12px;
  font-size:14px;
  text-align:left;
}

.file-item{
  padding:6px 10px;
  background:rgba(0,119,182,.08);
  border-radius:6px;
  margin-top:6px;
}

.honeypot{
  position:absolute !important;
  left:-9999px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.spinner{
  display:inline-block;
  width:14px;
  height:14px;
  margin-right:8px;
  border:2px solid rgba(255,255,255,.4);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .8s linear infinite;
  vertical-align:middle;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

/*////////ОКНО ПОДТВЕРЖДЕНИЯ///////*/

/* =========================
   SUCCESS MODAL
========================= */

.success-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.success-modal.visible{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.success-modal__backdrop{
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
}

.success-modal__content{
  position: relative;
  z-index: 2;

  min-width: 320px;
  max-width: 420px;

  padding: 32px 28px;
  border-radius: 18px;

  background: var(--bg-card);
  color: var(--text-main);

  text-align: center;

  box-shadow: 0 20px 60px rgba(0,0,0,.25);

  transform: translateY(20px) scale(.95);
  transition: transform .3s ease;
}

.success-modal.visible .success-modal__content{
  transform: translateY(0) scale(1);
}

.success-modal__icon{
  width: 64px;
  height: 64px;

  margin: 0 auto 18px;

  border-radius: 50%;

  background: #2a9d8f;
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
  font-weight: 700;
}

/* ВСПЛЫВАЮЩИЙ ПОПАП МОДУЛЬ ОТПРАВКИ ФОРМ */

/* GLOBAL FORM MODAL */

.modal-shell{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
  padding:20px;
}

.modal-shell.visible{
  display:flex;
}

.modal-shell__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(5px);
}

.modal-shell__content #price-mod {
  padding-top: 20px;   /* небольшой комфортный отступ, можно 0, если хотите */
}

/* Price modal – окно без ограничения высоты, с прокруткой страницы */
.modal-shell.price-modal {
  /*align-items: flex-start;*/
  overflow-y: auto;
}

.modal-shell.price-modal .modal-shell__window {
  max-height: none;
  overflow: visible;
}

.modal-shell.price-modal .modal-shell__content {
  max-height: none;
  overflow-y: visible;
  cursor: default;   /* убираем grab, т.к. прокрутка идёт на странице */
}


.modal-shell__window{
  position:relative;
  z-index:2;

  width:min(100%,720px);
  max-height:99vh;

  overflow:visible;

  background:transparent;
  padding:0;
  border:none;
  box-shadow:none;
}

.modal-shell__content{
  position:relative;
}

.modal-shell__window.qr-mode {
  width: fit-content; /* Контейнер обернет содержимое плотно */
  margin: 0 auto;     /* Оставляет окно по центру */
}


/* КНОПКА ЗАКРЫТИЯ */

.modal-shell__close{
  position:absolute;
  top:-14px;
  right:-14px;

  width:42px;
  height:42px;

  border:none;
  border-radius:50%;

  background:rgba(0,0,0,.65);
  color:#fff;

  font-size:26px;
  line-height:1;

  cursor:pointer;
  z-index:5;

  display:flex;
  align-items:center;
  justify-content:center;

  transition:.25s;
}

.modal-shell__close:hover{
  transform:scale(1.08);
  background:var(--orange);
}

@keyframes modalFade{
  from{
    opacity:0;
    transform:translateY(15px) scale(.98);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* radio buttons */


.person-toggle {
  position: relative;
  display: inline-flex;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 14px;
  
}

.person-toggle input {
  display: none;
}

.person-toggle label {
  position: relative;
  z-index: 2;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-main);
  transition: 0.3s;
}

.person-toggle input:checked + label {
  color: #fff;
}

.person-toggle .slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 50%;
  background: var(--blue);
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#leg:checked ~ .slider {
  left: 50%;
}


/* messages */

/* =========================
   TOAST NOTIFICATIONS
========================= */

#toastContainer{
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000000; /* ВЫШЕ МОДАЛОК */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast{
  min-width: 260px;
  max-width: 320px;

  padding: 14px 16px;
  border-radius: 12px;

  color: #fff;
  font-size: 14px;

  box-shadow: 0 10px 30px rgba(0,0,0,.25);

  opacity: 0;
  transform: translateY(-10px);

  transition: all .25s ease;
}

.toast.visible{
  opacity: 1;
  transform: translateY(0);
}

.toast-success{
  background: #2a9d8f;
}

.toast-error{
  background: #e63946;
}

/* =========================
   СКРОЛЛ В МОДАЛЬНОМ ОКНЕ БЕЗ ПОЛОСЫ
========================= */
.modal-shell__content {
  max-height: 99vh;
  overflow-y: auto;
  
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */

  cursor: grab;
  user-select: none;
}

.modal-shell__content::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Opera */
}

.modal-shell__content.grabbing {
  cursor: grabbing;
}

/* =========================
   TOAST НАД ПОЛЕМ ВВОДА
========================= */
.field-toast {
  position: fixed;
  z-index: 1000001;
  background: #e63946;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.field-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ВАЛИДАЦИЯ ПОЛЕЙ
========================= */
.input-valid {
  border-color: #2a9d8f !important;
}
.input-invalid {
  border-color: #e63946 !important;
}

.checkbox-row.input-invalid {
  outline: 1px solid #e63946;
  outline-offset: 4px;
  border-radius: 2px;
}
.checkbox-row.input-valid {
  outline: 1px solid #2a9d8f;
  outline-offset: 4px;
  border-radius: 2px;
}

/* =========================================
NEWS CAROUSEL (FIXED)
========================================= */

.news-carousel {
  text-align: center;

  margin-bottom: 80px;
}

/* сам swiper — ВНУТРИ контейнера */
.news-swiper {
  max-width: 1100px;
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 16px;
}

/* каждый слайд */
.news-swiper .swiper-slide {
  width: 100%;
}

/* карточка */
.news-card {
  width: 100%;
  height: 400px;

  display: flex;
  flex-direction: column;

  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  /*box-shadow: 0 10px 30px rgba(0,0,0,.1);*/

  cursor: pointer;
  transition: transform .3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
}

/* изображение */
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* контент */
.news-content {
  flex: 1;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content h3 {
  margin-bottom: 10px;
}

.news-content p {
  margin: 0;
}

/* мобильная версия */
@media (max-width: 600px) {
  .news-swiper {
    padding: 0 10px;
  }

  .news-card {
    /*height: 260px;*/
    height: auto;
    display: block;
    background: transparent;
  }

  .news-card img {
    /*height: 260px;*/
    width: 100%;
    height: auto;
    display: block;
    object-fit: initial;
  }

    .news-content {
    padding: 16px 20px 20px;
  }

}

/* Планшеты и небольшие ноутбуки: 601 – 1100 пикселей */
@media (min-width: 601px) and (max-width: 1100px) {
  .news-card {
    height: auto;               /* убираем жёсткую высоту */
    max-height: 320px;          /* ограничиваем, чтобы не растягивалось на весь экран */
  }

  .news-card img {
    height: auto;               /* позволяем картинке сохранять пропорции */
    max-height: 320px;          /* не превышать высоту карточки */
    width: 100%;
    object-fit: contain;        /* показываем изображение полностью, без обрезки */
    display: block;
  }
}