/*
Theme Name: Smart Maman
Theme URI: https://smart-maman.kz
Author: Smart Maman Team
Author URI: https://smart-maman.kz
Description: Учебный центр подготовки специалистов в сфере водоснабжения и водоотведения
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smart-maman
Tags: education, water, training, business
*/

/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */

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

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Цветовая палитра */
:root {
  --primary: #0d3b66;
  --primary-dark: #0a2d4f;
  --primary-light: #1a5f8a;
  --accent: #1565c0;
  --accent-light: #e3f2fd;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray: #6b7b8d;
  --text: #2c3e50;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --shadow: 0 4px 20px rgba(13, 59, 102, 0.1);
  --shadow-hover: 0 8px 30px rgba(13, 59, 102, 0.18);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
}

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

.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================
   ШАПКА (HEADER)
   ============================================ */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.header__logo img {
  max-height: 70px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  transition: all 0.3s;
}

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

.header__nav a:hover,
.header__nav a.active {
  color: var(--accent);
  font-weight: 600;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(13, 59, 102, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 59, 102, 0.4);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

/* Мобильное меню */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.header__burger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

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

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

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

/* ============================================
   HERO СЕКЦИЯ СО СЛАЙДЕРОМ
   ============================================ */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(13, 59, 102, 0.85) 0%, rgba(13, 59, 102, 0.4) 60%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero__content {
  max-width: 700px;
  padding: 60px 0;
  color: var(--white);
}

.hero__title {
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: fadeIn 0.8s ease;
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  line-height: 1.5;
  animation: fadeIn 0.8s ease 0.2s both;
}

.hero__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 550px;
  animation: fadeIn 0.8s ease 0.4s both;
}

.hero__btn {
  padding: 16px 40px;
  font-size: 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary);
  animation: fadeIn 0.8s ease 0.6s both;
}

.hero__btn:hover {
  background: var(--accent-light);
}

/* ============================================
   СТАТИСТИКА
   ============================================ */
.stats {
  background: var(--white);
  padding: 0;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stats .container {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 24px;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid #e8edf2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.stat-item__number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-item__label {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.4;
}

.stat-item__sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
}

/* ============================================
   СЕКЦИИ — ОБЩИЕ
   ============================================ */
.section {
  padding: 80px 0;
}

.section__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section--gray {
  background: var(--gray-light);
}

/* ============================================
   О НАС (кратко на главной)
   ============================================ */
.about {
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__content h2 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-align: left !important;
}

.about__content h2::after {
  margin: 16px 0 0;
}

.about__content p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about__image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image-placeholder {
  color: var(--accent);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ============================================
   ПРОГРАММЫ ОБУЧЕНИЯ
   ============================================ */
.programs {
  background: var(--white);
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.program-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

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

.program-card__icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.program-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.program-card__code {
  font-size: 12px;
  color: var(--gray);
  background: var(--gray-light);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* ============================================
   CTA (ПРИЗЫВ К ДЕЙСТВИЮ)
   ============================================ */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.cta__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta__text {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.cta__btn {
  background: var(--white);
  color: var(--primary);
  padding: 18px 48px;
  font-size: 16px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}



/* Кнопка "наверх" */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(21, 101, 192, 0.4);
  transition: all 0.3s;
  z-index: 999;
  border: none;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  background: var(--primary);
}

/* ============================================
   СТРАНИЦЫ
   ============================================ */

.page-main {
  min-height: 60vh;
}

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-hero__title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Паспорт организации */
.passport-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.passport-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 40px;
  text-align: center;
}

.passport-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 3px;
}

.passport-subtitle {
  font-size: 20px;
  font-weight: 400;
  opacity: 0.95;
}

.passport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 40px;
}

.passport-item {
  padding: 24px;
  border: 1px solid #e8edf2;
  border-radius: 8px;
  background: var(--gray-light);
  transition: all 0.3s;
}

.passport-item:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.passport-item--full {
  grid-column: span 3;
}

.passport-item__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.passport-item__value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.passport-item__value a {
  color: var(--accent);
}

.passport-item__value ul {
  list-style: none;
  padding: 0;
}

.passport-item__value ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.passport-item__value ul li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.professions-list li {
  background: var(--white);
  padding: 10px 16px !important;
  margin-bottom: 8px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.term-item {
  background: var(--white);
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.term-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 13px;
}

.term-item span {
  color: var(--accent);
  font-weight: 600;
}

/* Оборудование */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.equipment-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.equipment-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.equipment-card__icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.equipment-card__number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.equipment-card__label {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.4;
}

/* Преподаватели */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.staff-card {
  background: var(--gray-light);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s;
}

.staff-card:hover {
  background: var(--accent-light);
  transform: translateY(-5px);
}

.staff-card--highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.staff-card--highlight .staff-card__number {
  color: var(--white);
}

.staff-card--highlight .staff-card__label {
  color: rgba(255,255,255,0.9);
}

.staff-card__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.staff-card__label {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.5;
}

/* Партнеры на странице */
.partners-list {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.partner-item {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.partner-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-hover);
}

.partner-item__icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.partner-item__icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.partner-item__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* Программы детально */
.programs-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

.programs-intro__title {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 20px;
}

.programs-intro__text {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
}

.programs-detailed__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.program-detailed-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.program-detailed-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.program-detailed-card__header {
  background: linear-gradient(135deg, var(--accent-light), var(--white));
  padding: 32px;
  text-align: center;
}

.program-detailed-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.program-detailed-card__icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.program-detailed-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.program-detailed-card__code {
  font-size: 13px;
  color: var(--gray);
  background: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  display: inline-block;
}

.program-detailed-card__body {
  padding: 28px;
}

.program-info {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8edf2;
}

.program-info__item {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
}

.program-info__item strong {
  color: var(--primary);
  margin-right: 8px;
}

.program-detailed-card__desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* Таблица кабинетов */
.classrooms-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.classrooms-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

.classrooms-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.classrooms-table th {
  padding: 18px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
}

.classrooms-table td {
  padding: 20px 16px;
  border-bottom: 1px solid #e8edf2;
  vertical-align: top;
}

.classrooms-table tbody tr {
  transition: background 0.3s;
}

.classrooms-table tbody tr:hover {
  background: var(--accent-light);
}

.classrooms-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 0;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav a {
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid #e8edf2;
    display: block;
  }
  
  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__nav a.active {
    background: var(--accent-light);
    padding-left: 12px;
    border-radius: 6px;
  }

  .header__burger {
    display: flex;
  }
  
  .header__btn {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    min-height: 500px;
  }

  .hero__title {
    font-size: 36px;
  }

  .stats .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .programs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .passport-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .passport-item--full {
    grid-column: span 2;
  }
  
  .terms-grid {
    grid-template-columns: 1fr;
  }
  
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .staff-grid {
    grid-template-columns: 1fr;
  }
  
  .programs-detailed__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__desc {
    font-size: 14px;
  }

  .hero__btn {
    padding: 14px 28px;
    font-size: 14px;
  }

  .stats .container {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid #e8edf2;
    padding: 20px 10px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .section__title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .programs__grid {
    grid-template-columns: 1fr;
  }

  .passport-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  
  .passport-item--full {
    grid-column: span 1;
  }
  
  .passport-item {
    padding: 20px;
  }
  
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-item {
    flex-direction: column;
    text-align: center;
  }
  
  .classrooms-table {
    font-size: 13px;
  }
  
  .classrooms-table th,
  .classrooms-table td {
    padding: 12px 10px;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer__logo {
    justify-content: center;
  }

  .cta__title {
    font-size: 26px;
  }

  .cta__text {
    font-size: 15px;
  }

  .cta__btn {
    padding: 14px 32px;
    font-size: 14px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  
  .page-hero__title {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .header .container {
    padding: 10px 0;
  }

  .hero__title {
    font-size: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 14px;
  }
}

@media print {
  .header,
  .footer,
  .scroll-top,
  .cta {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    padding: 20px 0;
  }
}

/* ============================================
   БЛОК УЧЕБНАЯ БАЗА (ИСПРАВЛЕНО)
   ============================================ */

.edu-base-banner {
  display: block;
  padding: 60px 0;
  background: #f0f6fc;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.edu-base-banner:hover {
  background: #e8f0f8;
}

.edu-base-banner__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.edu-base-banner__left {
  flex: 1;
  min-width: 0;
}

.edu-base-banner__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.edu-base-banner__items {
  display: flex;
  gap: 16px;
}

/* Карточка */
.edu-base-item {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: all 0.3s;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.edu-base-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Иконка */
.edu-base-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-base-item__icon svg {
  width: 100%;
  height: 100%;
}

.edu-base-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Число */
.edu-base-item__number {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* Подпись */
.edu-base-item__label {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

/* Последняя карточка — текстовая (без числа) */
.edu-base-item--last {
  flex: 1.3;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.edu-base-item--last:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
}

.edu-base-item--last .edu-base-item__icon svg {
  stroke: var(--white);
}

.edu-base-item--last .edu-base-item__icon img {
  filter: brightness(0) invert(1);
}

.edu-base-item__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
  text-align: center;
}

/* Картинка справа */
.edu-base-banner__right {
  width: 42%;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow);
}

/* ============================================
   БЛОК ПАРТНЁРЫ НА ГЛАВНОЙ
   ============================================ */

.partners-home {
  background: var(--gray-light);
  padding: 70px 0;
}

.partners-home__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.partner-home-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.3s;
  border: 1px solid #e8edf2;
}

.partner-home-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.partner-home-card__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  padding: 12px;
}

.partner-home-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-home-card__logo svg {
  width: 100%;
  height: 100%;
}

.partner-home-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.partner-home-card__sub {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.4;
}

/* Адаптив партнёров */
@media (max-width: 1024px) {
  .partners-home__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .partners-home {
    padding: 50px 0;
  }
  
  .partners-home__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .partner-home-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 20px 24px;
  }
  
  .partner-home-card__logo {
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0;
  }
  
  .partner-home-card__name {
    margin-bottom: 4px;
  }
}


/* Адаптив */
@media (max-width: 1200px) {
  .edu-base-banner__items {
    flex-wrap: wrap;
  }
  
  .edu-base-item {
    flex: 0 0 calc(33.333% - 11px);
  }
  
  .edu-base-item--last {
    flex: 0 0 100%;
  }
}

@media (max-width: 1024px) {
  .edu-base-banner__inner {
    flex-direction: column;
  }
  
  .edu-base-banner__right {
    width: 100%;
    max-height: 300px;
    order: -1;
  }
  
  .edu-base-item {
    flex: 0 0 calc(50% - 8px);
  }
  
  .edu-base-item--last {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .edu-base-banner {
    padding: 40px 0;
  }
  
  .edu-base-banner__items {
    flex-direction: column;
  }
  
  .edu-base-item {
    flex: 1 1 100%;
  }
  
  .edu-base-item--last {
    flex: 1 1 100%;
  }
  
  .edu-base-banner__right {
    max-height: 250px;
  }
}


/* ============================================
   ФУТЕР (НОВЫЙ ДИЗАЙН)
   ============================================ */

.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo img {
  max-height: 50px;
  width: auto;
}

.footer__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer__links a::before {
  content: '›';
  font-size: 18px;
  color: var(--accent);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item span {
  font-size: 14px;
  line-height: 1.5;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.8);
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer__bottom a {
  color: rgba(255,255,255,0.6);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* Адаптив футера */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 0;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer__brand {
    align-items: center;
  }
  
  .footer__logo {
    justify-content: center;
  }
  
  .footer__desc {
    max-width: 100%;
  }
  
  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer__links a {
    justify-content: center;
  }
  
  .footer__contact-item {
    justify-content: center;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ============================================
   БЛОК КОНТАКТЫ С КАРТОЙ
   ============================================ */

.contacts-block {
  background: var(--white);
  padding: 0;
}

.contacts-block__inner {
  display: flex;
  min-height: 400px;
}

/* Левая часть */
.contacts-block__info {
  background: var(--primary);
  color: var(--white);
  padding: 50px;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacts-block__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--white);
}

.contacts-block__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-block-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  line-height: 1.5;
}

.contact-block-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: rgba(255,255,255,0.7);
}

.contact-block-item a {
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
}

.contact-block-item a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Правая часть - карта */
.contacts-block__map {
  width: 60%;
  background: #e5e5e5;
  position: relative;
}

.contacts-block__map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Ссылка на карту */
.map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.map-link:hover {
  opacity: 0.9;
}

/* Оверлей при наведении */
.map-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 59, 102, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--white);
}

.map-hover-overlay svg {
  stroke: var(--white);
}

.map-hover-overlay span {
  font-size: 16px;
  font-weight: 600;
}

.map-link:hover .map-hover-overlay {
  opacity: 1;
}

/* Адаптив */
@media (max-width: 768px) {
  .map-hover-overlay span {
    font-size: 14px;
  }
}

/* Адаптив */
@media (max-width: 1024px) {
  .contacts-block__inner {
    flex-direction: column;
  }
  
  .contacts-block__info {
    width: 100%;
    padding: 40px 30px;
  }
  
  .contacts-block__map {
    width: 100%;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contacts-block__info {
    padding: 30px 20px;
  }
  
  .contacts-block__title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .contact-block-item {
    font-size: 14px;
    gap: 12px;
  }
  
  .contacts-block__map {
    height: 300px;
  }
}

/* ============================================
   СТРАНИЦА КОНТАКТЫ
   ============================================ */

.contacts-page-section {
  padding: 80px 0;
}

.contacts-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.section-title-left {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 30px;
  text-align: left;
}

/* Левая колонка */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

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

.contact-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px 0;
}

.contact-text p {
  margin: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.5;
}

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

.contact-text a:hover {
  text-decoration: underline;
}

.work-hours {
  background: var(--gray-light);
  padding: 30px;
  border-radius: 12px;
}

.work-hours h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 16px 0;
}

.work-hours p {
  margin: 0;
  color: var(--gray);
  line-height: 1.8;
}

/* Правая колонка - Форма CF7 */
.cf7-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* Стили для полей Contact Form 7 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8edf2;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Кнопка отправки CF7 */
.wpcf7-submit {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.wpcf7-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Сообщения об успехе/ошибке */
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  border: none !important;
}

.wpcf7-mail-sent-ok {
  background: #d4edda !important;
  color: #155724 !important;
}

.wpcf7-validation-errors {
  background: #f8d7da !important;
  color: #721c24 !important;
}

/* Карта */
.map-section {
  padding: 0 0 80px;
}

.map-link-wrapper {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.map-link-wrapper:hover {
  transform: translateY(-5px);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 18px;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 59, 102, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.map-overlay span {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-link-wrapper:hover .map-overlay {
  opacity: 1;
}

/* Адаптив для страницы контактов */
@media (max-width: 1024px) {
  .contacts-grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .cf7-wrapper {
    padding: 24px;
  }
  
  .work-hours {
    padding: 20px;
  }
}

/* ============================================
   ВАЛИДАЦИЯ И СООБЩЕНИЯ CF7
   ============================================ */

/* Ошибка валидации */
.input-error {
  border-color: var(--danger) !important;
  background-color: #fff5f5 !important;
}

.validation-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

/* Успешное сообщение - делаем заметнее */
.wpcf7-mail-sent-ok {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: #fff !important;
  padding: 20px 24px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
  border: 2px solid #28a745 !important;
  margin: 24px 0 !important;
  animation: slideInDown 0.5s ease;
}

/* Сообщение об ошибке - делаем заметнее */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: linear-gradient(135deg, #dc3545, #fd7e14) !important;
  color: #fff !important;
  padding: 20px 24px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
  border: 2px solid #dc3545 !important;
  margin: 24px 0 !important;
  animation: shake 0.5s ease;
}

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

/* Анимация тряски при ошибке */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Иконка успеха */
.wpcf7-mail-sent-ok::before {
  content: '✓';
  display: inline-block;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  line-height: 32px;
  margin-right: 12px;
  font-weight: bold;
}

/* Иконка ошибки */
.wpcf7-validation-errors::before,
.wpcf7-mail-sent-ng::before {
  content: '✕';
  display: inline-block;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  line-height: 32px;
  margin-right: 12px;
  font-weight: bold;
}

/* Адаптив для сообщений */
@media (max-width: 768px) {
  .wpcf7-mail-sent-ok,
  .wpcf7-validation-errors,
  .wpcf7-mail-sent-ng {
    padding: 16px 20px !important;
    font-size: 14px !important;
  }
}

/* Стили для полей CF7 */
.cf7-input,
.wpcf7-text,
.wpcf7-tel,
.wpcf7-email,
.wpcf7-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8edf2;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s;
}

.cf7-input:focus,
.wpcf7-text:focus,
.wpcf7-tel:focus,
.wpcf7-email:focus,
.wpcf7-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.cf7-submit,
.wpcf7-submit {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.cf7-submit:hover,
.wpcf7-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(13, 59, 102, 0.3);
}

/* Успешное сообщение - БОЛЬШОЕ И ЗАМЕТНОЕ */
.wpcf7-mail-sent-ok {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: #ffffff !important;
  padding: 24px 32px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
  border: 3px solid #28a745 !important;
  margin: 30px 0 !important;
  display: block !important;
  animation: slideInDown 0.5s ease;
}

/* Сообщение об ошибке */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: linear-gradient(135deg, #dc3545, #c82333) !important;
  color: #ffffff !important;
  padding: 20px 24px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
  border: 2px solid #dc3545 !important;
  margin: 24px 0 !important;
  display: block !important;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}