body {
  margin: 0;
  /* Установлен шрифт Palatino Linotype */
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  background: #f4f6f9;
  color: #222;
}

/* ===== ШАПКА ===== */
.top-header {
  background: #0a5ea8;
  color: white;
  padding: 30px 20px 60px;
  position: relative;
  overflow: hidden; /* ЭТО ОБЯЗАТЕЛЬНО: обрежет ваш градиент 200% ширины */
}
header::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  z-index: 0;
  pointer-events: none;
}

/* Название компании — слева */
.site-title {
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 22px;
  font-weight: 600;
}

/* Заголовок текущего раздела — по центру */
.page-title {
  text-align: center;
  font-size: 30px;
  margin: 0;
}

/* ===== МЕНЮ ===== */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #001f3f;
  padding: 0 10px;
  margin-top: -40px;
  position: relative;
}

.main-nav a {
  padding: 10px 18px;
  border-radius: 6px 6px 0 0;
  background: #3a7ede;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  background: #98d4d9;
}

/* Активная вкладка */
.main-nav a.active {
  background: white;
  color: #001f3f;
  font-weight: 600;
  transform: translateY(8px);
  box-shadow: 0 -4px 0 white;
  z-index: 2;
}

/* ===== КОНТЕНТ ===== */
.container {
  width: 55%;
  margin: 40px auto 0 auto; /* Убираем нижний margin */
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


/* ===== ФУТЕР ===== */
/* ===== ФУТЕР С ГЛЯНЦЕМ ===== */
footer {
  text-align: center;
  padding: 25px 20px 25px;
  background: linear-gradient(
    to bottom,
    #003366 0%,
    #001f3f 40%,
    #001833 100%
  );
  color: white;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

/* Дополнительный мягкий блик для объёма */
footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 60%
  );
  z-index: 1;
  pointer-events: none;
}

/* Текст в подвале */
footer p, 
footer span {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 15px;
  opacity: 0.95;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
  .site-title {
    position: static;
    text-align: center;
    margin-bottom: 10px;
  }

  .page-title {
    font-size: 24px;
  }

  .main-nav {
    flex-wrap: wrap;
  }
}
.info-block {
  background: #f9fbfd;
  border-left: 4px solid #0a5ea8;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.info-block h3 {
  margin-top: 0;
}

.download-btn {
  background: #ffffff;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #0a5ea8;
  font-weight: bold;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 16px; 
  padding: 15px 30px;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.instruction-item {
  background: #ffffff;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.instruction-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.instruction-item h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.disk-link {
  color: #0a5ea8;
  text-decoration: none;
  font-weight: 500;
}

.disk-link:hover {
  text-decoration: underline;
}
/* Липкий подвал */
html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Главная растягиваемая область */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}



/* ==== Значимые клиенты (выезжающий блок) 

.accordion {
  margin-top: 25px;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 15px;
  background: #0a4c86;
  color: white;
  border-radius: 6px;
  transition: background 0.3s ease;
  position: relative;
}

.accordion-header:hover {
  background: #0d5ea8;
}

.accordion-header::after {
  content: "▼";
  position: absolute;
  right: 15px;
  transition: transform 0.3s ease;
}

.accordion.active .accordion-header::after {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: #f5f7fa;
}

.accordion-content ul {
  margin: 0;
  padding: 15px 25px 15px 35px;
}

.accordion-content li {
  margin-bottom: 8px;
}
====== */
/* Подзаголовок (новое) */
.site-subtitle {
  font-size: 12px; /* Маленький аккуратный шрифт */
  font-weight: 400;
  opacity: 0.85; /* Слегка прозрачный, чтобы не спорить с основным названием */
  display: block;
  margin-top: 3px;
  letter-spacing: 0.3px;
}
/* ===== МОДАЛЬНОЕ ОКНО — ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНЫХ ===== */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.65); 
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-content {
  background-color: white;
  padding: 40px 25px 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: modalFadeIn 0.3s ease;
  text-align: center;           /* ← Вернули выравнивание по центру */
  margin: 0 auto;
}
/* Для модалок, где нужно левое выравнивание (например, цены) */
.modal-content.left-align {
  text-align: left;
}

/* Фиксируем заголовок */
.modal-content h2 {
  position: sticky;
  top: 0;
  background: white;
  padding: 10px 0 20px 0;
 /*  margin: -10px -25px 25px -25px;*/
  border-bottom: 1px solid #eeeeee;
  z-index: 10;
  text-align: center;
}
/* Улучшаем отступы на мобильных */
@media (max-width: 768px) {
.modal-content {
    max-height: 95vh;
    padding: 30px 18px 20px;
    width: 94%;
    border-radius: 10px;
  }

.modal-content h2 {
 /*    margin: -15px -18px 20px -18px;*/
    padding: 15px 0 18px;
  }
}

  .close-modal {
    right: 15px;
    top: 12px;
    font-size: 32px;
  }
}

/* Анимация */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.close-modal:hover { color: #222; }

.email-display {
  margin: 20px 0;
  padding: 15px;
  background: #f0f7ff;
  border: 1px dashed #0a5ea8;
  border-radius: 6px;
}

.email-display a {
  font-size: 22px;
  color: #0a5ea8;
  text-decoration: none;
  font-weight: bold;
}
/* Единый стиль для всех интерактивных кнопок в контенте */
.content button, 
.content .download-btn {
    text-decoration: none; /* Убираем подчеркивание в обычном состоянии */
}

/* Эффект при наведении на кнопки модальных окон и кнопку-ссылку */
#openDownloadModal:hover, 
#openEmailModal:hover, 
.content a:hover {
    text-decoration: underline !important; /* Добавляем подчеркивание */
   /* background-color: #f0f7ff !important;  /* Легкий фоновый подсвет (опционально) */
}
.custom-action-btn {
    cursor: pointer;
    background: #ffffff;
    color: #004c99;
    border: 1px solid #004c99;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 25px;
    font-family: inherit;
    text-transform: uppercase;
    border-radius: 2px;
    transition: 0.2s;
    min-width: 180px;
    display: inline-block;
    text-align: center;
}

.custom-action-btn:hover {
    text-decoration: underline !important;
    background-color: #f0f7ff;
}

/* Контейнер для ссылок на карты */
.maps-links {
    display: flex;          /* Включаем гибкий контейнер */
    justify-content: center; /* Центрируем ссылки */
    gap: 90px;              /* Расстояние между ссылками */
    flex-wrap: wrap;        /* Чтобы на узких экранах они переносились */
  	background: white;
	max-width: 1000px;
}

.maps-links a {
     background: #ffffff;
  border: 1px solid #e3e7ed;
  border-radius: 8px;
  padding: 18px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #0a5ea8;
  padding: 15px 30px;
  text-decoration: none; /* Убираем подчеркивание в обычном состоянии */
}

.maps-links a:hover {
 transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  text-decoration: underline !important; /* Добавляем подчеркивание */
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 15px;
  border: 1px solid #0a5ea8;
  background: white;
  color: #0a5ea8;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

.tab-btn.active {
  background: #0a5ea8;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
/* ===== СЕТКА 3 КОЛОНКИ ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* Три равные колонки */
  gap: 30px;
}

/* колонка */
.program-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Адаптивность */
@media (max-width: 1200px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);   /* На средних экранах — 2 колонки */
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;             /* На мобильных — 1 колонка */
  }
}

/* блок (категория) */
.program-block {
  background: #f9fbfd;
  border-left: 4px solid #0a5ea8;
  padding: 15px 20px;
  border-radius: 6px;
}

/* заголовок категории */
.program-block h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* ссылки */
.program-link {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  text-decoration: none;
  color: #0a5ea8;
  transition: 0.2s;
  font-weight: bold;
  font-size: 26px;
}

.program-link:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-decoration: underline;
}
/* ссылки */
.program-link2 {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e3e7ed;
  border-radius: 6px;
  text-decoration: none;
  color: #0a5ea8;
  transition: 0.2s;
}
.program-link2:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-decoration: underline;
}

/* ===== МОБИЛКА ===== */
@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }
}
/* По умолчанию (десктоп) — отключаем кликабельность */
.phone-link {
  pointer-events: none;
  color: inherit;
  text-decoration: none;
}
@media (max-width: 768px) {
  .phone-link {
    pointer-events: auto;
    color: #0a5ea8;
    text-decoration: none;
  }
}
/* ===== заголовки h2 по центру ===== */
h2 {
  text-align: center;
}

@media (max-width: 768px) {
  .container {
    width: auto;          /* вместо 100% 
    margin: 0 10px;       /* отступы от краёв */
    padding: 20px 15px;   /* внутренние отступы */
  }
}
@media (max-width: 1200px) {
  .page-title {
    width: 100%;
    text-align: right;
    font-size: 22px;
  }
}
/*
.service-block {
  margin-bottom: 30px;
}
*/
.service-block h2 {
  color: #004c99;
  margin-bottom: 10px;
}

.service-block ul {
  padding-left: 20px;
}

.service-block li {
  margin-bottom: 5px;
}

.service-contact {
  margin-top: 30px;
  padding: 15px;
  background: #f5f7fa;
  border-radius: 8px;
}

.text-giper {
 text-decoration:none;
  color: #0a5ea8;
  font-weight: bold;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
 }