@font-face {
    font-family: 'Energy';
    src: url('fonts/energy.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-black: #000000;
    --color-red: #D30000;
    --color-dark-red: #9C0000;
    --color-gray: #333333;
    --color-light-gray: #EFEFEF;
    --color-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Energy', 'Roboto', sans-serif;
    color: var(--color-black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80%;
    height: 3px;
    background-color: var(--color-red);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

section {
    padding: 5rem 2rem;
    width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-black);
    padding: 1rem 2rem;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.logo img {
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--color-white);
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: width 0.3s;
}

.main-nav a:hover {
    color: var(--color-red);
}

.main-nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    margin: 3px 0;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray) 100%);
    color: var(--color-white);
}

.hero-content, .hero-image {
    flex: 1;
    min-width: 300px;
}

.hero-content {
    padding: 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.hero-image img {
    transform: rotate(-3deg);
    box-shadow: 10px 10px 0 var(--color-red);
    max-width: 90%;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transform: skew(-15deg);
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-dark-red);
    transform: skew(-15deg) scale(1.05);
}

.diagonal-section {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.diagonal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--color-black);
    transform: skewY(-3deg) translateY(-50px);
    z-index: -1;
}

.diagonal-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.philosophy-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.philosophy-text, .philosophy-image {
    flex: 1 1 300px;
}

.philosophy-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.philosophy-image img {
    transform: rotate(2deg);
    box-shadow: -10px 10px 0 var(--color-red);
    max-width: 90%;
    margin: 0 auto;
}

.hexagon-section {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 6rem 2rem;
}

.hexagon-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.hexagon {
    width: 280px;
    height: 320px;
    background-color: var(--color-gray);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: transform 0.3s;
    position: relative;
}

.hexagon:hover {
    transform: translateY(-10px);
}

.hexagon-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
}

.hexagon-content img {
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-red);
}

.hexagon-content h3 {
    color: var(--color-red);
    margin-bottom: 0.5rem;
}

.hexagon-content p {
    font-size: 0.9rem;
}

.slant-section {
    position: relative;
    padding: 7rem 2rem;
}

.slant-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150%;
    height: 100%;
    background-color: var(--color-light-gray);
    transform: skewX(-20deg) translateX(30%);
    z-index: -1;
}

.slant-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--color-white);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--color-red);
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--color-red);
}

.trainers {
    background-color: var(--color-black);
    color: var(--color-white);
    text-align: center;
    padding: 6rem 2rem;
}

.trainers-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.trainer-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 300px;
    max-width: 500px;
    background-color: var(--color-gray);
    padding-bottom: 2rem;
    transform: skewY(-3deg);
    overflow: hidden;
}

.trainer-photo {
    height: 300px;
    overflow: hidden;
}

.trainer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: skewY(3deg) scale(1.1);
    transition: transform 0.5s;
}

.trainer-card:hover .trainer-photo img {
    transform: skewY(3deg) scale(1.2);
}

.trainer-info {
    padding: 2rem;
    transform: skewY(3deg);
}

.trainer-specialization {
    color: var(--color-red);
    font-weight: 700;
    margin-bottom: 1rem;
}

.testimonials {
    padding: 6rem 2rem;
    text-align: center;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.testimonial-card {
    flex: 1 1 400px;
    max-width: 500px;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    position: relative;
    border-top: 5px solid var(--color-red);
    text-align: left;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--color-red);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-red);
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    color: var(--color-red);
}

.contact {
    padding: 6rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
}

.contact h2 {
    text-align: center;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 3rem;
}

.contact-info {
    flex: 1 1 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item h3 {
    color: var(--color-red);
    margin-bottom: 1rem;
}

.contact-form {
    flex: 1 1 400px;
    background-color: var(--color-gray);
    padding: 2rem;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-light-gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    background-color: var(--color-light-gray);
    color: var(--color-black);
    border-left: 3px solid var(--color-red);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 5px var(--color-red);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    margin-top: 1rem;
    width: 100%;
}

.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 200px;
}

.footer-logo p {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-nav, .footer-policies, .footer-contacts {
    flex: 1 1 200px;
}

.footer h3 {
    color: var(--color-red);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-red);
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: var(--color-white);
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--color-red);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .hero-content h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .philosophy-container, .trainers-carousel {
        gap: 1.5rem;
    }

    .hexagon {
        width: 240px;
        height: 280px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content, .hero-image {
        flex: 100%;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-image img {
        margin: 0 auto;
    }

    .philosophy-text, .philosophy-image {
        flex: 100%;
    }

    .philosophy-text {
        order: 2;
    }

    .philosophy-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .hexagon {
        width: 220px;
        height: 260px;
    }

    .slant-section::before {
        transform: skewX(-10deg) translateX(20%);
    }

    .trainer-card {
        flex: 100%;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        clip-path: none;
    }

    .footer-logo, .footer-nav, .footer-policies, .footer-contacts {
        flex: 100%;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .header {
        padding: 0.8rem 1rem;
    }

    .logo img {
        width: 80px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
    }

    .hexagon {
        width: 100%;
        height: 240px;
    }

    .hexagon-content p {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-author img {
        width: 60px;
        height: 60px;
    }
}

@media screen and (max-width: 375px) {
    body {
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hexagon {
        height: 200px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
}