/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
:root {
    --primary-orange: #ff6633; /* Цвет мяча */
    --primary-blue: #0F172A; /* Глубокий синий */
    --secondary-blue: #1E293B;
    --accent-bg: #F1F5F9;
    --text-dark: #333333;
    --text-light: #F8FAFC;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --container-width: 1200px; /* Оставил, но теперь не используется в .container */
}

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

html {
    scroll-behavior: smooth;
}

body {
  	/* margin: 0 auto; */
    padding: 0;  
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--primary-blue);
    background: url(https://www.ramfb.ru/site_bg_light.jpg) no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%; /* Полная ширина экрана */
  	max-width: 100vw; /* Ограничиваем шириной окна */
    margin: 0; /* Убрал центрирование и авто-маргин */
    padding: 0; /* Убрал все отступы, чтобы контент занимал всю ширину */
    box-sizing: border-box;
}

/* Медиа-запросы для :root (оставил для 4K, если нужно) */
@media (min-width: 1920px) {
    :root {
        --container-width: 1400px; /* Можно использовать для других элементов, если понадобится */
    }
    /* Убрал медиа для .container, так как теперь нет ограничений */
}

/* --- Header --- */
header {
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 100%; /* Полная ширина */
    max-width: var(--container-width); /* Ограничение до 1200px */
    margin: 0 auto; /* Центрирование шапки */
}

/* Верхняя полоса: белая, 120px */
.top-strip {
    background-color: var(--white);
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 clamp(15px, 5vw, 30px); /* Адаптивный padding: от 15px на узких до 30px на широких */
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: var(--container-width);
    margin: 0 auto;
}

.top-strip.hidden {
    transform: translateY(-120px);
    opacity: 0;
}

.top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px; /* Минимальный gap между элементами для предотвращения переполнения */
}

/* Левая секция: фиксированная ширина для логотипа */
.left-section {
    flex-shrink: 0;
    width: 120px; /* Фиксированная ширина 120px */
    display: flex;
    align-items: center;
}

.logo-link {
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    width: 115px;
    height: 115px;
}

/* Средняя секция: слоганы, занимают оставшееся пространство */
.middle-section {
    flex: 1; /* Занимает все доступное пространство */
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирование слоганов */
    overflow: hidden; /* Скрывает переполнение */
}

.slogans {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--primary-orange);
    font-weight: 800;
    text-align: center; /* Центрирование текста */
    /* Убрал margin-left, теперь центрировано */
}

.slogan-main {
    font-size: clamp(0.8rem, 4vw, 1.5rem); /* Адаптивный размер, уменьшается, не переносится */
    text-transform: uppercase;
    white-space: nowrap; /* Не переносить */
    overflow: hidden; /* Скрыть переполнение */
    text-overflow: ellipsis; /* Добавить ... если нужно */
}

.slogan-sub {
    font-size: clamp(0.5rem, 3vw, 1.2rem); /* Адаптивный размер */
    color: var(--primary-blue);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Скрытие слоганов на узких экранах (если не помещаются) */
@media (max-width: 768px) {
    .slogans {
        display: none; /* Отключает слоганы на экранах шириной <= 768px */
    }
}

/* Правая секция: три строки в одну колонку, центрированные симметрично */
.right-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center; /* Центрирование строк симметрично одна под другой */
    flex-shrink: 1; /* Позволяет сжиматься */
    min-width: 250px; /* Увеличенная минимальная ширина для предотвращения сильного сжатия иконок */
    overflow: hidden; /* Скрывает переполнение, если нужно */
}

/* Верхняя строка: телефон, центрирован */
.phone-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирование телефона в строке */
    flex-shrink: 0; /* Предотвращает сжатие строки */
}

.phone {
    font-size: clamp(0.5rem, 3vw, 1.0rem);
    color: var(--primary-orange);
    font-weight: 500;
    white-space: nowrap; /* Предотвращает перенос текста */
    overflow: hidden;
    text-overflow: ellipsis; /* Добавляет ... если текст слишком длинный */
}

/* Средняя строка: иконки VK и email, центрированы с gap 30px */
.icons-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирование иконок в строке */
    gap: 30px; /* Фиксированное расстояние 30px между иконками для исключения случайных нажатий */
    flex-shrink: 0; /* Предотвращает сжатие строки */
}

/* Нижняя строка: иконки профиля/регистрации, центрированы с gap 30px */
.profile-row {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрирование иконок в строке */
    gap: 30px; /* Фиксированное расстояние 30px между иконками для исключения случайных нажатий */
    flex-shrink: 0; /* Предотвращает сжатие строки */
    /* Убрал font-size, поскольку теперь иконки, размер задан в .social-link i */
}

/* Вертикальная черта между иконками в profile-row */
.separator {
    color: var(--primary-orange); /* Цвет черты, как у верхних иконок */
    font-size: 1rem; /* Размер черты, соответствующий иконкам */
    font-weight: 500;
    margin: 0 5px; /* Небольшой отступ вокруг черты для лучшего вида */
}

.social-link {
    color: var(--primary-orange); /* Цвет для верхних иконок */
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-blue);
}

.social-link i {
    font-size: 30px; /* Фиксированный размер шрифта для верхних иконок */
    width: 30px; /* Фиксированная ширина блока иконки */
    height: 30px; /* Фиксированная высота блока иконки */
    display: inline-block; /* Делает иконку блочным элементом */
    text-align: center; /* Центрирует иконку внутри блока */
    line-height: 30px; /* Центрирует иконку вертикально */
}

/* Специфические стили для нижней строки: меньший размер и цвет var(--primary-blue) */
.profile-row .social-link {
    color: var(--primary-blue); /* Цвет для нижних иконок */
}

.profile-row .social-link:hover {
    color: var(--primary-orange); /* Hover для нижних иконок (инвертированный для контраста) */
}

.profile-row .social-link i {
    font-size: 20px; /* Меньший размер для нижних иконок */
    width: 20px; /* Фиксированная ширина блока иконки */
    height: 20px; /* Фиксированная высота блока иконки */
    line-height: 20px; /* Центрирует иконку вертикально */
}

/* Нижняя полоса: синяя, с меню */
.nav-strip {
    background-color: var(--primary-blue);
    color: var(--white);
    transition: position 0.3s ease, top 0.3s ease;
    position: relative;
    max-width: var(--container-width); /* Ограничение ширины полосы */
    margin: 0 auto; /* Центрирование полосы */
}

.nav-strip.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    max-width: var(--container-width); /* Сохранить ограничение в фиксированном состоянии */
    margin: 0 auto;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    position: relative;
    width: 100%; /* Полная ширина внутри полосы */
}
nav {
    margin: 0 auto;
}


/* Основная версия (десктоп) - меню видимо по умолчанию */
.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    opacity: 1; /* Изменено с 0 на 1 */
    visibility: visible; /* Изменено с hidden на visible */
    transform: translateX(0); /* Изменено с translateX(-100%) на 0 */
    transition: all 0.3s ease-in-out;
}

/* Активное состояние (десктоп) - можно оставить для совместимости, но не обязательно */
.nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-orange);
}

/* Submenu for Projects */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-blue);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    padding: 10px 0;
    list-style: none;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

/* Мобильная иконка меню */
.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--white);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-toggle:hover,
.mobile-toggle.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-orange);
}

/* Адаптивность */
@media (max-width: 768px) {
    .slogans {
	display: none; /* Скрыть слоганы на мобильных */
    }
    .phone {
	display: none; /* Скрыть телефон на мобильных */
    }
    .nav-menu {
	position: fixed;
	top: 60px;
	left: 0;
	width: 100%;
	height: calc(100vh - 60px);
	background: var(--primary-blue);
	padding: 30px 20px;
	z-index: 1004;
	overflow-y: auto;
	align-items: center;
	text-align: center;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-100%);
	transition: all 0.3s ease-in-out; /* Добавлено для плавных переходов */
	/* Удалено: display: none; */
    }
    
    .nav-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	/* Удалено: display: flex; */
    }
    
    
    .nav-strip {
	height: 60px; 
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: var(--primary-blue);
    }
    
    .nav-wrapper {
	padding: 0 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
    }
    
    .mobile-toggle {
	display: block;
	font-size: 2rem;
	cursor: pointer;
	padding: 8px;
	border-radius: 4px;
	transition: background-color 0.3s ease, color 0.3s ease;
	color: var(--white);
	position: relative; 
	z-index: 1005;
	background: transparent;
	border: none;
    }
    
    /* ✅ Правильное скрытие мобильного меню без лома переходов */
    .nav-menu {
	flex-direction: column;
	position: fixed;
	top: 60px;
	left: 0;
	width: 100%;
	height: calc(100vh - 60px);
	background: var(--primary-blue);
	padding: 30px 20px;
	z-index: 1004;
	overflow-y: auto;
	align-items: center; 
	text-align: center;
	margin: 0;
	
	/* Вместо display:none используем это для плавного перехода */
	opacity: 0;
	visibility: hidden;
	transform: translateX(-100%);
	transition: all 0.3s ease-in-out;
    }
    
    /* ✅ Класс для отображения меню */
    .nav-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
    }
    
    .nav-link {
	font-size: 1.4rem;
	padding: 15px 0;
	color: white;
	display: block;
	width: 100%;
    }
    
    
    .nav-menu > li {
	width: 100%;
	text-align: left;
	padding: 0 20px; /* ✅ Отступ 20px слева */
    }
    .nav-link {
	text-align: left;
    }
    /* ✅ Исправленное мобильное подменю */
    .has-dropdown .dropdown {
	position: static; 
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: none;
	padding: 0;
	margin-top: 0;
	width: 100%;
	transition: all 0.3s ease;
    }
    
    .has-dropdown.active .dropdown {
	max-height: 500px;
	opacity: 1;
	visibility: visible;
	padding: 10px 0;
	margin-top: 10px;
    }
    
    .dropdown li a {
	padding: 12px 20px;
	font-size: 1.1rem;
	color: #eee;
    }
}
/* Специально для мобильных в landscape (горизонтальном) режиме */
@media (max-width: 768px) and (orientation: landscape) {
.slogans {
  display: none;
  }
  
  .top-strip {
        padding: 0 10px; /* Уменьшенный padding для экономии места */
        height: 100px; /* Немного уменьшить высоту, если нужно */
    }
    
    .contacts {
        gap: 10px; /* Минимальный gap */
    }
    
    .phone {
        font-size: 0.7rem; /* Фиксированный меньший размер */
    }
    
   
    .profile {
        font-size: 0.8rem;
    }
}

        section {
            min-height: 100vh;
            /* padding: 40px 20px 40px; */
            margin: 0 auto;
            max-width: var(--container-width);
            background: white;
            /* border-radius: 20px; */
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        h2 {
            color: var(--primary-orange);
            font-size: 2.5em;
            margin-bottom: 20px;
            border-bottom: 3px solid var(--primary-orange);
            padding-bottom: 10px;
        }

        p, li {
            color: var(--primary-blue);
            font-size: 1.2em;
            line-height: 1.6;
        }

        .btn {
            background-color: var(--primary-orange);
            color: white;
            padding: 12px 24px;
            text-decoration: none;
          	text-transform: uppercase;
           font-weight: bold;
            border-radius: 25px;
            transition: background-color 0.3s;
          box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень: смещение X, Y, размытие, цвет */
        }

        .btn:hover {
            background-color: #e55a00;
        }

/* Галерея: Карусель превью */
.gallery {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
  background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.3)), url('https://www.ramfb.ru/Images/fon_dlja_galerei_ramfb.jfif') center/cover no-repeat; 
}

.empty-strip {
  width: 100%;
  height: 50vh;
  background: none;
}

/* Фоновое изображение и эффект стекла для секции */
/* .gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.ramfb.ru/Images/fon_dlja_galerei_ramfb.jfif') center/cover no-repeat;
    z-index: -2;
}

.gallery-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: -1;
} */

.preview-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    max-width: 100%;
    cursor: grab;
    user-select: none;
    /* Стилизация скроллбара */
    scrollbar-width: thin;
    scrollbar-color: #ff6633 rgba(0,0,0,0.1);
}

.preview-carousel:active {
    cursor: grabbing;
}

.preview-carousel::-webkit-scrollbar {
    height: 8px;
}

.preview-carousel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.preview-carousel::-webkit-scrollbar-thumb {
    background: #ff6633;
    border-radius: 4px;
}

.preview-item {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    border: 3px solid transparent;
}

.preview-item:hover {
    transform: scale(1.05);
}

.preview-item.active {
    border-color: #ff6633;
    box-shadow: 0 0 10px rgba(255, 102, 51, 0.6);
    transform: scale(1.05);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Оверлей для большого фото */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    opacity: 0;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.large-img {
    max-width: 90%;
    max-height: 65%;
    object-fit: contain;
    border-radius: 10px;
    user-select: none;
    -webkit-user-drag: none;
}

.overlay-nav {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: min(90%, var(--container-width, 1200px));
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    z-index: 10001;
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: #ff6633 rgba(0,0,0,0.1);
}

.overlay-nav:active {
    cursor: grabbing;
}

.overlay-nav::-webkit-scrollbar {
    height: 6px;
}

.overlay-nav::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.overlay-nav::-webkit-scrollbar-thumb {
    background: #ff6633;
    border-radius: 3px;
}

.overlay-nav .preview-item {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6633;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    z-index: 10002;
    transition: background-color 0.3s, transform 0.3s;
}

.close-btn:hover {
    background: #e55520;
    transform: scale(1.1);
}

/* Навигационные стрелки для оверлея */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 102, 51, 0.85);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 10002;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-btn:hover:not(:disabled) {
    background: #ff6633;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev {
    left: 20px;
}

.gallery-nav-btn.next {
    right: 20px;
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(150, 150, 150, 0.5);
}

/* Счетчик фотографий */
.photo-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10002;
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
    .gallery {
        padding: 40px 15px;
    }

    .preview-carousel {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 350px;
        scroll-snap-type: y mandatory;
    }

    .preview-item {
        width: 100%;
        height: 80px;
        scroll-snap-align: start;
    }

    .overlay-nav {
        bottom: 10px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 95%;
        padding: 8px;
    }

    .overlay-nav .preview-item {
        width: 60px;
        height: 45px;
    }

    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .gallery-nav-btn.prev {
        left: 10px;
    }

    .gallery-nav-btn.next {
        right: 10px;
    }

    .large-img {
        max-height: 55%;
    }

    .photo-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .overlay-nav .preview-item {
        width: 50px;
        height: 38px;
    }
    
    .large-img {
        max-height: 50%;
    }
}
/* Галерея: Карусель превью */
.gallery {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.preview-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px; /* Чуть больше отступ */
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    max-width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    scrollbar-width: thin;
    scrollbar-color: #ff6633 rgba(0,0,0,0.1);
}

.preview-carousel:active {
    cursor: grabbing;
}

.preview-carousel::-webkit-scrollbar {
    height: 8px;
}

.preview-carousel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.preview-carousel::-webkit-scrollbar-thumb {
    background: #ff6633;
    border-radius: 4px;
}

.preview-item {
    flex: 0 0 auto;
    width: 160px; /* Немного шире */
    height: 110px; /* Немного выше */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    border: 3px solid transparent;
    position: relative;
}

.preview-item:hover {
    transform: scale(1.03);
    z-index: 2;
}

.preview-item.active {
    border-color: #ff6633;
    box-shadow: 0 4px 12px rgba(255, 102, 51, 0.4);
    transform: scale(1.05);
    z-index: 3;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    display: block;
}

/* Оверлей для большого фото */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    opacity: 0;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Важно: предотвращаем дергание */
    will-change: opacity; 
}

/* Блокировка скролла body при открытом оверлее */
body.gallery-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.large-img {
    max-width: 90%;
    max-height: 65%;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
    /* Для эффекта 3D поворота */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.overlay-nav {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    /* Ограничиваем ширину контейнером, но не меньше 90% */
    width: min(95%, var(--container-width, 1200px));
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    z-index: 10001;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ff6633 rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.overlay-nav:active {
    cursor: grabbing;
}

.overlay-nav::-webkit-scrollbar {
    height: 6px;
}

.overlay-nav::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.overlay-nav::-webkit-scrollbar-thumb {
    background: #ff6633;
    border-radius: 3px;
}

/* Увеличенные превью в оверлее */
.overlay-nav .preview-item {
    width: 90px;  /* Было 80px */
    height: 65px; /* Было 60px */
    flex-shrink: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6633;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    z-index: 10002;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.close-btn:hover {
    background: #e55520;
    transform: scale(1.1);
}

/* Навигационные стрелки */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 102, 51, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 10002;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.gallery-nav-btn:hover:not(:disabled) {
    background: #ff6633;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn.prev { left: 20px; }
.gallery-nav-btn.next { right: 20px; }

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(100, 100, 100, 0.5);
    transform: translateY(-50%) scale(1);
}

.photo-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10002;
    backdrop-filter: blur(4px);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .gallery {
        padding: 30px 15px;
    }

    /* Основная карусель на мобильном - вертикальная или узкая горизонтальная */
    .preview-carousel {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 300px;
        scroll-snap-type: y mandatory;
        gap: 10px;
    }

    .preview-item {
        width: 100%;
        height: 90px; /* Чуть выше на мобильном */
        scroll-snap-align: start;
    }

    /* Полоса превью в оверлее на мобильном */
    .overlay-nav {
        bottom: 15px;
        width: 92%;
        padding: 8px 10px;
        gap: 8px;
    }

    .overlay-nav .preview-item {
        width: 70px;  /* Увеличено с 60px */
        height: 52px; /* Увеличено с 45px */
    }

    /* Скрываем стрелки на мобильных, оставляем свайпы */
    .gallery-nav-btn {
        display: none;
    }

    .large-img {
        max-height: 60%; /* Чуть больше места для фото */
        max-width: 95%;
    }

    .photo-counter {
        top: 15px;
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .overlay-nav .preview-item {
        width: 60px;
        height: 45px;
    }
}
/* --- Hero Section --- */
#hero {
     width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
  	height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.6)), url('https://ramfb.ru/mjach_i_kolco_5.jpg') center/cover no-repeat; 
    
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}
.herocontainer {
    width: 100%;
    /* max-width: var(--container-width); */
    margin: 0 auto;
    padding: 0 20px;
    background: none;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    background: none;
}
.hero-slogan {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    /* opacity: 0; */
    transform-origin: center; /* Центр масштабирования */
}

.hero-slogan span {
    color: var(--primary-orange);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  	color: #fff;
}

/* класс для анимации эффекта появления контейнеов в каждой новой секции*/
.animate-on-scroll {
    opacity: 0; /* Начальное состояние */
    transform: translateY(50px); /* Сдвиг вниз для slide-up */
    transition: none; /* GSAP управляет */
}

.animation-slide-left {
    transform: translateX(-50px); /* Сдвиг влево для slide-left */
    opacity: 0; /* Начальное состояние карточек */
    transform: translateY(30px); /* По умолчанию сдвиг вниз */
    transition: none;
}
  /* Сетка-разделитель между секциями */
.stripe-divider {
    height: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center; /* Центрирует полосу вертикально внутри divider */
}

.stripe {
    height: 10px;
    background-color: #ff6b35;
    width: 100%; /* Полная ширина divider */
    transform-origin: center; /* Центрирует точку масштабирования (для симметричного расширения) */
    transform: scaleX(0); /* Начальное состояние: сжата в центре (невидима) */
    transition: none; /* GSAP управляет анимацией */
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 500px; /* Для мобильных */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

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

.close:hover {
    color: black;
}

/* Контейнер формы */
#signupForm {
    display: flex;
    flex-direction: column; /* Мобильный: вертикально */
    align-items: center;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: var(--primary-orange);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для изображения */
.modal-image {
    width: 90%;
    max-height: 300px;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Контейнер для полей формы */
.form-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Группы полей */
.form-group {
    width: 100%;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.required {
    color: #e74c3c;
}

.consent {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.consent a {
    color: #007bff;
    text-decoration: none;
}

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

.btn-submit {
    width: 100%;
    height: 40px;
    padding: 12px 24px;
    background: var(--primary-orange);
    color: white;
    text-transform: uppercase;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ============================================ */
/* ДЕСКТОП: изображение слева, форма справа    */
/* ============================================ */
@media (min-width: 769px) {
    /* Увеличиваем ширину модального окна для горизонтального layout */
    .modal-content {
        max-width: 900px !important; /* Было 500px — слишком узко! */
    }
    
    /* Форма становится горизонтальным flex-контейнером */
    #signupForm {
        flex-direction: row !important; /* Изображение слева, поля справа */
        align-items: stretch !important; /* Растягиваем по высоте */
        gap: 25px !important;
    }
    
    /* Изображение занимает 30% ширины */
    .modal-image {
        width: 30% !important;
        max-height: none !important; /* Убираем ограничение высоты */
        flex-shrink: 0 !important; /* Не сжимается */
        object-fit: contain !important; /* Вписывает без обрезки */
        align-self: center !important; /* Центрируем по вертикали */
        border-radius: 8px !important;
        margin: 0 !important; /* Убираем margin для правильного позиционирования */
    }
    
    /* Поля формы занимают оставшиеся 70% */
    .form-fields {
        flex: 1 !important;
        min-width: 0 !important; /* Предотвращает переполнение */
    }
}

/* ============================================ */
/* МОБИЛЬНЫЕ УСТРОЙСТВА                        */
/* ============================================ */
@media (max-width: 768px) {
    .modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: none;
        justify-content: center !important;
        align-items: center !important;
        padding: 15px;
        z-index: 9999;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .modal-content {
        margin: 0 auto;
        max-height: 90vh;
        width: 100%;
        max-width: 100%;
        position: relative;
    }
}

@media (max-width: 480px) {
    #signupForm {
        padding: 15px;
        max-width: 100%;
    }
    
    .form-group input,
    .form-group select {
        font-size: 14px;
    }
    
    .consent {
        font-size: 11px;
    }
    
    .modal-image {
        max-height: 250px;
    }
}
.about-section {
    width: 100%;
    padding: 60px 20px;
  background: var(--white);
    /* background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); */ /* Легкий градиент для фона */
    /* background: none;
    transform: translateY(50px);
    transition: transform 1s ease-out; */
}

/* .about-section.visible {
transform: translateY(0);
} */

.mail-form-container {

  padding: 20px;

}


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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-orange);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.left-column {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.left-column h3 {
    font-size: 1.2rem;
   font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.left-column p {
    margin-bottom: 12px;
    color: var(--primary-blue);
}
.left-column strong {
    font-weight: bold;
    color: var(--primary-blue);
}


.goals-list {
    list-style: none;
    padding: 0;
}

.goals-list li {
    margin-bottom: 5px;
  text-align: left;
    padding-left: 20px;
    position: relative;
    color: #555;
}

.goals-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.right-column {
    flex: 1;
    padding: 30px;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.right-column::before {
    content: '"';
    position: absolute;
    top: 10px; /* Сдвинул выше */
    left: 10px; /* Сдвинул левее */
    font-size: 3rem; /* Уменьшил размер */
    color: var(--primary-orange);
    opacity: 0.5;
    z-index: 1;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 40px; /* Добавил отступ слева, чтобы текст не накладывался на кавычку */
    position: relative;
    z-index: 2;
}

.author {
    font-weight: bold;
    color: var(--primary-orange);
    text-align: right;
}

.author-title {
    font-size: 0.9rem;
    color: #ccc;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 768px) {
    .section-title {
	font-size: 2rem;
	margin-bottom: 30px;
    }
    .about-content {
	flex-direction: column;
	gap: 20px;
    }
    .left-column,
    .right-column {
	padding: 20px;
    }
    .right-column::before {
	font-size: 2.5rem; /* Уменьшил для мобильных */
	top: 5px;
	left: 5px;
    }
    .quote {
	padding-left: 30px; /* Уменьшил отступ для мобильных */
    }
}
/* Секция новостей */
#sitenews-list {
    padding: 40px 10px;
}

/* Контейнер новостей с анимацией */
.news-container {
    padding: 40px 0;
    /* opacity: 0; 
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out; */
}

/* .news-container.visible {
opacity: 1;
transform: translateY(0);
} */

/* По умолчанию: показываем desktop, скрываем мобильный */
.desktop-news {
    display: block;
}

.mobile-news {
    display: none;
}

/* На смартфонах (ширина экрана <= 768px): скрываем desktop, показываем мобильный */
@media (max-width: 768px) {
    .desktop-news {
	display: none;
    }
    
    .mobile-news {
	display: block;
    }
}

/* Контейнер сетки новостей */
.news-grid {
    display: grid;
  	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивная сетка */
    gap: 10px;
    max-width: 100vw;
    margin: 0 auto;
    padding: 20px;
}

/* Карточка новости */
.news-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Мета-информация (дата и категория) */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid #eee;
}

.news-meta time {
    font-weight: 500;
}

.news-category a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.news-category a:hover {
    text-decoration: underline;
}

/* Изображение */
.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-image:hover img {
    transform: scale(1.05);
}

/* Заголовок */
.news-title {
    padding: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.news-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #007bff;
}

/* Краткое описание */
.news-excerpt {
    padding: 0 15px;
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
}

/* Комментарии */
.news-comments {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.news-comments a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-comments a:hover {
    color: #007bff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .news-grid {
	grid-template-columns: 1fr; /* Одна колонка на смартфонах */
	gap: 15px;
	padding: 15px;
    }
    
    .news-title {
	font-size: 1.2rem;
    }
    
    .news-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
    }
    
    .news-image img {
	height: 180px;
    }
}
/* Секция тренеров */
.coaches-section {
    position: relative;
    width: 100%;
    /* Подкорректируйте значение под высоту вашего фиксированного меню. Например если меню 80px: calc(100vh - 80px) */
    min-height: calc(100vh - 70px);
    border-radius: 0px;
    overflow: hidden;
    margin: 0 auto;
    isolation: isolate;
}

/* Фоновое изображение и эффект стекла для секции */
.coaches-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.ramfb.ru/Images/4-small.jpg') center/cover no-repeat;
    z-index: -2;
}

.coaches-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.coaches-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 40px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-orange);
    text-align: center;
    margin: 0;
}

/* Контейнер слайдера */
.coach-slider {
    display: flex;
    width: 100%;
    max-width: 1200px;
    transition: none;
}

/* Карточка тренера */
.coach-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Фотография тренера */
.coach-portrait {
    flex: 0 0 300px;
    /* aspect-ratio: 3/4; */
    border-radius: 16px;
    /* padding-bottom: 133%; */
    overflow: hidden;
}

.coach-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информация о тренере */
.coach-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coach-name {
    font-size: 1.75rem;
    color: var(--primary-orange);
    margin: 0;
}

.coach-position {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

.coach-details {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-blue);
    margin: 0;
}

.coach-details p {
    margin: 0;
}

/* Точки навигации */
.slider-navigation {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-orange);
    transform: scale(1.2);
}

.nav-dot:hover {
    background: var(--primary-orange);
}

/* Адаптивность */
@media (max-width: 992px) {
    .coach-slide {
	flex-direction: column;
	gap: 24px;
	padding: 32px 24px;
    }
    
    .coach-portrait {
	flex: 0 0 auto;
	width: 250px;
    }
    
    .coach-info {
	text-align: center;
    }
}

@media (max-width: 576px) {
    .section-title {
	font-size: 1.75rem;
    }
    
    .coach-name {
	font-size: 1.5rem;
    }
    
    .coach-portrait {
	width: 200px;
    }
    
    .coaches-container {
	padding: 24px 16px;
	gap: 24px;
    }
}
/* --- Projects: Grid --- */
#projects-list {
  padding: 60px 20px 80px 20px;  
  /* padding-top: 60px;
    padding-bottom: 80px; */
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* По умолчанию для мобильных и планшетов */
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: #fffff0; /* var(--white); */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    justify-content: center; 
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-orange);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
}

.project-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Медиа-запрос для desktop: фиксируем 3 колонки */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* Ровно 3 колонки на больших экранах */
    }
}
/* --- Partners: Grid --- */
#partners {
 padding-top: 60px;
  padding-bottom: 80px;
}
.partners-grid {
  display: grid;
  padding: 0 20px;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr); /* смартфоны: 2 колонки */
}

@media (min-width: 769px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr); /* планшеты: 2 колонки */
  }
}

@media (min-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr); /* десктоп: 3 колонки */
  }
}
.partner-card {
 background: #fffff0;
 padding: 25px;
 border-radius: 15px;
 box-shadow: 0 4px 10px rgba(0,0,0,0.05);
 justify-content: center; 
 text-align: center;
 transition: var(--transition);
 border-bottom: 3px solid transparent;
 /* Основные правила для выравнивания по центру */
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 
 /* Дополнительные улучшения */
 padding: 1.5rem;
 gap: 0.75rem;
 cursor: pointer;
}

/* Фиксированная ширина изображений без инлайн атрибутов */
.partner-card img {
 max-width: 100px;
 height: auto;


}

/* --- Contacts --- */
#contacts {
    background-color: var(--white);
}

.contacts-container {
    padding: 20px 60px;
    max-width: none; /* Максимальная ширина контента */
    margin: 0 auto;
}

.contacts-intro {

  margin-bottom: 40px;
    max-width: 600px; /* Ограничиваем ширину текста для читаемости */
}

.contacts-intro h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.contacts-intro p {
    font-size: 16px;
    color: var(--primary-blue);
    line-height: 1.6;
}

/* Обёртка для контента — Две колонки */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* По умолчанию (мобильная): 1 колонка */
    gap: 40px;
    align-items: start; /* Выравнивание по верхнему краю */
}

/* ДЕСКТОП: Две равные колонки */
@media (min-width: 769px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr; /* Две равные части */
        gap: 60px; /* Увеличиваем отступ между колонками */
    }
    
    /* Левая колонка с контактами */
    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    /* Правая колонка с формой */
    .contact-form-wrapper {
        background: #f8f9fa; /* Светлый фон для формы */
        padding: 30px;
        border-radius: 12px;
        border: 1px solid #e9ecef;
    }
}

/* МОБИЛЬНЫЕ: Одна колонка */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
    }
}

/* Стили для контактных элементов */
.contact-info-item {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-bg);
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    font-size: 14px;
    color: var(--primary-blue);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info-item p,
.contact-info-item a {
    font-size: 16px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-orange);
}


/* Стили для секции #training */
#training .training-container {
    margin: 0 auto;
    background: #fff;
/*    padding: 0; */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
  
.training-container {
   padding: 60px 20px 80px 20px;
   
  }

#training .header-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#training .header-section::before {
    content: '🏀';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    top: -30px;
    right: -30px;
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

#training h1 {
    color: white;
    font-size: 2.2em;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    position: relative;
    z-index: 1;
}

#training .content-section {
    padding: 30px 20px;
}

#training .info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

#training .info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

#training .info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
}

#training .info-card .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

#training .info-card h3 {
    color: #1e3c72;
    margin-bottom: 12px;
    font-size: 1.1em;
}

#training .info-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95em;
}

#training .form-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    padding: 30px 25px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

#training .form-section h2 {
    color: white;
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 20px;
}

#training .schedule-section {
    margin: 40px 0;
  padding: 0 40px;
}

#training .schedule-title {
    text-align: center;
    font-size: 1.8em;
    color: #1e3c72;
    margin-bottom: 25px;
    font-weight: 700;
}

#training .schedule-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

#training .school-selector {
    margin-bottom: 30px;
}

#training .school-selector label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-blue);
}

#training .school-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    background: white;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

#training .school-select:hover {
    border-color: var(--primary-orange-light);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

#training .school-select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

#training .school-info {
    animation: fadeIn 0.3s ease;
}

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

#training .school-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: white;
    padding: 20px 20px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
}

#training .school-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 700;
}

#training .school-header p {
    margin: 0;
    font-size: 0.95em;
    opacity: 0.95;
}

#training .table-wrapper {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#training .schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

#training .schedule-table thead tr {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-light) 100%);
}

#training .schedule-table th {
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1em;
}

#training .schedule-table th:last-child {
    text-align: right;
}

#training .schedule-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

#training .schedule-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#training .schedule-table tbody tr:hover {
    background-color: #fff3e0;
}

#training .schedule-table td {
    padding: 16px 20px;
    color: var(--primary-blue);
    font-size: 1em;
}

#training .schedule-table td:first-child {
    font-weight: 600;
    color: var(--primary-orange);
}

#training .schedule-table td:last-child {
    text-align: right;
    color: var(--primary-blue);
}

#training .schedule-table .no-classes {
    color: #999;
    font-style: italic;
}

#training .contact-box {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.15em;
    margin: 30px 0;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

#training .contact-box a {
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid white;
    transition: all 0.3s ease;
}

#training .contact-box a:hover {
    letter-spacing: 1px;
    border-bottom-width: 3px;
}

#training .quote {
    margin: 40px 0;
    padding: 30px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    border-left: 5px solid #f7931e;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
}

#training .quote::before {
    content: '"';
    font-size: 80px;
    color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
}

#training .quote blockquote {
    color: white;
    font-size: 1.3em;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
}

#training .quote figcaption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 15px;
    text-align: right;
}

#training hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ff6b35 50%, transparent 100%);
    margin: 35px 0;
}

#training .fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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

#training .highlight {
    color: #ff6b35;
    font-weight: 700;
}

/* Адаптивность для планшетов (до 768px) */
@media (max-width: 768px) {
    #training .container {
        border-radius: 15px;
    }

    #training .header-section {
        padding: 30px 15px;
    }

    #training h1 {
        font-size: 1.8em;
    }

    #training .content-section {
        padding: 25px 15px;
    }

    #training .info-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #training .schedule-title {
        font-size: 1.5em;
    }

    #training .school-selector label {
        font-size: 1em;
    }

    #training .school-select {
        padding: 10px 40px 10px 12px;
        font-size: 0.95em;
    }

    #training .school-header {
        padding: 15px 15px;
    }

    #training .school-header h2 {
        font-size: 1.25em;
        margin-bottom: 5px;
    }

    #training .school-header p {
        font-size: 0.9em;
    }

    #training .schedule-table th,
    #training .schedule-table td {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    #training .contact-box {
        font-size: 1em;
        padding: 20px 15px;
    }

    #training .quote {
        padding: 25px 20px;
    }

    #training .quote blockquote {
        font-size: 1.1em;
    }

    #training .quote::before {
        font-size: 60px;
    }

    #training hr {
        margin: 25px 0;
    }
}

/* Адаптивность для смартфонов (до 480px) */
@media (max-width: 480px) {
    #training .container {
        border-radius: 12px;
    }

    #training .header-section {
        padding: 25px 10px;
    }

    #training .header-section::before {
        font-size: 100px;
        top: -20px;
        right: -20px;
    }

    #training h1 {
        font-size: 1.5em;
    }

    #training .content-section {
        padding: 20px 12px;
    }

    #training .info-cards {
        gap: 12px;
        margin: 20px 0;
    }

    #training .info-card {
        padding: 20px 15px;
    }

    #training .info-card .icon {
        font-size: 35px;
        margin-bottom: 10px;
    }

    #training .info-card h3 {
        font-size: 1em;
        margin-bottom: 10px;
    }

    #training .info-card p {
        font-size: 0.9em;
    }

    #training .form-section {
        padding: 20px 15px;
        margin: 20px 0;
        border-radius: 12px;
    }

    #training .form-section h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    #training .schedule-section {
        margin: 30px 0;
    }

    #training .schedule-title {
        font-size: 1.3em;
        margin-bottom: 20px;
    }

    #training .school-header {
        padding: 15px 15px;
    }

    #training .school-header h2 {
        font-size: 1.25em;
        margin-bottom: 5px;
    }

    #training .school-header p {
        font-size: 0.9em;
    }

    #training .schedule-table th,
    #training .schedule-table td {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    #training .contact-box {
        font-size: 0.95em;
        padding: 18px 12px;
        margin: 25px 0;
    }

    #training .quote {
        margin: 30px 0;
        padding: 20px 15px;
        border-radius: 12px;
    }

    #training .quote::before {
        font-size: 50px;
        top: -5px;
        left: 10px;
    }

    #training .quote blockquote {
        font-size: 1em;
        line-height: 1.5;
    }

    #training .quote figcaption {
        font-size: 0.95em;
        margin-top: 12px;
    }

    #training hr {
        margin: 25px 0;
    }
}

/* Адаптивность для очень маленьких смартфонов (до 360px) */
@media (max-width: 360px) {
    #training h1 {
        font-size: 1.3em;
    }

    #training .info-card {
        padding: 15px 12px;
    }

    #training .info-card .icon {
        font-size: 30px;
    }

    #training .info-card h3 {
        font-size: 0.95em;
    }

    #training .info-card p {
        font-size: 0.85em;
    }

    #training .schedule-table th,
    #training .schedule-table td {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    #training .school-header h2 {
        font-size: 1.1em;
    }

    #training .school-header p {
        font-size: 0.85em;
    }

    #training .quote blockquote {
        font-size: 0.9em;
    }
}

/* Адаптивность */
@media (max-width: 600px) {
    #training .schedule-container {
        padding: 0 10px;
    }

    #training .school-selector label {
        font-size: 1em;
    }

    #training .school-select {
        padding: 10px 40px 10px 12px;
        font-size: 0.95em;
    }

    #training .school-header {
        padding: 15px 15px;
    }

    #training .school-header h2 {
        font-size: 1.25em;
        margin-bottom: 5px;
    }

    #training .school-header p {
        font-size: 0.9em;
    }

    #training .schedule-table th,
    #training .schedule-table td {
        padding: 12px 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 400px) {
    #training .schedule-table th,
    #training .schedule-table td {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    #training .school-header h2 {
        font-size: 1.1em;
    }

    #training .school-header p {
        font-size: 0.85em;
    }
}


/* Основной контейнер футера */
.site-footer {
  background-color: var(--primary-blue);
  color: var(--primary-orange);
  position: relative;
  z-index: 100;
}

/* Обертка для контента */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* Колонки футера */
.footer-column {
  display: flex;
  flex-direction: column;
}

/* Заголовки колонок */
.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: var(--accent-color);
  position: relative;
  padding-bottom: 10px;
}

/* Декоративная линия под заголовком */
.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-orange);
  transition: width var(--transition-speed) ease;
}

.footer-column:hover h3::after {
  width: 60px;
}

/* Список ссылок */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #fff;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
  display: inline-block;
  position: relative;
}

/* Эффект при наведении на ссылки */
.footer-links a:hover {
  color: var(--primary-orange);
  padding-left: 8px;
}

/* Активная/посещенная ссылка */
.footer-links a:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===================================
   Стили для контактов (Address)
   =================================== */

.footer-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--footer-muted);
  transition: color var(--transition-speed) ease;
}

.contact-row i {
  color: var(--accent-color);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.contact-row a:hover {
  color: var(--accent-color);
}

/* ===================================
   Социальные сети
   =================================== */

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-orange);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background-color: var(--primary-orange);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.social-links a:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

.social-links i {
  font-size: 1.2rem;
}

/* ===================================
   Нижняя часть футера
   =================================== */

.footer-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--primary-orange);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--primary-orange);
}

.powered-by {
  font-size: 0.8rem;
  color: var(--footer-muted);
  opacity: 0.7;
}

.powered-by a {
  color: var(--footer-muted);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.powered-by a:hover {
  color: var(--accent-color);
}

/* ===================================
   Кнопка "Наверх"
   =================================== */

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-orange);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background-color: var(--hover-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#back-to-top:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

#back-to-top i {
  font-size: 1.2rem;
}

/* ===================================
   Адаптивность (Media Queries)
   =================================== */

/* Планшеты */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 20px 25px;
  }
  
  .footer-column:last-child {
    grid-column: 1 / -1;
    order: -1;
  }
  
  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* Мобильные устройства */
@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 15px 20px;
  }
  
  .footer-column:last-child {
    order: 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-column h3 {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .contact-row {
    font-size: 0.9rem;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 320px) {
  .footer-container {
    padding: 25px 10px 15px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
  }
}
/* =========================================================
   FULL-WIDTH OVERRIDES (на всю ширину экрана)
   Добавьте этот блок В КОНЕЦ CSS, чтобы переопределить старые max-width
   ========================================================= */

:root {
  /* Общие “поля” (gutter) по бокам: на мобилке меньше, на 4K больше */
  --page-gutter: clamp(12px, 3vw, 80px);

  /* Если где-то используется --container-width для ограничений — отключаем */
  --container-width: 100%;
}

/* Убираем “центровку” body, она не нужна для full width */
body {
  margin: 0;
  width: 100%;
}

/* Универсальный контейнер теперь тянется на всю ширину */
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Все основные “обёртки”, которые у вас ограничивались max-width: 1200px */
header,
.top-strip,
.nav-strip,
section,
#hero,
.gallery,
.about-section,
.coaches-section,
#projects-list,
#partners,
#contacts,
footer {
  width: 100%;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
}

/* Внутренние отступы для шапки/навигации (вместо max-width + auto) */
.top-strip {
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  max-width: none;
  margin: 0;
}

.nav-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* ВАЖНО: fixed-меню должно быть 100% ширины экрана, без max-width и без auto */
.nav-strip.fixed {
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Hero и его контейнер — также на всю ширину */
#hero {
  max-width: none;
  margin: 0;
}

.herocontainer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Убираем ограничение ширины у внутренних контейнеров, которые были 1200px */
.about-container,
.news-grid,
.coach-slider,
.coaches-container,
.footer-container {
  max-width: none;
  width: 100%;
}

/* Если ваши section были “карточкой” 1200px по центру (белый фон + тень),
   то на full-width это может выглядеть тяжеловато.
   Если хотите оставить тень/белый блок только у контента — нужна внутренняя обёртка в HTML.
   Сейчас просто оставляем как есть, но убираем max-width. */


/* =========================================================
   СЕТКИ КАРТОЧЕК: 1 колонка (смартфон) / 2 (планшет) / 3 (десктоп)
   ========================================================= */

/* Projects */
.projects-grid {
  display: grid;
  gap: 20px;
  padding: 0 20px;
  grid-template-columns: 1fr; /* смартфоны */
}

@media (min-width: 769px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr); /* планшеты/малые ноуты */
  }
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr); /* десктоп */
  }
}

/* News (у вас уже было 1fr на <=768, но max-width ограничивал; фиксируем единообразно) */
.news-grid {
  max-width: none;
  width: 100%;
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr; /* смартфоны */
}

@media (min-width: 769px) {
  .news-grid {
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);
  }
}

/* @media (min-width: 1900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
} */

/* Partners (у вас сейчас жестко repeat(3) — из-за этого на мобилке не будет 1 колонки) */
.partners-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr; /* смартфоны */
}

@media (min-width: 769px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr); /* планшеты */
  }
}

@media (min-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr); /* десктоп */
  }
}

/* Галерея — убираем max-width, чтобы секция была full width */
.gallery {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
  

/* --- Современная почтовая форма --- */

.modern-mail-form {
    width: 100%;
    max-width: 600px;
    background: var(--primary-orange);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

/* Группы полей */
.form-group {
    margin-bottom: 24px;
}

/* Лейблы */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Звездочка обязательного поля */
.required {
    color: #e74c3c;
    margin-left: 4px;
}

/* Поля ввода */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--primary-blue);
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

/* Плейсхолдеры */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
    font-size: 15px;
}

/* Фокус на полях */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* Текстовое поле */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}




/* --- Адаптивность --- */
@media (max-width: 768px) {
    .modern-mail-form {
        padding: 25px;
        border-radius: 12px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px; /* 16px чтобы не зумилось на iOS */
    }
    
}

@media (max-width: 480px) {
    .modern-mail-form {
        padding: 20px 15px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
}