/* ============================================================
   Index page — idx-*
   ============================================================ */

/* ===== Shared section wrapper ===== */
.idx-section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}
.idx-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.idx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Section heading style ===== */
.idx-heading {
    font-size: 1.9rem;
    font-weight: 400;
    color: #243674;
    margin-bottom: 4px;
}

.idx-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #243674, #4a6cb3);
    border-radius: 2px;
    margin-top: 10px;
}

/* ============================================================
   Hero
   ============================================================ */
.idx-hero {
    background: linear-gradient(135deg, #0f1d45 0%, #1a2a5e 30%, #243674 60%, #2e4a8a 100%);
    padding: 0;
    max-width: none;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* subtle grid pattern */
/* decorative company emblems on the hero background */
.idx-hero-deco {
    position: absolute;
    pointer-events: none;
    opacity: 0.07;
    filter: brightness(0) invert(1);
    z-index: 0;
}
.idx-hero-deco--tr {
    width: 380px;
    height: 380px;
    top: -90px;
    right: -70px;
}
.idx-hero-deco--bl {
    width: 300px;
    height: 300px;
    bottom: -110px;
    left: -60px;
}

.idx-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 48px 72px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: center;
    min-height: 560px;
}

.idx-hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.idx-hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.idx-hero-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.22;
    max-width: none;
    margin-bottom: 0;
}

.idx-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    padding: 14px 32px;
    background: #fff;
    color: #243674;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.idx-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.idx-hero-cta svg {
    transition: transform 0.2s;
}

.idx-hero-cta:hover svg {
    transform: translateX(3px);
}

.idx-video-wrap {
    position: relative;
    padding-top: 56.21%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 56px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    background: #0f1d45 url('../images/CW_logo_icon.svg') center / 50% no-repeat;
}

.idx-video-wrap iframe,
.idx-video-wrap video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    object-fit: cover;
}

.idx-video-fullscreen {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 29, 69, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: background 0.2s;
}
.idx-video-fullscreen:hover { background: rgba(15, 29, 69, 0.8); }
.idx-video-fullscreen svg { width: 18px; height: 18px; }

/* ============================================================
   About
   ============================================================ */
.idx-about {
    max-width: 1200px;
    margin: 48px auto 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(36,54,116,0.07);
    padding: 48px 48px;
}

.idx-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.idx-about-text {
    max-width: none;
}

/* === Stats ===*/
.idx-about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-self: center;
}

.idx-about-stat {
    background: linear-gradient(135deg, #f2f5ff, #e8eeff);
    border: 1px solid rgba(36,54,116,0.09);
    border-radius: 16px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    transition: transform 0.22s, box-shadow 0.22s;
}

.idx-about-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(36,54,116,0.1);
}

.idx-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #243674;
    line-height: 1;
}

.idx-stat-label {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.idx-about-text p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0;
}

.idx-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #243674;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.18s;
}

.idx-about-btn:hover { opacity: 0.7; }

.idx-about-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.22s;
}

.idx-about-btn.open svg {
    transform: rotate(180deg);
}

.idx-about-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(.4,0,.2,1), opacity 0.45s;
}

.idx-about-more.open {
    max-height: 700px;
    opacity: 1;
}

.idx-about-more p {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-top: 14px;
}

/* ============================================================
   Slider
   ============================================================ */
.idx-slider-section {
    max-width: 1200px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(36,54,116,0.07);
    padding: 32px 32px 28px;
}

.idx-slider-head {
    margin-bottom: 20px;
}

.idx-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.idx-slider-window {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    background: #1a2a5e;
    min-height: 300px;
}

.idx-slider-track {
    position: relative;
    width: 100%;
    min-height: 300px;
}

.idx-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: stretch;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.idx-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.idx-slide.to-left  { opacity: 0; }
.idx-slide.to-right { opacity: 0; }

.idx-slide-img {
    width: 55%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px 0 0 16px;
    display: block;
    flex-shrink: 0;
}

.idx-slide-content {
    flex: 1;
    padding: 32px 28px;
    background: linear-gradient(135deg, #1a2a5e 0%, #243674 60%, #2d4496 100%);
    border-radius: 0 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.5s 0.15s, transform 0.5s 0.15s;
}

.idx-slide.active .idx-slide-content {
    opacity: 1;
    transform: translateX(0);
}

.idx-slide-content h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 14px;
}

.idx-slide-content ul {
    padding-left: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.idx-slide-content li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.5;
}

.idx-slide-content li span {
    font-weight: 500;
    color: #fff;
}

.idx-slide-link {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 9px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background 0.2s, transform 0.15s;
    align-self: flex-start;
    margin-top: 4px;
}

.idx-slide-link:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-1px);
}

/* Slider arrow buttons */
.idx-slider-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f3fb;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #243674;
    transition: background 0.18s, transform 0.15s;
}

.idx-slider-arrow:hover {
    background: #e0e8f8;
    transform: scale(1.08);
}

.idx-slider-arrow svg {
    width: 18px;
    height: 18px;
}

/* Dots */
.idx-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.idx-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0d9ef;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
    padding: 0;
}

.idx-slider-dot.active {
    background: #243674;
    transform: scale(1.3);
}

/* ============================================================
   Products cards
   ============================================================ */
.idx-products {
    max-width: 1200px;
    margin: 0 auto 32px;
    background: #f5f7fd;
    border-radius: 20px;
    padding: 40px 32px 32px;
    box-shadow: 0 2px 16px rgba(36,54,116,0.06);
}

.idx-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.idx-product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(36,54,116,0.07);
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.idx-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(36,54,116,0.13);
}

.idx-product-img {
    width: 200px;
    max-width: 100%;
    height: 130px;
    object-fit: contain;
    margin-bottom: 20px;
}

.idx-product-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #243674;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
}

.idx-product-desc {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 20px;
}

.idx-product-btn {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 10px;
    background: #f0f3fb;
    color: #243674;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    margin-top: auto;
}

.idx-product-card:hover .idx-product-btn {
    background: #243674;
    color: #fff;
}

.idx-products-foot {
    text-align: center;
    margin-top: 28px;
}

.idx-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #243674;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.18s;
}

.idx-see-all:hover { opacity: 0.7; }

/* ============================================================
   News
   ============================================================ */
.idx-news {
    max-width: 1200px;
    margin: 0 auto 32px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(36,54,116,0.07);
    padding: 40px 32px 32px;
}

.idx-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.idx-social-row {
    display: flex;
    gap: 10px;
}

.idx-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    background: rgba(36,54,116,0.7);
    color: #fff;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.idx-social-btn:hover {
    transform: translateY(-2px);
    background: #243674;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.idx-social-btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 5px;
}

.idx-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.idx-news-card {
    background: #f8f9fe;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s, box-shadow 0.22s;
    display: flex;
    flex-direction: column;
}

.idx-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(36,54,116,0.11);
}

.idx-news-media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.idx-news-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.idx-news-title {
    font-size: 0.97rem;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
}

.idx-news-excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.55;
    flex: 1;
}

.idx-news-date {
    font-size: 0.82rem;
    color: #aaa;
    margin-top: 4px;
}

.idx-news-foot {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.idx-news-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.97rem;
    font-weight: 500;
    color: #fff;
    background: #243674;
    border: none;
    border-radius: 12px;
    padding: 11px 32px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.idx-news-more:hover {
    background: #1a2a5e;
    transform: translateY(-1px);
}

/* Hidden data in news cards */
.idx-news-card .idx-news-full,
.idx-news-card .idx-news-video-src { display: none; }

/* ============================================================
   Services
   ============================================================ */
.idx-services {
    max-width: 1200px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #0f1d45, #1a2a5e, #243674);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(36,54,116,0.18);
}

.idx-services .idx-heading {
    color: #fff;
    margin-bottom: 28px;
}

.idx-services .idx-heading::after {
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));
}

.idx-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.idx-service-tile {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 180px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.idx-service-tile:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.25);
}

.idx-service-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.idx-service-tile:hover img {
    transform: scale(1.05);
}

.idx-service-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,29,69,0.75) 0%, rgba(15,29,69,0.1) 60%);
}

.idx-service-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 16px 18px;
    font-size: 1.05rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ============================================================
   News modal
   ============================================================ */
.idx-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,29,69,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.idx-modal.open { display: flex; animation: idx-modal-in 0.2s ease; }

@keyframes idx-modal-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.idx-modal-box {
    background: #fff;
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(15,29,69,0.25);
    display: flex;
    flex-direction: column;
    animation: idx-modal-box-in 0.22s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.idx-modal-box::-webkit-scrollbar {
    display: none;
}

@keyframes idx-modal-box-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.idx-modal-close {
    position: sticky;
    top: 16px;
    align-self: flex-end;
    margin: 16px 16px -40px;
    z-index: 1;
    background: rgba(238, 239, 244, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #243674;
    transition: background 0.15s;
    flex-shrink: 0;
}

.idx-modal-close:hover { background: rgba(238, 239, 244, 0.9) }
.idx-modal-close svg { width: 18px; height: 18px; }

.idx-modal-media-wrap {
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
}

.idx-modal-media {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    margin: 0 auto;
}

.idx-modal-media.hidden { display: none; }

.idx-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 29, 69, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}
.idx-modal-arrow:hover { background: rgba(15, 29, 69, 0.75); }
.idx-modal-arrow svg { width: 18px; height: 18px; }
.idx-modal-arrow--prev { left: 12px; }
.idx-modal-arrow--next { right: 12px; }
.idx-modal-arrow.hidden { display: none; }

.idx-modal-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px 0 0;
}
.idx-modal-dots:empty { padding: 0; }
.idx-modal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #dbe1ef;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.idx-modal-dot.active {
    background: #243674;
    transform: scale(1.3);
}

.idx-modal-body {
    padding: 24px 28px 28px;
}

.idx-modal-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #243674;
    margin-bottom: 14px;
    line-height: 1.4;
}

.idx-modal-text {
    font-size: 0.97rem;
    color: #444;
    line-height: 1.7;
}

/* ============================================================
   Responsive — планшеты (601–900px)
   ============================================================ */
@media (max-width: 900px) {
    /* Scroll-reveal отключён на мобильных — JS-детекция ненадёжна на маленьких экранах */
    .idx-section {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Hero — одна колонка */
    .idx-hero-inner {
        grid-template-columns: 1fr;
        padding: 56px 32px 48px;
        gap: 36px;
        min-height: auto;
    }
    .idx-hero-title { font-size: 1.8rem; }
    .idx-video-wrap { max-width: 560px; margin: 0 auto; width: 100%;}

    /* About — одна колонка */
    .idx-about { padding: 28px 24px; }
    .idx-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .idx-about-stats { grid-template-columns: repeat(4, 1fr); }

    /* Slider */
    .idx-slider-section { padding: 24px 16px 20px; }
    .idx-slider-arrow { display: none; }
    .idx-slide-img { width: 45%; height: 240px; }
    .idx-slider-track,
    .idx-slider-window { min-height: 240px; }
    .idx-slide { min-height: 240px; }
    .idx-slide-content { padding: 20px 18px; }
    .idx-slide-content h3 { font-size: 1.05rem; }

    /* Grids */
    .idx-products-grid { grid-template-columns: 1fr 1fr; }
    .idx-news-grid { grid-template-columns: 1fr 1fr; }
    .idx-services-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Responsive — телефоны (≤600px)
   ============================================================ */
@media (max-width: 600px) {
    /* Hero */
    .idx-hero-inner {
        padding: 32px 16px 28px;
        gap: 22px;
    }
    .idx-hero-title { font-size: 1.45rem; line-height: 1.3; }
    .idx-hero-label { font-size: 0.72rem; }
    .idx-hero-cta { padding: 13px 26px; font-size: 0.93rem; }
    .idx-video-wrap { max-width: 100%; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.35); width: 100%; }

    /* About */
    .idx-about { padding: 24px 20px; margin: 0 12px 24px; }
    .idx-about-stats { grid-template-columns: 1fr 1fr; }

    /* Slider */
    .idx-slider-section { margin: 0 12px 24px; }
    .idx-slide { flex-direction: column; min-height: auto; }
    .idx-slide-img { width: 100%; height: 200px; border-radius: 16px 16px 0 0; }
    .idx-slide-content { border-radius: 0 0 16px 16px; padding: 20px 18px; }
    .idx-slider-window { min-height: auto; }
    .idx-slider-track { min-height: auto; }

    /* Products */
    .idx-products { margin: 0 12px 24px; padding: 28px 16px 24px; }
    .idx-products-grid { grid-template-columns: 1fr; }

    /* News */
    .idx-news { margin: 0 12px 24px; padding: 28px 16px 24px; }
    .idx-news-grid { grid-template-columns: 1fr; }
    .idx-news-head { flex-direction: column; align-items: flex-start; }
    .idx-social-row { width: 100%; }
    .idx-social-btn { flex: 1; justify-content: center; }

    /* Services */
    .idx-services { margin: 0 12px 24px; padding: 28px 16px; }
    .idx-services-grid { grid-template-columns: 1fr; }
    .idx-service-tile { min-height: 160px; }

    /* News "more" button */
    .idx-news-more { width: 100%; }
}

/* ============================================================
   Responsive — малые телефоны (≤375px)
   ============================================================ */
@media (max-width: 375px) {
    .idx-hero-inner { padding: 32px 14px 28px; }
    .idx-hero-title { font-size: 1.25rem; }
    .idx-about-stats { grid-template-columns: 1fr; }
    .idx-stat-num { font-size: 1.6rem; }
    .idx-heading { font-size: 1.5rem; }
}

/* ============================================================
   Responsive — широкие экраны (≥1440px)
   ============================================================ */
@media (min-width: 1440px) {
    .idx-hero-inner { max-width: 1360px; padding: 100px 64px 84px; }
    .idx-hero-title { font-size: 2.8rem; }
    .idx-about,
    .idx-slider-section,
    .idx-products,
    .idx-news,
    .idx-services { max-width: 1360px; }
}

/* ============================================================
   Focus styles (keyboard navigation)
   ============================================================ */
.idx-hero-cta:focus-visible,
.idx-about-btn:focus-visible,
.idx-slider-arrow:focus-visible,
.idx-slider-dot:focus-visible,
.idx-product-card:focus-visible,
.idx-news-more:focus-visible,
.idx-see-all:focus-visible,
.idx-service-tile:focus-visible,
.idx-social-btn:focus-visible,
.idx-modal-close:focus-visible {
    outline: 2px solid #243674;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .idx-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .idx-hero-cta,
    .idx-hero-cta svg,
    .idx-about-stat,
    .idx-about-btn svg,
    .idx-product-card,
    .idx-service-tile img,
    .idx-news-card .idx-news-media {
        transition: none;
        transform: none;
    }
    .idx-hero-cta:hover,
    .idx-about-stat:hover,
    .idx-product-card:hover {
        transform: none;
    }
    .idx-slide,
    .idx-slider-track {
        transition: none;
    }
}
