@font-face {
    font-family: 'Onder';
    src: url('/assets/fonts/onder-regular.ttf') format('truetype');
}

* {
    box-sizing: border-box;
}
 
body {
    margin: 0;
    font-family: 'Onder', sans-serif;
    color: #fff;
    background: #111;
    font-size: 12px;
    
}

h1 {
    font-size: 14px;
}

h2 {
    font-size: 12px;
}

h3 {
    font-size: 10px;
}

h4 {
    font-size: 8px;
}

p {
    font-size: 8px;
}

.nav-list li a {
    font-size: 12px;
}

li a {
    font-size: 8px;
}

span {
    font-size: 8px;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 15px 0;
    background: rgba(0 0 0 / 50%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo img {
    display: block;
    height: 65px;
    width: auto;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    /* font-size: 16px; */
}

.nav a:hover {
    color: #d62828;
}

.phone a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    /* font-size: 18px; */
    white-space: nowrap;
}

.phone a:hover {
    color: #d62828;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    /* font-size: 24px; */
    cursor: pointer;
    padding: 5px 10px;
}

/* Container */
.container {
    width: 90%;
    max-width: 2200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/gallery/main/hero-1-5.png') center/cover no-repeat;
    filter: brightness(1);
    z-index: 0;
}

.hero-line {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 50%;
    max-width: 1200px;
    pointer-events: none;
}

.hero-line img {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.hero-logo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.hero-logo-text img {
    height: 120px;
    width: auto;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-content h1 {
    /* font-size: 48px; */
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.hero-content p {
    /* font-size: 20px; */
    margin: 0 0 30px 0;
    opacity: 0.9;
}

/* Hero sub section */
.hero-sub {
    padding: 80px 0;
}

.hero-sub-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 60px;
    align-items: center;
}

.hero-sub-media {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-sub-media img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-sub-content h2 {
    margin: 0 0 20px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-sub-content p {
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 4;
}

.hero-sub-content a {
font-size: 8px;
}

.hero-sub-content
 {
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-sub .btn
 {
    background: transparent;
    border: 1px solid #fff;
    border-radius: 0;
    padding: 20px 20px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background: #d62828;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    transform: skewX(-20deg); 
    /* font-size: 16px; */
}

.btn:hover {
    background: #b81d1d;
    transform: translateY(-2px);
    transform: skewX(-20deg); 
}

.btn:active {
    transform: skewX(-14deg); 
}

/* Footer */
.footer {
    background: #000;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-col h3,
.footer-col h4 {
    margin: 0 0 15px 0;
    color: #ffffff;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo-link img {
    height: 48px;
    width: auto;
}

.footer-social h4 {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #d62828;
    color: #fff;
    transform: translateY(-3px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #d62828;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    /* font-size: 14px; */
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .phone {
        margin-left: auto;
        margin-right: 15px;
    }
    
    .hero-content h1 {
        /* font-size: 32px; */
    }
    
    .hero-content p {
        /* font-size: 18px; */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        /* font-size: 28px; */
    }
    
    .phone a {
        /* font-size: 16px; */
    }
}

/* Page sections */
.page-section {
    padding: 60px 0;
    min-height: calc(80vh - 200px);
}

.page-section h1 {
    /* font-size: 42px; */
    margin-bottom: 40px;
    text-align: center;
}

/* Services grid */
.services-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(214, 40, 40, 0.3);
}

.service-card h3 {
    color: #d62828;
    margin-top: 0;
    margin-bottom: 15px;
}

/* About content */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: #d62828;
    margin-top: 30px;
}

.about-content h3 {
    margin-top: 25px;
    color: #fff;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.about-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #d62828;
    font-weight: bold;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contacts section */
.contacts-section {
    padding: 0;
    position: relative;
}

.contacts-map-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
}

.yandex-map {
    width: 100%;
    height: 100%;
}

.contacts-overlay {
    position: absolute;
    top: 50%;
    left: 16%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.contacts-overlay h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 25px;
    /* font-size: 28px; */
}

.contact-content {
    max-width: 100%;
}

.contact-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item h3 {
    color: #ffffff;
    margin-bottom: 8px;
    /* font-size: 18px; */
}

.contact-item p {
    color: #fff;
    margin: 0;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #d62828;
}

/* Abonements section */
.abonements-section {
    background: #fff;
    color: #111;
}

.abonements-section h1 {
    color: #111;
}

.abonements-section h1,
.abonements-section .abonements-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.abonements-subtitle {
    margin-top: 60px;
    margin-bottom: 20px;
    text-align: center;
}

.abonements-section .container {
    position: relative;
}

.container-decoration {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
}

.container-decoration-left {
    left: -60px;
}

.container-decoration-right {
    right: -60px;
}

.container-decoration img {
    width: 100%;
    height: auto;
    opacity: 0.3;
}

.abonements-section .abonements-grid {
    position: relative;
    z-index: 1;
}

.abonements-table-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    overflow-x: auto;
}

.abonements-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.abonements-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 14px 10px;
    border-bottom: 2px solid #111;
    text-align: center;
}

.abonements-table tbody th.row-title {
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 10px;
    font-size: 12px;
}

.abonements-table tbody th.row-title.red {
    color: #7F0404;
}

.abonements-table td {
    padding: 14px 10px;
    text-align: center;
    vertical-align: top;
    font-size: 12px;
}

.abonements-table .note {
    display: block;
    color: #555;
    margin-top: 4px;
}

.abonements-table tr + tr td,
.abonements-table tr + tr th {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Abonements grid */
.abonements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 80px;
    margin-top: 40px;
}

.single-trainings-grid .abonement-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    padding-top: 50px;
    padding-bottom: 40px;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.abonement-time {
    margin: 0 0 10px;
     font-size: 8px;
    color: #555;
}

.abonement-meta {
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
}

.abonement-card {
    background: rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.abonements-section .abonement-card {
    border-color: rgba(0, 0, 0, 0.1);
}

.abonement-card:hover {
    transform: translateY(-5px);
    border-color: #d62828;
}

.abonement-card h3 {
    color: #7F0404;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.price {
    /* font-size: 32px; */
    font-weight: bold;
    color: #111;
    margin-bottom: 25px;
}

.abonements-section .price {
    color: #111;
}

.single-trainings-grid .price {
    font-size: 14px;
    letter-spacing: 0.04em;
}

.single-trainings-grid .btn {
    margin-top: 30px;
    padding: 10px 40px;
    border-radius: 0;
    background: transparent;
    border: 1px solid #7F0404;
    color: #7F0404;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.single-trainings-grid .abonement-card:nth-child(2) .btn {
    background: #7F0404;
    color: #fff;
}

.abonement-card ul {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.abonement-card ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #333;
}

.abonements-section .abonement-card ul li {
    color: #333;
}

.abonement-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d62828;
    /* font-size: 20px; */
}

/* Hero image section */
.hero-image-section {
    width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.hero-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-image-text {
    position: absolute;
    top: 100px;
    right: 10%;
    z-index: 2;
}

.hero-image-text img {
    width: 100%;
    height: auto;
}

/* Instructors section */
.instructors-content {
    max-width: 900px;
    margin: 0 auto;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.instructor-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.instructor-card:hover {
    transform: translateY(-5px);
}

.instructor-card h3 {
    color: #d62828;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Feedback */
.feedback-section {
    position: relative;
    padding: 80px 0;
}

.feedback-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/gallery/main/gilza.webp') center/cover no-repeat;
    filter: brightness(0.3);
    z-index: 0;
}

.feedback-section .container {
    position: relative;
    z-index: 1;
}

.feedback-section h1 {
    color: #fff;
}

.feedback-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.feedback-text {
    color: #fff;
}

.feedback-text h2 {
    color: #d62828;
    margin-top: 0;
    margin-bottom: 15px;
}

.feedback-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.feedback-form .form-row {
    margin-bottom: 15px;
}

.feedback-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    /* font-size: 15px; */
}

.feedback-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.feedback-form .form-note {
    /* font-size: 13px; */
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}


.btn-alpha {
    display: inline-block;
    text-decoration: none;
    /* Размеры и отступы */
    padding: 12px 45px;
    margin: 10px;
    
    /* Геометрия: наклон корпуса */
    transform: skewX(-20deg); 
    
    /* Границы и фон */
    border: 2px solid #7a0000;
    background: transparent;
    
    /* Плавность анимации */
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-text {
    display: block;
    /* Возвращаем текст в ровное положение (обратный наклон) */
    transform: skewX(20deg);
    
    /* Типографика */
    font-family: 'Onder', sans-serif;
    font-weight: 900; /* Делаем шрифт максимально жирным */
    color: #7a0000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Состояние при наведении (или класс active для центральной кнопки) */
.btn-alpha:hover, 
.btn-alpha.active {
    background: #7a0000; /* Заливка цветом */
}

.btn-alpha:hover .btn-text,
.btn-alpha.active .btn-text {
    color: #ffffff; /* Текст становится белым */
}

/* Опционально: контейнер для центрирования */
.button-container {
    background: #fff; /* Или #111 в зависимости от фона сайта */
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991px) { 
    .hero-logo-text img {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .page-section h1 {
        /* font-size: 32px; */
    }
    
    .hero-logo-text img {
        height: 40px;
    }
    
    .hero-line {
        display: none;
    }

    .hero-sub {
        padding: 60px 0;
    }

    .hero-sub-inner {
        grid-template-columns: 1fr;
    }
    
    .container-decoration {
        display: none;
    }
    
    .services-grid,
    .abonements-grid,
    .instructors-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .feedback-content {
        grid-template-columns: 1fr;
    }
    
    .contacts-map-wrapper {
        height: 500px;
    }
    
    .contacts-overlay {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        margin: 20px auto;
        width: 95%;
    }
}
