
@media (max-width: 1200px) and (min-width: 768px) {
    .projects-showcase {
        padding: 72px 0;
        background: linear-gradient(180deg, #ffffff 0 24%, #0f5b99 24% 100%);
    }

    .projects-showcase__shape {
        width: 260px;
        height: 260px;
        top: 36px;
        left: -30px;
        opacity: 0.92;
    }

    .projects-showcase__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .projects-showcase__content {
        padding-top: 120px;
        max-width: 760px;
    }

    .projects-showcase__content h2 {
        max-width: 700px;
        font-size: 2.6rem;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .projects-showcase__content p {
        max-width: 760px;
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .projects-showcase__logos {
        min-height: auto;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 28px;
    }

    .project-badge,
    .project-badge:first-child,
    .project-badge--middle,
    .project-badge--bottom {
        position: static;
        width: 170px;
        height: 170px;
    }
}

@media (max-width: 1100px) {
    .tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .slide-inner {
        grid-template-columns: 1fr 1fr;
    }

    .slide-text {
        padding: 36px;
    }

    .slide-text h3 {
        font-size: 1.9rem;
    }

    .simple-slider {
        min-height: 420px;
    }

    .product-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1000px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-side {
        max-width: 100%;
    }

    .hero-product-slider {
        min-height: 420px;
    }

    .hero-product-image {
        min-height: 210px;
        padding: 12px;
    }

    .hero-product-image img {
        max-height: 240px;
    }

    .hero-product-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .product-tiles {
        padding-top: 44px;
        padding-bottom: 56px;
    }

    .projects-showcase,
    .homepage-news,
    .homepage-references,
    .about-preview {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .homepage-news__head,
    .homepage-references__head {
        margin-bottom: 24px;
    }

    .homepage-news__grid,
    .homepage-references__grid,
    .category-intro__grid,
    .product-detail,
    .usage-grid,
    .about-intro__grid,
    .about-focus__grid,
    .about-segments__grid,
    .timeline-item,
    .news-intro__grid,
    .news-grid,
    .news-detail-layout,
    .references-intro__grid,
    .references-grid,
    .contact-grid,
    .contact-form-wrap,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .product-detail.image-right .product-detail__media,
    .product-detail.image-right .product-detail__content {
        order: unset;
    }

    .category-hero h1 {
        font-size: 38px;
    }

    .product-detail__content h2 {
        font-size: 28px;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .category-anchor-nav {
        display: none;
    }

    .product-detail {
        scroll-margin-top: 100px;
        gap: 26px;
    }

    .admin-sections-grid,
    .admin-form__grid,
    .admin-repeat-row {
        grid-template-columns: 1fr;
    }

    .admin-repeat-row--single {
        grid-template-columns: 1fr;
    }

    .admin-remove-btn {
        width: 100%;
    }

    .reference-row__main {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 800px) {
    .header-admin {
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
    }

    .menu-toggle {
        display: block;
        color: #ffffff;
    }

    .main-nav {
        display: none;
        width: 100%;
        padding-top: 15px;
        background: rgba(9, 21, 56, 0.94);
        border: 1px solid rgba(173, 196, 248, 0.28);
        border-radius: 20px;
        padding: 14px;
        box-shadow: 0 18px 36px rgba(8, 17, 45, 0.35);
    }

    .main-nav.open {
        display: block;
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
        min-height: auto;
    }

    .main-nav .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav .menu > li,
    .main-nav a {
        width: 100%;
    }

    .main-nav a {
        padding: 12px 14px;
        color: rgba(255, 255, 255, 0.92);
    }

    .dropdown,
    .subdropdown {
        position: static;
        display: none;
        box-shadow: none;
        border: 1px solid rgba(173, 196, 248, 0.24);
        padding: 8px;
        margin-top: 6px;
        margin-left: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 14px;
        min-width: 100%;
    }

    .has-dropdown.open > .dropdown,
    .has-subdropdown.open > .subdropdown {
        display: block;
    }

    .dropdown li a,
    .subdropdown li a {
        white-space: normal;
        padding: 10px 12px;
    }

    .logo img {
        height: 36px;
    }

    .tiles-grid,
    .product-category-grid {
        grid-template-columns: 1fr;
    }

    .tile {
        min-height: auto;
    }

    .simple-slider {
        min-height: 520px;
    }

    .slider-controls {
        left: 10px;
        right: 10px;
    }

    .slide-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .slide img {
        height: 260px;
        padding: 20px;
    }

    .slide-text {
        padding: 28px;
    }

    .slide-text h3 {
        font-size: 1.7rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .category-hero__eyebrow,
    .product-detail__eyebrow {
        font-size: 12px;
        letter-spacing: 0.06em;
        padding: 6px 10px;
        margin-bottom: 10px;
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .tile,
    .homepage-news__card,
    .homepage-reference-card {
        border-radius: 22px;
    }

    .product-tiles {
        padding-top: 36px;
        padding-bottom: 46px;
    }

    .projects-showcase,
    .homepage-news,
    .homepage-references,
    .about-preview {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .product-tiles h2,
    .homepage-news__head h2,
    .homepage-references__head h2,
    .about-preview h2,
    .projects-showcase__content h2 {
        margin-bottom: 12px;
    }

    .homepage-news__head,
    .homepage-references__head {
        margin-bottom: 20px;
    }

    .about-preview p,
    .projects-showcase__content p {
        margin-bottom: 18px;
    }

    .projects-showcase {
        background: linear-gradient(180deg, #ffffff 0 14%, #0f5b99 14% 100%);
    }

    .projects-showcase__shape {
        width: 165px;
        height: 165px;
        top: 10px;
        left: -22px;
        opacity: 0.9;
        clip-path: polygon(0 0, 48% 0, 100% 70%, 0 100%);
    }

    .projects-showcase__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .projects-showcase__content {
        padding-top: 92px;
        max-width: 100%;
    }

    .projects-showcase__content h2 {
        font-size: 2rem;
        line-height: 1.08;
        max-width: 260px;
    }

    .projects-showcase__content p {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 22px;
        max-width: 100%;
    }

    .projects-showcase__logos {
        min-height: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
        justify-items: center;
        align-items: start;
    }

    .project-badge,
    .project-badge:first-child,
    .project-badge--middle,
    .project-badge--bottom {
        position: static;
        width: 126px;
        height: 126px;
    }

    .project-badge--bottom {
        grid-column: 1 / -1;
    }

    .hero {
        padding: 34px 0 24px;
    }

    .hero-inner {
        gap: 20px;
    }

    .hero h1 {
        font-size: 1.9rem;
        line-height: 1.1;
        margin-bottom: 14px;
        max-width: 12ch;
        letter-spacing: -0.025em;
    }

    .hero p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .hero-actions {
        margin-top: 22px;
        gap: 10px;
    }

    .hero-product-slider {
        min-height: 330px;
        border-radius: 20px;
    }

    .hero-product-slide {
        padding: 16px 16px 64px;
    }

    .hero-product-image {
        min-height: 130px;
        margin-top: 0;
        border-radius: 16px;
        padding: 10px;
    }

    .hero-product-image img {
        max-height: 118px;
    }

    .hero-product-text h3 {
        margin-top: 6px;
        margin-bottom: 8px;
        font-size: 1.15rem;
    }

    .hero-product-text p {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .hero-product-controls {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }

    .hero-product-controls button {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero-bg-shape-1,
    .hero-bg-shape-2 {
        opacity: 0.45;
        transform: scale(0.7);
    }

    .homepage-news__card,
    .homepage-reference-card,
    .news-card,
    .news-detail-article,
    .news-detail-sidebar__box,
    .news-intro__text,
    .news-intro__box,
    .about-intro__text,
    .about-intro__box,
    .about-segments__content,
    .about-segments__list,
    .about-history__wrap,
    .about-card,
    .contact-main-card,
    .contact-side-card,
    .contact-form-wrap,
    .category-intro__text,
    .category-intro__box,
    .category-cta__box {
        padding: 26px;
    }

    .homepage-news__image,
    .news-card__image {
        margin: -24px -24px 18px;
    }

    .homepage-news__image img,
    .news-card__image img {
        height: 200px;
    }

    .homepage-news__head h2,
    .homepage-references__head h2 {
        font-size: 1.9rem;
    }

    .category-hero {
        padding: 44px 0 30px;
    }

    .category-hero h1 {
        font-size: 32px;
    }

    .product-detail {
        padding: 32px 0;
    }

    .product-detail__media {
        min-height: 300px;
        padding: 24px;
    }

    .product-detail__media img {
        max-width: 90%;
        max-height: 260px;
    }

    .product-detail__content h2 {
        font-size: 30px;
    }

    .product-detail__actions .btn {
        width: 100%;
    }

    .product-detail__subtitle {
        font-size: 16px;
    }

    .site-footer {
        padding-top: 44px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 28px;
    }

    .footer-column--products,
    .footer-column--projects {
        display: none;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-company__details p {
        margin: 0 0 6px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-bottom {
        padding: 16px 0 20px;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    .category-hero__eyebrow,
    .product-detail__eyebrow {
        font-size: 11px;
        letter-spacing: 0.05em;
        padding: 6px 9px;
    }

    .product-detail__media {
        min-height: 280px;
        padding: 24px;
    }

    .product-detail__media img {
        max-width: 90%;
        max-height: 250px;
    }

    .hero {
        padding: 32px 0 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .category-hero__actions .btn,
    .product-detail__actions .btn {
        width: 100%;
    }

    .page-admin .page-hero {
        padding: 40px 0 18px;
    }

    .admin-dashboard {
        padding: 24px 0 40px;
    }

    .admin-form,
    .admin-block {
        padding: 18px;
        border-radius: 16px;
    }

    .admin-product-row {
        align-items: flex-start;
    }

    .reference-row {
        padding: 14px;
    }

    .reference-row__main {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .reference-row__category {
        width: fit-content;
    }

    .reference-row__description {
        display: none;
    }
}
