:root {
  --color-text: #005bac;
  --color-muted: #6b7280;
  --color-accent: #005bac;
  --color-bg: #ffffff;
}

.handwritten {
  font-family: 'Marck Script', cursive;
  font-size: 1.6rem;
  line-height: 1.3;
}

.handwrittenbig {
  font-family: 'Neucha', cursive;   
}

.bg-footer-custom {
  background-color: #ffffff;
  color: #1f2937;
}

.bg-footer-custom a {
  color: #1f2937; /* цвет ссылок */
}

.bg-footer-custom a:hover {
  color: #2563eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;  
}

/* ==================== ЗАГОЛОВКИ ==================== */
h1, h2, h3, h4 {
  font-weight: normal;
  letter-spacing: -0.015em;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Скрываем глобальный h1 визуально, но оставляем для SEO */
h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Скрываем контейнер глобального h1 */
.tc-l.pv3.ph3.ph4-ns {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* ==================== ТЕКСТ И ССЫЛКИ ==================== */
p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

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

a:hover {
  text-decoration: underline;
}

/* ==================== КНОПКИ ==================== */
.btn {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;  
  border-radius: 12px;
  padding: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Отступы между кнопками */
.pb3-m.pb6-l a.btn,
.hero-actions .btn {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* Primary button — яркий акцент */
.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Secondary button — контраст на белом фоне */
.btn-secondary {
  border: 1px solid #374151;
  color: #374151;
  background: transparent;
}

.btn-secondary:hover {
  background: #f3f4f6;
  text-decoration: none;
}

/* ==================== ОБЩИЕ СТИЛИ СЕКЦИЙ ==================== */
section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  margin: 0 !important;
  box-sizing: border-box;
  background: var(--color-bg);
}

/* ==================== HERO СЕКЦИЯ ==================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  background: var(--color-bg);
  padding: 2rem;
  margin: 0;
  box-sizing: border-box;
}

.hero-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.hero-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: normal;
}

.hero-title {  
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-subtitle {  
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* ==================== ABOUT СЕКЦИЯ ==================== */
.about-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 1rem;
  background-color: var(--color-bg);
  text-align: center;
}

.about-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.about-section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

.about-section p {
  hyphens: auto;
  text-align: justify;
  text-indent: 1.5em;
}

.about-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  text-align: left;
}

/* ==================== SERVICES СЕКЦИЯ ==================== */
.services-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 1rem;
  background-color: #ffffff;
  text-align: center;
}

.services-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.services-section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

.services-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 3rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Сетка карточек услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Карточка услуги */
.service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card p {
  font-family: 'Neucha', cursive;
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--color-text);
  margin-bottom: 1rem;
  margin-top: 0;
}

/* CTA блок */
.services-cta {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--color-bg);
  border-radius: 12px;
}

.services-cta p {
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* ==================== CONTACT СЕКЦИЯ ==================== */
.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background-color: var(--color-bg);
  text-align: center;
}

.contact-container {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.contact-section h2 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  font-weight: 600;
}

.contact-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* Telegram виджет в контактах */
.telegram-widget-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.telegram-widget-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.widget-description {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.telegram-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.telegram-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ==================== ОТЗЫВЫ (TESTIMONIALS) С КАРУСЕЛЬЮ ==================== */
.testimonials-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 1rem;
  background-color: var(--color-bg);
  text-align: center;
}

/* Контейнер для центрирования, как у других секций */
.testimonials-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.testimonials-section h2 {
  font-size: 1.9;
  margin-bottom: 1rem;
  color: var(--color-text);
}

/* Контейнер Swiper */
.mySwiper {
  width: 100%;
  padding: 20px 0 60px 0;
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
}

.swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

/* Слайды */
.swiper-slide {
  flex-shrink: 0;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Навигация Swiper */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-accent);
  width: 44px;
  height: 44px;
}

/* Позиционирование стрелок внутри контейнера */
.swiper-button-next {
  right: 10px;
}

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

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
  font-weight: bold;
}

/* Пагинация */
.swiper-pagination {
  bottom: 10px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--color-text);
  opacity: 0.3;
  transition: opacity 0.3s;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-accent);
}

/* Кнопка "Наверх" */
.back-to-top {
  display: inline-block;
  margin-top: 30px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  background: transparent;
  color: var(--color-muted);
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-weight: 400;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  color: var(--color-text);
  border-color: var(--color-text);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {  
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .swiper-slide {
    height: 300px;
  }
}