/* ═══════════════════════════════════════════════════════
   crm.kz / sanatel.net — статичная версия
   Цвета точно извлечены из оригинального Elementor CSS:
   • Акцент:   #589498  (бирюзово-синий)
   • Текст:    #54595F
   • Заголовки секций: #54595F
   • Белый фон: #FFFFFF
   • Светлый фон: rgba(241,243,245,0.5)  → #f1f3f5
   • Кнопки:   прозрачные с белой рамкой, hover → #589498
   • Разделитель: #589498, 5px solid
   • Шрифты:   Roboto (body), Lato (nav, contacts), Montserrat (counters)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Lato:wght@300;400;700&family=Montserrat:wght@400;700;900&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8em;
  color: #54595F;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: #589498; text-decoration: none; }
a:hover { color: #457a7e; text-decoration: underline; }

/* ── Утилиты ── */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ════════════════════════════════════
   HERO (slideshow-секция)
   ════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Слайдшоу фонов */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  animation: kenBurns 5s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }

@keyframes kenBurns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.08); }
}

/* Оверлей — #000 opacity 0.45 как в оригинале */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Языковые кнопки */
.hero-lang {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.lang-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 100px;
  padding: 15px 40px;
  cursor: pointer;
  transition: background 0.25s;
  text-decoration: none;
  background-image: radial-gradient(at center center, rgba(88,148,152,0) 0%, rgba(255,255,255,0) 80%);
}
.lang-btn:hover {
  background-color: #589498;
  text-decoration: none;
  color: #fff;
}

/* Навигация */
.hero-nav {
  margin-bottom: 20px;
}
.hero-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: #fff;
  padding: 8px 24px;
  display: inline-block;
  position: relative;
  transition: color 0.2s;
}
.hero-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}
.hero-nav a:hover::after,
.hero-nav a.active::after { transform: scaleX(1); }
.hero-nav a:hover { text-decoration: none; }

/* Логотип Angular+NestJS */
.hero-logo {
  max-width: 480px;
  margin: 0 auto 10px;
  /* оригинал: radial-gradient фон белый 74% */
  padding: 15px;
  background-image: radial-gradient(at center center, rgba(255,255,255,0.74) 29%, rgba(255,255,255,0) 71%);
}

/* Заголовок h1 */
.hero h1 {
  font-family: 'Roboto', sans-serif;
  font-size: 41px;
  font-weight: 900;
  line-height: 1.2em;
  color: #fff;
  text-shadow: 2px 2px 10px #000;
  max-width: 900px;
  margin: 0 auto 10px;
}

/* Разделитель под h1 */
.hero-divider {
  width: 20%;
  height: 5px;
  background: #589498;
  border: none;
  margin: 0 auto 20px;
}

/* Подзаголовок */
.hero-subtitle {
  color: #fff;
  font-size: 24px;
  font-weight: 300;
  line-height: 1em;
  margin-bottom: 8px;
  padding: 0 12%;
}

/* Ротирующийся текст */
.hero-rotating {
  font-size: 30px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 24px;
  min-height: 1.4em;
}

/* Счётчики */
.hero-counters {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.counter-item { text-align: center; }
.counter-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 53px;
  font-weight: 400;
  line-height: 1.5em;
  color: #fff;
}
.counter-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5em;
  color: #fff;
  max-width: 220px;
}

/* Кнопки CTA */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}
.cta-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  background: transparent;
  border: 3px solid #fff;
  border-radius: 100px;
  padding: 15px 40px;
  margin: 10px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  text-decoration: none;
  display: inline-block;
  background-image: radial-gradient(at center center, #589498 0%, rgba(255,255,255,0) 80%);
}
.cta-btn:hover {
  background-color: #589498;
  border-color: #589498;
  text-decoration: none;
  color: #fff;
}

/* ════════════════════════════════════
   СЕКЦИИ — общие
   ════════════════════════════════════ */
.section {
  padding: 60px 0;
}

/* Белый фон (дефолт) */
.section-white { background: #fff; }

/* Светло-серый фон — rgba(241,243,245,0.5) → на практике #f8f9fa */
.section-light {
  background-color: rgba(241,243,245,0.5);
  border-bottom: 1px solid #d6d6d6;
}

/* Градиентный фон как в оригинале секции "Преимущества Angular" */
.section-gradient {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(241,243,245,0.5) 59%);
  border-bottom: 1px solid #d6d6d6;
}

/* Контакты — правая колонка #F3F3F3 */
.section-contacts {
  background: linear-gradient(90deg, rgba(228,187,125,0) 62%, #F3F3F3 0%);
  padding: 2em 1em 3em;
}

/* Футер */
.section-footer {
  background: #fff;
  padding: 15px 0;
  border-top: 1px solid #e9e9e9;
}

/* SVG разделители между секциями */
.shape-divider {
  position: relative;
  overflow: hidden;
  margin: 0;
  line-height: 0;
}
.shape-divider svg {
  display: block;
  width: 100%;
}
.shape-fill { fill: #fff; }
.shape-fill-light { fill: rgba(241,243,245,0.5); }

/* ── Заголовок секции ── */
.sec-heading {
  font-family: 'Roboto', sans-serif;
  font-size: 44px;
  font-weight: 400;
  text-transform: uppercase;
  color: #54595F;
  margin-bottom: 0;
}

.sec-divider {
  display: block;
  width: 20%;
  height: 5px;
  background: #589498;
  border: none;
  margin: 25px 0;
}
.sec-divider-center {
  margin: 25px auto;
}

.sec-text {
  color: #54595F;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8em;
  text-align: justify;
}

/* ════════════════════════════════════
   ДВУХКОЛОНОЧНЫЕ СЕКЦИИ
   ════════════════════════════════════ */
.two-col {
  display: flex;
  gap: 0;
  align-items: center;
  min-height: 500px;
}
.two-col > * { flex: 1; }
.two-col .col-text { padding: 40px 40px 40px 0; }
.two-col .col-image { text-align: center; }
.two-col .col-image img {
  max-width: 79%;
  opacity: 0.8;
  margin: 0 auto;
}

/* Reverse on mobile */
@media (max-width: 767px) {
  .two-col { flex-direction: column; }
  .two-col.reverse-mobile { flex-direction: column-reverse; }
  .two-col .col-text { padding: 20px 0 0; }
}

/* ════════════════════════════════════
   АККОРДЕОН (Процесс, Тарифы, Angular)
   ════════════════════════════════════ */
.accordion { border: none; }
.accordion-item {
  border-bottom: 1px solid #d6d6d6;
}
.accordion-title {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #54595F;
  padding: 14px 40px 14px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  user-select: none;
}
.accordion-title::after {
  content: '+';
  font-size: 20px;
  color: #589498;
  position: absolute;
  right: 0;
  transition: transform 0.25s;
}
.accordion-item.open .accordion-title {
  color: #589498;
}
.accordion-item.open .accordion-title::after {
  content: '−';
}
.accordion-body {
  display: none;
  padding: 0 0 16px;
  font-size: 14px;
  color: #54595F;
  line-height: 1.8em;
}
.accordion-item.open .accordion-body { display: block; }

/* ════════════════════════════════════
   ГАЛЕРЕЯ СКРИНШОТОВ
   ════════════════════════════════════ */
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px 30px;
}
.screenshot-item a { display: block; }
.screenshot-item img {
  width: 100%;
  border: 1px solid #e9e9e9;
  border-radius: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.screenshot-item img:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* ════════════════════════════════════
   КОНТАКТЫ — иконки
   ════════════════════════════════════ */
.icon-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.icon-box-icon {
  color: #589498;
  font-size: 30px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.icon-box-icon svg { width: 30px; height: 30px; fill: #589498; }
.icon-box-title {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: #8C8C8C;
  margin: 0;
  font-weight: 400;
}
.icon-box-title a { color: #8C8C8C; }
.icon-box-title a:hover { color: #589498; }

/* Логотип в блоке контактов */
.contacts-logo { max-width: 80%; margin-bottom: 10px; }
.contacts-title {
  font-family: 'Lato', sans-serif;
  font-size: 48px;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.25em;
  color: #54595F;
}

/* Карта */
.map-wrap iframe {
  width: 100%;
  height: 292px;
  filter: saturate(0);
  box-shadow: 0px 10px 10px 5px rgba(0,0,0,0.26);
  border: none;
  display: block;
}

/* ════════════════════════════════════
   АДАПТИВ
   ════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero h1           { font-size: 43px; }
  .hero-subtitle     { font-size: 13px; }
  .hero-rotating     { font-size: 26px; }
  .counter-number    { font-size: 32px; }
  .lang-btn          { font-size: 12px; }
  .cta-btn           { font-size: 12px; }
  .section           { padding: 30px 50px; }
  .sec-heading       { font-size: 31px; line-height: 1.3em; letter-spacing: 1px; }
  .screenshots-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hero h1         { font-size: 29px; }
  .hero-subtitle   { font-size: 15px; padding: 0; }
  .hero-rotating   { font-size: 15px; }
  .hero-counters   { gap: 20px; }
  .counter-number  { font-size: 26px; }
  .counter-title   { font-size: 14px; }
  .cta-btn         { font-size: 15px; letter-spacing: 0.4px; }
  .section         { padding: 30px 30px; }
  .sec-heading     { font-size: 17px; line-height: 1.3em; letter-spacing: 1px; text-align: center; }
  .sec-divider     { margin: 25px auto; }
  .sec-text        { text-align: center; }
  .two-col         { flex-direction: column; min-height: auto; }
  .two-col .col-text { padding: 20px 0 0; }
  .screenshots-grid { grid-template-columns: 1fr; gap: 20px; padding: 0; }
  .contacts-title  { font-size: 32px; text-align: center; }
}


/* ── Scroll animations (замена Elementor fadeIn) ── */
.anim-left,
.anim-right,
.anim-up {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-left  { transform: translateX(-80px); }
.anim-right { transform: translateX(80px); }
.anim-up    { transform: translateY(40px); }

.anim-left.visible,
.anim-right.visible,
.anim-up.visible {
  opacity: 1;
  transform: none;
}
