/* ===================================================
   СНК ЗИЛАНТ — Основные стили
   Специализированная налоговая компания
   =================================================== */

/* --- Шрифты Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* --- CSS-переменные --- */
:root {
  --primary: #0992C3;
  --primary-dark: #077a9e;
  --primary-light: #e8f6fb;
  --primary-glow: rgba(9, 146, 195, 0.15);
  --gray: #5a5a5a;
  --gray-light: #8a8a8a;
  --text: #1a1a1a;
  --text-light: #3d3d3d;
  --bg: #ffffff;
  --bg-alt: #f7f9fb;
  --bg-dark: #0c1e2a;
  --border: #e2e6ea;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 4px 30px rgba(9,146,195,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background: var(--primary);
  color: white;
}

/* --- Типографика --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* --- Контейнер --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Секции --- */
.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--bg-alt);
}

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

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: white;
}

.section--dark p {
  color: rgba(255,255,255,0.85);
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section__title {
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
}

.section__header {
  text-align: center;
  margin-bottom: 36px;
}

.section__header .section__subtitle {
  margin: 0 auto;
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(9,146,195,0.3);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn--white {
  background: white;
  color: var(--primary);
}

.btn--white:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* --- Хедер --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo img {
  height: 48px;
  width: auto;
}


/* --- Текстовый логотип --- */
.header__logo-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.header__logo-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Футер текстовый лого */
.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.header__logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header__nav {
  display: none;
}

.header__nav.active {
  display: flex;
}

.header__nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.header__nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--primary);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__cta {
  display: none;
}

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.header__burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  display: block;
  padding: 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu__link:hover {
  color: var(--primary);
}

.mobile-menu__cta {
  margin-top: 32px;
}

/* --- Hero секция --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Декоративные рамки — мотив из логотипа */
.hero__frame {
  position: absolute;
  border: 2px solid rgba(9,146,195,0.08);
  border-radius: 4px;
  pointer-events: none;
}

.hero__frame--1 {
  top: 10%;
  right: -5%;
  width: 45%;
  height: 60%;
  transform: rotate(-2deg);
}

.hero__frame--2 {
  top: 15%;
  right: -3%;
  width: 42%;
  height: 55%;
  transform: rotate(1deg);
}

.hero__frame--3 {
  top: 12%;
  right: -4%;
  width: 43%;
  height: 57%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  margin-bottom: 24px;
  font-weight: 700;
}

.hero__title span {
  color: var(--primary);
}

.hero__text {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.hero__stat-text {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 4px;
}

/* Внутренние Hero-блоки (для подстраниц) */
.page-hero {
  padding: 120px 0 44px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 2px solid rgba(9,146,195,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero__breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.page-hero__breadcrumb a {
  color: var(--gray);
}

.page-hero__breadcrumb a:hover {
  color: var(--primary);
}

.page-hero__title {
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
}

/* --- Карточки услуг --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 28px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--primary);
  color: white;
}

.service-card__title {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card__link svg {
  transition: transform var(--transition);
}

.service-card__link:hover svg {
  transform: translateX(4px);
}

/* --- Блок «Почему мы» --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}

.feature-item__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-item__text {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Цифры доверия --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-block {
  text-align: center;
  padding: 24px 12px;
}

.stat-block__num {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.section--dark .stat-block__num {
  color: white;
}

.stat-block__text {
  font-size: 0.92rem;
  color: var(--text-light);
}

.section--dark .stat-block__text {
  color: rgba(255,255,255,0.75);
}

/* --- Команда --- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.team-card {
  text-align: center;
  padding: 28px 20px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light), #e0f0f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(9,146,195,0.15);
  overflow: hidden;
  object-fit: cover;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card__text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Отзывы --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  padding: 26px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card__quote {
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.testimonial-card__text {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-card__author {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.testimonial-card__company {
  font-size: 0.85rem;
  color: var(--gray);
}

/* --- Статьи --- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.article-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.article-card__img {
  height: 170px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #d4eef7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.article-card__body {
  padding: 20px;
}

.article-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.article-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-card__title a {
  color: var(--text);
}

.article-card__title a:hover {
  color: var(--primary);
}

.article-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Страница статьи */
.article-content {
  max-width: 760px;
  margin: 0 auto;
}

.article-content h2 {
  margin: 40px 0 16px;
  font-size: 1.6rem;
}

.article-content h3 {
  margin: 32px 0 12px;
  font-size: 1.3rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 20px 24px;
  color: var(--text-light);
}

.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.article-content blockquote p {
  margin-bottom: 0;
  color: var(--text);
}

/* --- Форма --- */
.form {
  max-width: 560px;
}

.form--centered {
  margin: 0 auto;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* --- CTA секция --- */
.cta-section {
  background: linear-gradient(135deg, #0a7da8 0%, #0992C3 50%, #0ba8de 100%);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  pointer-events: none;
}

.cta-section::before {
  top: 20px;
  left: -40px;
  width: 200px;
  height: 150px;
  transform: rotate(-5deg);
}

.cta-section::after {
  bottom: 20px;
  right: -30px;
  width: 250px;
  height: 180px;
  transform: rotate(3deg);
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.92);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* --- Футер --- */
.footer {
  background: var(--bg-dark);
  padding: 48px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer__brand-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 16px;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__list a:hover {
  color: white;
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer__contact-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* --- Анимации при скролле --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger-анимации для карточек */
.stagger > * {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* --- Декоративный разделитель «рамка» --- */
.frame-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 18px;
}

.frame-divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Утилиты --- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-40 { margin-bottom: 32px; }

/* --- Процесс работы --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

.process-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  counter-increment: step;
}

.process-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.process-step__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.process-step__text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Контактная страница --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.contact-info-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-info-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-info-card__text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Уведомление формы --- */
.form-success {
  display: none;
  padding: 20px;
  background: #e8faf0;
  border: 1px solid #34d399;
  border-radius: var(--radius);
  color: #065f46;
  text-align: center;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* =============================================
   АДАПТИВ — Планшет (768px+)
   ============================================= */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding: 72px 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(4, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .hero__stats { gap: 48px; }
}

/* =============================================
   АДАПТИВ — Десктоп (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  .container { padding: 0 40px; }
  .section { padding: 88px 0; }

  /* Показываем навигацию, прячем бургер */
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__burger {
    display: none;
  }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }

  .hero__content { max-width: 600px; }
  .hero__stats { gap: 60px; }

  /* Процесс — в 4 колонки */
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .process-step { flex-direction: column; text-align: center; }
}

/* =============================================
   АДАПТИВ — Большой десктоп (1400px+)
   ============================================= */
@media (min-width: 1400px) {
  :root { --max-width: 1320px; }
}

/* --- Комплекс услуг (checklist-блоки) --- */
.services-package {
  margin-top: 40px;
}

.services-package__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.package-card {
  padding: 26px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.package-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 2px 0 0 2px;
}

.package-card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.package-card__heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.package-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-card__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.package-card__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.package-card__check svg {
  width: 12px;
  height: 12px;
  stroke: var(--primary);
  stroke-width: 3;
  fill: none;
}

@media (min-width: 768px) {
  .package-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .package-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ═══ ДОРАБОТКИ: КОНТРАСТ И АДАПТИВНОСТЬ ═══ */

/* Hero stats подложка на слайдере */
.hero-slider .hero__stats {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  border-top: none;
}

/* Карта — интеграция в дизайн */
#chartdiv {
  border-radius: var(--radius-lg);
}

.map-section .fade-up > div:first-child {
  box-shadow: var(--shadow-lg);
}

/* Квиз — ограничение ширины на больших экранах */
@media (min-width: 1024px) {
  .quiz { max-width: 700px; }
}

/* Калькулятор результат — крупнее на десктопе */
@media (min-width: 768px) {
  .calc-savings__result-num { font-size: 2.8rem; }
}

/* Hero slider — минимальная высота на коротких экранах */
@media (max-height: 700px) {
  .hero-slider { min-height: auto; }
  .hero-slider__track { min-height: 600px; }
  .hero-slider__content { padding: 30px 0 80px; }
}

/* Карточки услуг — выровнять высоту */
.service-card {
  display: flex;
  flex-direction: column;
}

.service-card__text {
  flex: 1;
}

/* Улучшение кликабельности на мобиле */
@media (max-width: 767px) {
  .hero-slider__dot {
    width: 14px;
    height: 14px;
  }
  
  .hero-slider__nav {
    gap: 12px;
  }
  
  /* Квиз опции — полная ширина */
  .quiz__options {
    grid-template-columns: 1fr !important;
  }
  
  /* Предотвращаем overflow от абсолютных элементов */
  .page-hero::before {
    display: none;
  }
  
  /* Карта — меньше высота на мобиле */
  #chartdiv {
    height: 350px !important;
  }
  
  /* Статьи — одна колонка */
  .article-content p {
    font-size: 1rem;
  }
}

/* Планшет — portrait */
@media (min-width: 768px) and (max-width: 1023px) {
  #chartdiv {
    height: 450px !important;
  }
}

/* Sticky CTA — не перекрывать контент */
.sticky-cta + script,
.sticky-cta ~ footer {
  padding-bottom: 0;
}

body:has(.sticky-cta.visible) footer {
  padding-bottom: 64px;
}

/* Focus visible — улучшение для клавиатурной навигации */
.quiz__option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hero-slider__dot:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}


/* --- Печать --- */
@media print {
  .header, .footer, .cta-section, .mobile-menu { display: none; }
  .section { padding: 20px 0; }
  body { font-size: 12pt; }
}

/* ===================================================
   CRO ФИШКИ — 7 интерактивных элементов
   =================================================== */

/* --- 1. Scroll Progress Bar (верхняя полоска прогресса) --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #0bbae8);
  z-index: 1100;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- 2. Sticky CTA Bar (плавающая кнопка снизу) --- */
.sticky-cta {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
  transition: bottom 0.4s cubic-bezier(0.4,0,0.2,1);
}

.sticky-cta.visible {
  bottom: 0;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sticky-cta__text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: none;
}

.sticky-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .sticky-cta__text { display: block; }
  .sticky-cta .btn { width: auto; }
}

/* --- 3. Social Proof Toasts (уведомления) --- */
.toast {
  position: fixed;
  bottom: 90px;
  left: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 800;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  max-width: 360px;
  border-left: 4px solid var(--primary);
}

.toast.show {
  transform: translateX(0);
}

.toast__icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.toast__text {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.4;
}

.toast__text strong {
  display: block;
  font-size: 0.85rem;
}

.toast__time {
  font-size: 0.72rem;
  color: var(--gray);
}

@media (max-width: 480px) {
  .toast {
    left: 10px;
    right: 10px;
    max-width: none;
    bottom: 80px;
  }
}

/* --- 4. Quiz (мульти-шаговый квиз) --- */
.quiz {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 24px;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.quiz__progress {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.quiz__progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s ease;
}

.quiz__progress-step.active {
  background: var(--primary);
}

.quiz__progress-step.done {
  background: var(--primary);
}

.quiz__step {
  display: none;
  animation: quizFadeIn 0.4s ease;
}

.quiz__step.active {
  display: block;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.quiz__question {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.quiz__hint {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 24px;
}

.quiz__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quiz__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
}

.quiz__option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.quiz__option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.quiz__option-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.quiz__option.selected .quiz__option-icon {
  border-color: var(--primary);
  background: var(--primary);
}

.quiz__option.selected .quiz__option-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  gap: 12px;
}

.quiz__result {
  text-align: center;
  padding: 20px 0;
}

.quiz__result-icon {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.quiz__result h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.quiz__result p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

@media (min-width: 600px) {
  .quiz__options { grid-template-columns: 1fr 1fr; }
}

/* --- 5. Калькулятор экономии --- */
.calc-savings {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.calc-savings__slider-group {
  margin-bottom: 28px;
}

.calc-savings__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.calc-savings__value {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.calc-savings input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--val, 50%), var(--border) var(--val, 50%));
  outline: none;
}

.calc-savings input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(9,146,195,0.3);
}

.calc-savings input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(9,146,195,0.3);
}

.calc-savings__result {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-top: 8px;
}

.calc-savings__result-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

.calc-savings__result-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #34d399;
  margin-bottom: 4px;
}

.calc-savings__result-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* --- 6. Карта клиентов (SVG Россия) --- */
.map-section {
  position: relative;
}

.map-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.map-container svg {
  width: 100%;
  height: auto;
}

.map-dot {
  fill: var(--primary);
  opacity: 0;
  animation: mapPulse 2s ease-in-out infinite;
}

.map-dot:nth-child(2) { animation-delay: 0.3s; }
.map-dot:nth-child(3) { animation-delay: 0.6s; }
.map-dot:nth-child(4) { animation-delay: 0.9s; }
.map-dot:nth-child(5) { animation-delay: 1.2s; }
.map-dot:nth-child(6) { animation-delay: 1.5s; }
.map-dot:nth-child(7) { animation-delay: 1.8s; }
.map-dot:nth-child(8) { animation-delay: 0.4s; }
.map-dot:nth-child(9) { animation-delay: 0.7s; }
.map-dot:nth-child(10) { animation-delay: 1.0s; }

@keyframes mapPulse {
  0% { opacity: 0.3; r: 4; }
  50% { opacity: 1; r: 7; }
  100% { opacity: 0.3; r: 4; }
}

.map-dot-ring {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1;
  opacity: 0;
  animation: mapRing 2s ease-out infinite;
}

.map-dot-ring:nth-child(2) { animation-delay: 0.3s; }
.map-dot-ring:nth-child(4) { animation-delay: 0.6s; }
.map-dot-ring:nth-child(6) { animation-delay: 0.9s; }

@keyframes mapRing {
  0% { r: 5; opacity: 0.6; }
  100% { r: 18; opacity: 0; }
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.map-legend__dot--kazan {
  background: #f59e0b;
  width: 12px;
  height: 12px;
}

/* --- 7. Typewriter эффект для hero --- */
.typewriter {
  display: inline;
}

.typewriter__cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Доп. анимация для premium-ощущения --- */
.glow-card {
  position: relative;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(9,146,195,0.15) 50%, transparent 60%);
  background-size: 300% 300%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.glow-card:hover::after {
  opacity: 1;
  animation: glowShift 2s ease infinite;
}

@keyframes glowShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 72px;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 72px);
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 1;
}

.hero-slider__slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slider__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,20,38,0.82) 0%, rgba(9,100,140,0.7) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-slider__content {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding: 48px 0 80px;
}

.hero-slider__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-slider__slide.active .hero-slider__title {
  animation: slideUp 0.7s ease 0.2s both;
}

.hero-slider__slide.active .hero-slider__text {
  animation: slideUp 0.7s ease 0.35s both;
}

.hero-slider__slide.active .hero-slider__actions {
  animation: slideUp 0.7s ease 0.5s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-slider__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-slider__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Dots */
.hero-slider__nav {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-slider__dot.active {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.hero-slider__dot:hover {
  border-color: white;
}

/* Arrows */
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.hero-slider__arrow:hover {
  background: rgba(255,255,255,0.2);
}

.hero-slider__arrow--prev { left: 16px; }
.hero-slider__arrow--next { right: 16px; }

@media (max-width: 767px) {
  .hero-slider__arrow { display: none; }
  .hero-slider__nav { bottom: 105px; }
  .hero-slider__content { padding: 40px 0 90px; }
}

@media (min-width: 768px) {
  .hero-slider__arrow--prev { left: 24px; }
  .hero-slider__arrow--next { right: 24px; }
}

