* { box-sizing: border-box; }

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    display: block;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Предотвращение overflow для всех элементов */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

.dd {
    border: solid 1px aqua;
}


h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 0;
}

a {
    color: var(--blue);
    transition: opacity 0.2s ease;
}

/* Hover только для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    a:hover {
        opacity: 0.8;
    }
}

/* Active для touch устройств */
a:active {
    opacity: 0.7;
}

.glass {
    /* Цвет поверхности — Figma Fill: #296087 @ 40% */
    background: rgba(41, 96, 135, 0.40);

    /* Глубина и frost → лёгкая зернистость */
    backdrop-filter:
            blur(20px)                  /* Frost */
            saturate(140%)              /* Refraction */
            contrast(110%)              /* Depth */
            brightness(105%);           /* Light */
    -webkit-backdrop-filter:
            blur(20px)
            saturate(140%)
            contrast(110%)
            brightness(105%);

    /* Дополнительная "гранулированность" для имитации Dispersion */
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    backdrop-filter: blur(2px);

    /* Лёгкая хроматическая аберрация — аналог Dispersion 50% */
    background:
            radial-gradient(
                    circle at 30% 30%,
                    rgba(255,255,255,0.08),
                    transparent 70%
            );
    mix-blend-mode: screen;
    opacity: 0.25;
}

.glass::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    /* Frost noise (Figma → Frost 4) */
    background-image: url("data:image/svg+xml;utf8,\
        <svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'>\
        <filter id='n'>\
        <feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/>\
        </filter>\
        <rect width='100' height='100' filter='url(%23n)' opacity='0.06'/>\
        </svg>");
    opacity: 0.06;
    mix-blend-mode: overlay;
}


main .inner-page {
    color: var(--grey-text);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
}

main .inner-page h1 {
    font-weight: 700;
    font-size: 56px;
    line-height: 64px;
}

main .inner-page .content h2, main .inner-page .content p strong:first-child {
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
}

main .inner-page .content a {
   color: var(--blue);
   transition: opacity 0.2s ease;
}

/* Hover только для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
    main .inner-page .content a:hover {
        opacity: 0.8;
    }
}

/* Active для touch устройств */
main .inner-page .content a:active {
    opacity: 0.7;
}

.info-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 60px; /* row / col */
    border-radius: 10px;
}

.info-label{
    font-size: 12px;
    line-height: 1.2;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
}

.info-value{
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
    font-weight: 500;
}

@media (max-width: 640px){
    .info-grid{
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
    main .inner-page h1 {
        font-size: 40px;
        line-height: 48px;
    }
    
    main .inner-page .content h2, 
    main .inner-page .content p strong:first-child {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 768px) {
    main .inner-page {
        font-size: 14px;
        line-height: 18px;
    }
    
    main .inner-page h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    main .inner-page .content h2, 
    main .inner-page .content p strong:first-child {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (max-width: 480px) {
    main .inner-page h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    main .inner-page .content h2, 
    main .inner-page .content p strong:first-child {
        font-size: 18px;
        line-height: 24px;
    }
}

/* ========================================
   MOBILE UTILITY CLASSES
   ======================================== */

/* Скрытие на мобильных */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Показ только на мобильных */
.show-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block !important;
    }
}

/* Предотвращение горизонтального скролла */
body {
    overflow-x: hidden;
}

/* Улучшение читаемости текста на мобильных */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Улучшение кликабельности на мобильных */
    a, button, .btn, [role="button"], input[type="submit"], input[type="button"] {
        -webkit-tap-highlight-color: rgba(41, 96, 135, 0.3);
        touch-action: manipulation;
    }
}
