/* Mobile First CSS with Flexbox */
html {
    font-size: 10px;
}

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

body {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-0.2rem);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
}

.cookie-popup.hidden {
    display: none;
}

.cookie-content {
    background: #4A90E2;
    color: white;
    padding: 4rem;
    border-radius: 1rem;
    max-width: 60rem;
    text-align: center;
}

.cookie-content h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cookie-content p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    padding: 1rem 0;
}

.nav-brand h1 {
    color: white;
    font-size: 2.4rem;
    font-weight: 900;
}

.nav-brand a {
    text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
 background-image: url("./images/p1.png");
  background-repeat: no-repeat;
  background-size: cover;       /* щоб картинка покривала весь екран */
  background-position: center;  /* центрування картинки */


}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8), rgba(74, 144, 226, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 8rem;
}

.hero-card {
    background: rgba(74, 144, 226, 0.95);
    padding: 4rem;
    border-radius: 1rem;
    max-width: 60rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.hero-card h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.hero-card p {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.about-image {
    width: 100%;
    max-width: 50rem;
}

.about-image img {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    border-radius: 1rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

/* Courses Section */
.courses {
    padding: 8rem 0;
    background: #f8f9fa;
}

.courses h2 {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5rem;
    color: #333;
}

.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.course-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-0.5rem);
}

.course-image {
    width: 100%;
    height: 20rem;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card h3 {
    background: #4A90E2;
    color: white;
    padding: 2rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.course-card p {
    padding: 2rem;
    font-size: 1.4rem;
    line-height: 1.6;
    color: #666;
}

/* Why Choose Section */
.why-choose {
    padding: 8rem 0;
    background: white;
}

.why-choose-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.why-choose-text {
    flex: 1;
}

.why-choose-text h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.why-choose-text p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

.why-choose-image {
    width: 100%;
    max-width: 50rem;
}

.why-choose-image img {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    border-radius: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 0;
    background: #f8f9fa;
}

.testimonials h2 {
    font-size: 3.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5rem;
    color: #333;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.testimonial-card {
    background: #4A90E2;
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.4rem;
}

/* Steps Section */
.steps {
    padding: 8rem 0;
    background: white;
}

.steps-content {
    text-align: center;
}

.steps-content h2 {
    background: #4A90E2;
    color: white;
    padding: 3rem;
    border-radius: 1rem;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 4rem;
    line-height: 1.3;
}

.steps-image {
    width: 100%;
    margin-bottom: 4rem;
}

.steps-image img {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    border-radius: 1rem;
}

.steps-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    max-width: 80rem;
    margin: 0 auto;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #f8f9fa;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.contact-info p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
}

.contact-form {
    background: white;
    padding: 4rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    border: 0.1rem solid #ddd;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

.form-group textarea {
    height: 12rem;
    resize: vertical;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-content p {
    font-size: 1.4rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4A90E2;
}

/* Success Page */
.success-main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
}

.success-content {
    text-align: center;
}

.success-card {
    background: white;
    padding: 6rem 4rem;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
    max-width: 50rem;
}

.success-card h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #4A90E2;
    margin-bottom: 2rem;
}

.success-card p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 3rem;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 4rem;
    }

    .hero-card {
        padding: 5rem;
        max-width: 70rem;
    }

    .hero-card h2 {
        font-size: 3.2rem;
    }

    .about-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .about-image {
        max-width: 40rem;
        flex-shrink: 0;
    }

    .courses-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .course-card {
        flex: 1;
        min-width: calc(50% - 1rem);
    }

    .why-choose-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .why-choose-image {
        max-width: 40rem;
        flex-shrink: 0;
        order: 2;
    }

    .why-choose-text {
        order: 1;
    }

    .testimonials-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .testimonial-card {
        flex: 1;
        min-width: calc(50% - 1rem);
    }

    .contact-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form {
        flex: 1;
        max-width: 50rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-links {
        margin-top: 0;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-card {
        padding: 6rem;
        max-width: 80rem;
    }

    .hero-card h2 {
        font-size: 3.6rem;
    }

    .hero-card p {
        font-size: 1.6rem;
    }

    .about-content {
        gap: 6rem;
    }

    .about-image {
        max-width: 50rem;
    }

    .about-image img {
        height: 40rem;
    }

    .about-text h2 {
        font-size: 3.2rem;
    }

    .about-text p {
        font-size: 1.8rem;
    }

    .courses-grid {
        gap: 3rem;
    }

    .course-card {
        min-width: calc(25% - 2.25rem);
    }

    .course-image {
        height: 25rem;
    }

    .course-card h3 {
        font-size: 2.2rem;
        padding: 2.5rem 2rem;
    }

    .course-card p {
        font-size: 1.6rem;
        padding: 2.5rem;
    }

    .why-choose-content {
        gap: 6rem;
    }

    .why-choose-image {
        max-width: 50rem;
    }

    .why-choose-image img {
        height: 40rem;
    }

    .why-choose-text h2 {
        font-size: 3.2rem;
    }

    .why-choose-text p {
        font-size: 1.8rem;
    }

    .testimonials-grid {
        gap: 3rem;
    }

    .testimonial-card {
        min-width: calc(33.333% - 2rem);
    }

    .testimonial-card p {
        font-size: 1.8rem;
    }

    .testimonial-author {
        font-size: 1.6rem;
    }

    .steps-content h2 {
        font-size: 2.8rem;
        padding: 4rem;
    }

    .steps-image img {
        height: 40rem;
    }

    .steps-content p {
        font-size: 1.8rem;
    }

    .contact-content {
        gap: 6rem;
    }

    .contact-info h2 {
        font-size: 3.2rem;
    }

    .contact-info p {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 5rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .hero-card {
        max-width: 90rem;
    }

    .hero-card h2 {
        font-size: 4rem;
    }

    .about-image {
        max-width: 60rem;
    }

    .about-image img {
        height: 45rem;
    }

    .why-choose-image {
        max-width: 60rem;
    }

    .why-choose-image img {
        height: 45rem;
    }

    .steps-image img {
        height: 45rem;
    }
}
