@font-face {
    font-family: 'Kyiv Type';
    src: url('fonts/KyivType-Titling.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-red: #cc0000;
    --dark-red: #990000;
    --black: #1a1a1a;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kyiv Type', Arial, sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    color: var(--primary-red);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: var(--black);
}

.diagonal-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--black);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding-bottom: 10vh;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: relative;
    z-index: 100;
    color: var(--white);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.logo-container h1 {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.контакт-лінк {
    background-color: var(--primary-red);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.контакт-лінк:hover {
    background-color: var(--dark-red);
}

.burger-menu {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 5%;
    color: var(--white);
    min-height: 80vh;
}

.hero-content {
    width: 50%;
    padding-right: 2rem;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(204, 0, 0, 0.3);
    z-index: -1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-red);
    color: var(--white);
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.hero-image {
    width: 45%;
    position: relative;
    transform: rotate(-5deg);
    border: 10px solid var(--primary-red);
    overflow: hidden;
}

.hero-image img {
    transform: scale(1.1);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.2);
}

.about-section {
    padding: 6rem 5%;
    background-color: var(--light-gray);
}

.about-cards {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    flex: 1;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.about-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-card h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    padding: 0 1.5rem;
}

.about-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--dark-gray);
}

.programs-section {
    padding: 6rem 5%;
    background-color: var(--white);
}

.program-cards {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.program-card {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.program-card:nth-child(even) {
    flex-direction: row-reverse;
}

.program-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.program-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.program-image:hover img {
    transform: scale(1.05);
}

.program-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    position: relative;
}

.program-content::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 5px;
    background-color: var(--primary-red);
    top: 0;
    left: 2rem;
}

.program-content h3 {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.program-content p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.program-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.program-features li {
    position: relative;
    padding-left: 20px;
    font-weight: 500;
}

.program-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
}

.benefits-section {
    padding: 6rem 5%;
    background-color: var(--black);
    color: var(--white);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--black);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.benefits-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.benefits-header .section-title {
    color: var(--white);
}

.benefits-header .section-title::after {
    background-color: var(--primary-red);
    width: 80px;
    left: 50%;
    transform: translateX(-50%);
}

.benefits-header p {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.benefit-item:hover::before {
    height: 100%;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-red);
    margin-bottom: 1.5rem;
    position: relative;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.benefit-item p {
    font-size: 1rem;
    line-height: 1.6;
}

.testimonials-section {
    padding: 6rem 5%;
    background-color: var(--white);
}

.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.testimonial {
    display: flex;
    gap: 2rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-red);
}

.testimonial-content h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    color: var(--dark-gray);
}

.contact-section {
    padding: 6rem 5%;
    background-color: var(--light-gray);
    position: relative;
}

.contact-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    color: var(--dark-gray);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 0.5rem;
}

.contact-label {
    font-weight: bold;
    color: var(--primary-red);
    min-width: 100px;
}

.contact-value {
    color: var(--dark-gray);
}

.contact-form-container {
    flex: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), var(--black));
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 500;
    color: var(--dark-gray);
}

.form-field input,
.form-field textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.checkbox-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    grid-column: 1 / -1;
}

.checkbox-field input {
    width: 20px;
    height: 20px;
}

.checkbox-field label {
    font-size: 0.9rem;
}

.checkbox-field a {
    color: var(--primary-red);
    text-decoration: underline;
}

.submit-button {
    grid-column: 1 / -1;
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.main-footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 5% 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
}

.footer-logo-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-red);
}

.footer-logo p {
    color: var(--light-gray);
    max-width: 250px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-nav,
.footer-policies {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-nav h4,
.footer-policies h4,
.footer-contact h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-nav h4::after,
.footer-policies h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-nav ul,
.footer-policies ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a,
.footer-policies a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-nav a:hover,
.footer-policies a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.footer-contact {
    flex: 1;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .about-cards {
        flex-direction: column;
    }
    
    .program-card {
        flex-direction: column;
        gap: 2rem;
    }
    
    .program-card:nth-child(even) {
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .burger-menu {
        display: block;
    }
    
    .hero-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content,
    .hero-image {
        width: 100%;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .main-header {
        padding: 1rem 5%;
    }
    
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .program-content {
        padding: 1.5rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}