:root {
  --ts-blue: #1e90ff; /* Основной синий */
  --ts-light-blue: #4682b4; /* Светло-синий */
  --ts-accent: #00bfff; /* Акцентный цвет */
  --ts-red: #ff4500; /* Красный (резервный) */
  --ts-dark: #1c2526; /* Темный фон */
  --ts-gray: #f8fafc; /* Светлый фон */
}

@media (min-width: 1536px) {
  .container {
    max-width: 1236px;
  }
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.7;
  letter-spacing: 0.02em;
  font-weight: 400;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

html {
  scroll-behavior: smooth;
}

/* Основные стили слайдера */
.ts-slider-wrap {
  background: linear-gradient(180deg, #08203e 0%, #071a31 100%);
}

.ts-slider {
  position: relative;
  overflow: hidden;
  max-width: 1236px;
  margin: 0 auto;
  border-radius: 12px;
}

.ts-slider-fade {
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

.ts-slider-fade-left {
  left: 0;
  background: linear-gradient(to right, #08203e 0%, transparent 100%);
}

.ts-slider-fade-right {
  right: 0;
  background: linear-gradient(to left, #071a31 0%, transparent 100%);
}

.swiper {
  width: 100%;
}

.swiper-slide {
  position: relative;
  height: 580px;
}

.slide-bg {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
}

.swiper-slide {
  min-height: 400px;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.slide-overlay.gradient1 {
  background: linear-gradient(135deg, var(--ts-dark) 0%, var(--ts-blue) 100%);
}

.slide-overlay.gradient2 {
  background: linear-gradient(135deg, var(--ts-blue) 0%, var(--ts-dark) 100%);
}

.slide-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.slide-content > div {
  background: #14141e;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  color: white;
  max-width: 800px;
  width: 100%;
}

@media (max-width: 768px) {
  .slide-content {
    padding: 0.75rem;
  }
  .slide-content > div {
    padding: 1rem;
  }
  .swiper-slide {
    min-height: 500px;
  }
  .ts-slider-fade {
    display: none;
  }
}

.slide-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.slide-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .buttons-container {
    flex-direction: row;
  }
}

.accent-text {
  color: var(--ts-accent);
}

/* Стили навигации Swiper */
.ts-slider-wrap {
  position: relative;
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  backdrop-filter: none;
  opacity: 1 !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  transition: background 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.3);
}

.swiper-button-prev {
  left: 8px;
}

.swiper-button-next {
  right: 8px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--ts-accent);
}

/* Адаптивность */
@media (max-width: 768px) {
  .slide-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-item {
    font-size: 0.85rem;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#home {
  height: 768px;
}

.bg-ts-blue {
  background-color: var(--ts-blue);
}

.bg-ts-light-blue {
  background-color: var(--ts-light-blue);
}

.bg-ts-accent {
  background-color: var(--ts-accent);
}

.bg-ts-red {
  background-color: var(--ts-red);
}

.bg-ts-dark {
  background-color: var(--ts-dark);
}

.bg-ts-gray {
  background-color: var(--ts-gray);
}

header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-ts-blue {
  color: var(--ts-blue);
}

.text-ts-accent {
  color: var(--ts-accent);
}

.text-ts-red {
  color: var(--ts-red);
}

.text-ts-light-blue {
  color: var(--ts-light-blue);
}

.border-ts-accent {
  border-color: var(--ts-accent);
}

.border-ts-red {
  border-color: var(--ts-red);
}

.btn-primary {
  background: linear-gradient(135deg, #1e90ff 0%, #0a6edb 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3aa0ff 0%, #1e90ff 100%);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.5);
}

.btn-secondary {
  background-color: var(--ts-dark);
  color: white;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(28, 37, 38, 0.3);
}

.btn-secondary:hover {
  background-color: #33454a;
  box-shadow: 0 0 0 2px var(--ts-accent), 0 10px 24px rgba(0, 191, 255, 0.4);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.55);
}

.btn-outline {
  background-color: transparent;
  color: var(--ts-accent);
  border: 2px solid var(--ts-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 191, 255, 0.2);
}

.btn-outline:hover {
  background-color: var(--ts-accent);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.5);
}

/* Слайдер */
.slider {
  position: relative;
  overflow: hidden;
}

.slide {
  opacity: 0;
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide.active {
  opacity: 1;
  position: relative;
}

/* Тарифные планы */
.pricing-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Стили для отзывов */
.testimonials-slider .swiper-wrapper {
  align-items: stretch;
}

.testimonials-slider .swiper-slide {
  height: auto;
  display: flex;
}

.testimonial-card {
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonials-wrap {
  position: relative;
  overflow: visible;
}

.testimonials-pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.testimonials-swiper-prev,
.testimonials-swiper-next {
  position: absolute;
  top: 0;
  bottom: 2.5rem;
  margin: auto;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: var(--ts-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}

.testimonials-swiper-prev { left: -60px; }
.testimonials-swiper-next { right: -60px; }

@media (max-width: 900px) {
  .testimonials-swiper-prev,
  .testimonials-swiper-next {
    display: none;
  }
}

.testimonials-swiper-prev:hover,
.testimonials-swiper-next:hover {
  background: var(--ts-accent);
}

.testimonials-swiper-prev::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) translateX(2px);
}

.testimonials-swiper-next::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid white;
  border-top: 2px solid white;
  transform: rotate(45deg) translateX(-2px);
}

.testimonials-pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.testimonials-pagination .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
  width: 8px;
  height: 8px;
}

.testimonials-pagination .swiper-pagination-bullet-active {
  background: var(--ts-blue);
  width: 20px;
  border-radius: 4px;
}

/* Анимированные иконки */
.feature-icon {
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.feature-box:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--ts-accent);
  filter: drop-shadow(0 0 10px var(--ts-accent));
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
  animation-fill-mode: both;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--ts-accent);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.bounce {
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.nav-link {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.5rem 0.68rem;
  border-radius: 10px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* Задержки для анимации */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}

/* Волнистый разделитель */
.wave-divider {
  height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23f3f4f6' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,176C384,192,480,192,576,181.3C672,171,768,149,864,154.7C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

#mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 250px;
  height: 100%;
  z-index: 1000;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

#site-wrapper.shifted {
  transform: translateX(250px); /* Сдвиг сайта вправо */
  overflow: hidden; /* Отключение прокрутки */
}

#mobile-menu.open {
  left: 0;
}

/* ===== Минималистичный калькулятор ===== */
.calc-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.calc-panel {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.calc-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 2rem;
  max-width: 320px;
}

.calc-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-tab.active {
  background: var(--ts-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(30, 144, 255, 0.3);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.calc-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

.calc-stepper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.calc-step-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 1.2rem;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-step-btn:hover {
  border-color: var(--ts-blue);
  color: var(--ts-blue);
  background: white;
}

.calc-step-val {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  min-width: 36px;
  text-align: center;
}

.calc-slider {
  width: 100%;
  margin-bottom: 1.5rem;
  accent-color: var(--ts-blue);
  cursor: pointer;
  height: 4px;
}

.calc-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.calc-preset {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-preset.active,
.calc-preset:hover {
  background: var(--ts-blue);
  border-color: var(--ts-blue);
  color: white;
}

/* Нижняя итоговая полоса */
.calc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  background: #f8fafc;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.calc-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calc-card-loc {
  font-size: 0.82rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-card-price {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.calc-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.calc-card-btn {
  display: inline-block;
  background: var(--ts-blue);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.calc-card-btn:hover {
  background: var(--ts-accent);
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.35);
}

.calc-card-link {
  font-size: 0.82rem;
  color: #9ca3af;
  text-decoration: none;
  white-space: nowrap;
}

.calc-card-link:hover {
  color: var(--ts-blue);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .calc-panel {
    padding: 1.5rem;
  }
  .calc-card {
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .calc-card-actions {
    align-items: stretch;
    width: 100%;
  }
  .calc-card-btn {
    text-align: center;
  }
}

/* ===== Секция партнёров ===== */
.vs-partners {
  background: linear-gradient(135deg, #0D2B6B 0%, #0B5E8A 100%);
  padding: 1.25rem 0;
}

.vs-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 900px) {
  .vs-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .vs-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.vs-partner-item {
  min-height: 82px;
  border-radius: 14px;
  border: 1px solid rgba(164, 209, 255, 0.3);
  background: rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.vs-partner-item:hover {
  border-color: rgba(164, 209, 255, 0.6);
  background: rgba(15, 23, 42, 0.4);
}

.vs-partner-item img {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.9);
  opacity: .85;
  transition: opacity .2s ease, filter .2s ease;
}

.vs-partner-item:hover img {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
}

/* Плитка ЮKassa: логотип уже белый/брендовый — без осветляющего фильтра */
.vs-partner-item--yk img {
  filter: none;
  opacity: 0.9;
}

.vs-partner-item--yk:hover img {
  filter: none;
  opacity: 1;
}

/* Логотипы способов оплаты (страница «Оплата») — единая высота */
.pay-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* ===== Футер ===== */
.vs-footer {
  background: linear-gradient(180deg, #08203e 0%, #071a31 100%);
  color: #d4e4f6;
  padding: 40px 0 50px;
}

.vs-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .vs-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .vs-footer-grid {
    grid-template-columns: 1fr;
  }
}


.vs-footer-logo img {
  height: 50px;
  width: auto;
}

.vs-footer-text {
  margin: 14px 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #b9d0e8;
}

.vs-footer-social {
  display: flex;
  gap: 10px;
}

.vs-footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(38, 166, 255, 0.2);
    color: #e8f3ff;
    transition: transform .16s ease, background-color .16s ease;

}

.vs-footer-social a:hover {
  background: rgba(38, 166, 255, 0.4);
  transform: translateY(-2px);
}

.vs-footer-social a i,
.vs-footer-social a .svg-inline--fa {
  font-size: 18px;
}

.vs-footer-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.vs-footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vs-footer-list a {
  color: #c6dbef;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .16s ease;
}

.vs-footer-list a:hover {
  color: white;
}

.vs-footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vs-footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c6dbef;
  font-size: 14px;
}

.vs-footer-contacts i {
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
}

.vs-footer-contacts .fa-envelope { color: #34d399; }
.vs-footer-contacts .fa-phone-alt { color: #60a5fa; }
.vs-footer-contacts .fa-map-marker-alt { color: #f87171; }
.vs-footer-contacts .fa-building { color: #a78bfa; }

.vs-footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #9fbedf;
}

.vs-footer-bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(163, 208, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: #475569;
}

.vs-footer-legal {
  display: flex;
  gap: 1.25rem;
}

.vs-footer-legal a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.vs-footer-legal a:hover {
  color: #94a3b8;
}
