/* ===== TABLET (max-width: 1024px) ===== */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image {
        flex: none;
        width: 100%;
        max-width: 500px;
        height: 350px;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .about-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-hero__image {
        flex: none;
        width: 100%;
        max-width: 350px;
        height: 350px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .tech-block,
    .tech-block:nth-child(even) {
        flex-direction: column;
    }

    .tech-block__image {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .instruments-grid {
        grid-template-columns: 1fr 1fr;
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 68px 0;    /* golden step 3 */
    }

    .section-title {
        font-size: 1.618rem; /* golden ratio */
    }

    /* Mobile nav */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .nav--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav__link {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--color-text-dark);
        letter-spacing: 0.02em;
    }

    .nav__cta {
        margin-top: 16px;
        font-size: 1.1rem;
        padding: 14px 36px;
    }

    .burger {
        display: flex;
    }

    body.no-scroll {
        overflow: hidden;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 42px);
        padding-bottom: 42px;
    }

    .hero__title {
        font-size: 2rem;    /* 32px */
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__image {
        height: 250px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Stats */
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stats__number {
        font-size: 2rem;
    }

    /* Cards */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* License */
    .license {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 26px;          /* golden step 1 */
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal {
        flex-direction: column;
        gap: 8px;
    }

    /* About */
    .about-hero__name {
        font-size: 1.618rem; /* golden ratio */
    }

    .timeline {
        padding-left: 26px;  /* golden step 1 */
    }

    /* Courses */
    .course-card__title {
        font-size: 1.2rem;
    }

    /* Instruments */
    .instruments-grid {
        grid-template-columns: 1fr;
    }

    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificate-item {
        aspect-ratio: 3 / 2;
    }

    /* Principles */
    .principles-grid {
        grid-template-columns: 1fr;
    }

    /* Risk */
    .risk-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-form {
        padding: 26px;      /* golden step 1 */
    }

    /* Table */
    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 10px 12px;
    }

    /* Page header */
    .page-header {
        padding-top: calc(var(--header-height) + 26px);
        padding-bottom: 26px; /* golden step 1 */
    }

    /* Methodology */
    .methodology-grid {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-section {
        padding: 68px 0;    /* golden step 3 */
    }

    .cta-section .section-title {
        font-size: 1.6rem;
    }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stats__number {
        font-size: 1.6rem;
    }

    .stats__label {
        font-size: 0.8rem;
    }

    .hero__title {
        font-size: 1.7rem;
    }

    .card {
        padding: 24px 20px;
    }

    .logo span {
        font-size: 1rem;
    }
}
