/* ===== Сброс глобальных отступов ===== */
html, body {
    margin: 0;
    padding: 0;
	font-family: "Arial Black", Arial, sans-serif;
}

/* ===== HEADER BLOCK STYLES ===== */

.hdr-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(220, 220, 220, 0.2);
    backdrop-filter: blur(50px);
    z-index: 1000;
    transition: height 0.4s ease;
}

.hdr-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
}

/* Logo */
.hdr-logo img {
    height: 32px;
    cursor: pointer;
    transition: opacity 0.4s ease;
}

/* Navigation */
.hdr-nav {
    display: flex;
    gap: 24px;
}

.hdr-nav a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
}

/* ===== Language switch ===== */

.hdr-lang {
    position: relative;
}

.hdr-lang-current {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;

    width: 36px;              /* фиксируем ширину */
    text-align: center;       /* центрируем текст */
    padding: 4px 0;
}

.hdr-lang-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    padding-top: 6px; /* визуальный отступ, но hover-зона цельная */
}

.hdr-lang-list button {
    background: none;
    border: none;
    color: #ccc;
    padding: 4px 0;
    cursor: pointer;
    font-size: 13px;
}


/* ===== Burger button (fixed) ===== */

.hdr-burger {
    display: none;
    position: relative;
    width: 26px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.hdr-burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to bottom, #999, #666);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hdr-burger span:nth-child(1) {
    top: 0;
}

.hdr-burger span:nth-child(2) {
    top: 9px;
}

.hdr-burger span:nth-child(3) {
    bottom: 0;
}

/* Open → cross */
.hdr-burger-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hdr-burger-open span:nth-child(2) {
    opacity: 0;
}

.hdr-burger-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== Mobile menu container ===== */
.hdr-mobile-menu {
    position: absolute;      /* поверх контента */
    top: 100%;               /* сразу под хедером */
    left: 0;
    width: 100%;
    height: calc(100vh - 100%); /* полностью под шапкой */
    background: rgba(255,255,255,0.95); /* можно настроить прозрачность */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0; /* убран левый/правый padding для центровки */

    overflow: hidden;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999; /* над контентом */
}

/* Open state */
.hdr-header.hdr-open .hdr-mobile-menu {
    transform: scaleY(1);
    opacity: 1;
}

/* ===== Animate menu items separately ===== */
.hdr-mobile-menu a,
.hdr-mobile-menu .hdr-lang-mobile {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* When menu open */
.hdr-header.hdr-open .hdr-mobile-menu a,
.hdr-header.hdr-open .hdr-mobile-menu .hdr-lang-mobile {
    opacity: 1;
    transform: translateY(0);
}

/*Text Menu */
.hdr-mobile-menu a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
}

/* ===== Mobile layout ===== */
@media (max-width: 800px) {

    /* Скрываем обычное меню и языковой блок */
    .hdr-nav,
    .hdr-lang {
        display: none;
    }

    /* Показываем бургер */
    .hdr-burger {
        display: flex;
    }

    /* Логотип полупрозрачный при открытом меню */
    .hdr-header.hdr-open .hdr-logo img {
        opacity: 0.3;
    }

    /* ===== Мобильное меню ===== */
    .hdr-mobile-menu {
        position: absolute;         /* поверх контента */
        top: 100%;                  /* сразу под шапкой */
        left: 0;
        width: 100%;
        height: calc(100vh - 100%); /* весь экран под хедером */
        background: rgba(255,255,255,0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* пункты сверху */
        gap: 20px;
        padding: 20px 0;          /* убран левый/правый padding для центровки */
        overflow: hidden;
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        z-index: 999;
    }

    /* Состояние открытого меню */
    .hdr-header.hdr-open .hdr-mobile-menu {
        transform: scaleY(1);
        opacity: 1;
    }

    /* Пункты меню */
    .hdr-mobile-menu a {
        width: 80%;              /* ширина блока */
        max-width: 300px;        /* можно ограничить, чтобы не растягивалось на больших телефонах */
        text-align: center;      /* текст строго по центру */
        margin: 0 auto;          /* сам блок по центру контейнера */
        font-size: 20px;
        padding: 12px 24px;      /* внутренний padding */
        color: #555;
        text-decoration: none;

        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .hdr-header.hdr-open .hdr-mobile-menu a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Языковой блок в мобильном меню */
     .hdr-lang-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.35s ease, transform 0.35s ease;
        margin: 0 auto;            /* блок по центру контейнера */
        width: 80%;
        max-width: 300px;
    }

    .hdr-header.hdr-open .hdr-lang-mobile {
        opacity: 1;
        transform: translateY(0);
    }

    .hdr-lang-mobile .hdr-lang-current,
    .hdr-lang-mobile .hdr-lang-list button {
        width: 100%;           /* кнопки занимают всю ширину родителя */
        text-align: center;    /* текст строго по центру */
        margin: 4px 0;
    }

    .hdr-lang-mobile .hdr-lang-current {
        font-size: 18px;
        margin-top: 10px;
    }
}

/* ===== Disable mobile tap highlight ===== */

button,
a,
.hdr-lang-current,
.hdr-lang-list button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}
/* ===== /HEADER BLOCK STYLES ===== */


/* ===== HERO BLOCK ===== */
.hero-block {
    position: relative;
    width: 100%;
    overflow: hidden;

    /* Сдвиг блока под фиксированный хедер */
    margin-top: 64px; /* под хедером (скорректируй под реальную высоту) */
    box-sizing: border-box;
    z-index: 0;
	min-height: calc(100vh - 64px); /* высота экрана минус высота хедера */
}
/* Видео-фон */
.hero-video {
    position: absolute;
	inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* видео масштабируется и обрезается по размеру блока */
    z-index: 0;
}

/* ===== Голубые «пиксельные» квадраты справа снизу ===== */
.hero-grid {
    position: absolute;
	inset: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-grid span {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(0,200,255,0.6);
}

/* ===== Контент блока ===== */
.hero-content {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    max-width: 1200px;

    padding: 0 24px 40px 24px; /* отступ от краёв экрана */
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 24px;

    z-index: 1;
}

/* Верхняя строка: лого + Media */
.hero-top-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.hero-logo img {
    height: 64px;
    user-select: none;
}

.hero-text-top {
    font-size: 64px;
    font-weight: 900;
    font-family: "Arial Black", Arial, sans-serif;
    color: #fff;
    margin: 0;
    line-height: 1;
    user-select: none;
}

.hero-text-bottom {
    display: flex;
    flex-direction: column;
}

.hero-text-bottom h2,
.hero-text-bottom p {
    margin-left: 0;
}

.hero-text-bottom h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.hero-text-bottom p {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .hero-block {
        margin-top: 64px;        /* под хедером */
        padding: 32px 16px;      /* внутренние отступы */
    }

    .hero-logo img {
        height: 48px;
    }

    .hero-text-top {
        font-size: 40px;
        line-height: 1;
    }

    .hero-content {
        width: 80%;              /* текст остаётся 60% */
        padding-left: 5%;
    }

    .hero-text-bottom h2 {
        font-size: 24px;
        margin: 0 0 8px 0;
        line-height: 1.5;
    }

    .hero-text-bottom p {
        font-size: 16px;
        margin: 0;
        line-height: 1.5;
    }

    .hero-grid span {
        width: 12px;
        height: 12px;
    }
}

/* ===== Колонки квадратов справа налево ===== */
/* 1-я колонка — 7 квадратов */
.hero-grid span:nth-child(1)  { right: 0px;   bottom: 0px;   opacity: 1; }
.hero-grid span:nth-child(2)  { right: 0px;   bottom: 30px;  opacity: 0.85; }
.hero-grid span:nth-child(3)  { right: 0px;   bottom: 60px;  opacity: 0.7; }
.hero-grid span:nth-child(4)  { right: 0px;   bottom: 90px;  opacity: 0.55; }
.hero-grid span:nth-child(5)  { right: 0px;   bottom: 120px; opacity: 0.45; }
.hero-grid span:nth-child(6)  { right: 0px;   bottom: 150px; opacity: 0.35; }
.hero-grid span:nth-child(7)  { right: 0px;   bottom: 180px; opacity: 0.25; }

/* 2-я колонка — 6 квадратов */
.hero-grid span:nth-child(8)  { right: 30px;  bottom: 0px;   opacity: 1; }
.hero-grid span:nth-child(9)  { right: 30px;  bottom: 30px;  opacity: 0.85; }
.hero-grid span:nth-child(10) { right: 30px;  bottom: 60px;  opacity: 0.7; }
.hero-grid span:nth-child(11) { right: 30px;  bottom: 90px;  opacity: 0.55; }
.hero-grid span:nth-child(12) { right: 30px;  bottom: 120px; opacity: 0.45; }
.hero-grid span:nth-child(13) { right: 30px;  bottom: 150px; opacity: 0.35; }

/* 3-я колонка — 5 квадратов */
.hero-grid span:nth-child(14) { right: 60px;  bottom: 0px;   opacity: 1; }
.hero-grid span:nth-child(15) { right: 60px;  bottom: 30px;  opacity: 0.85; }
.hero-grid span:nth-child(16) { right: 60px;  bottom: 60px;  opacity: 0.7; }
.hero-grid span:nth-child(17) { right: 60px;  bottom: 90px;  opacity: 0.55; }
.hero-grid span:nth-child(18) { right: 60px;  bottom: 120px; opacity: 0.45; }

/* 4-я колонка — 4 квадрата */
.hero-grid span:nth-child(19) { right: 90px;  bottom: 0px;   opacity: 1; }
.hero-grid span:nth-child(20) { right: 90px;  bottom: 30px;  opacity: 0.85; }
.hero-grid span:nth-child(21) { right: 90px;  bottom: 60px;  opacity: 0.7; }
.hero-grid span:nth-child(22) { right: 90px;  bottom: 90px;  opacity: 0.55; }

/* 5-я колонка — 3 квадрата */
.hero-grid span:nth-child(23) { right: 120px; bottom: 0px;   opacity: 1; }
.hero-grid span:nth-child(24) { right: 120px; bottom: 30px;  opacity: 0.7; }
.hero-grid span:nth-child(25) { right: 120px; bottom: 60px;  opacity: 0.55; }

/* 6-я колонка — 2 квадрата */
.hero-grid span:nth-child(26) { right: 150px; bottom: 0px;   opacity: 0.85; }
.hero-grid span:nth-child(27) { right: 150px; bottom: 30px;  opacity: 0.55; }

/* 7-я колонка — 1 квадрат */
.hero-grid span:nth-child(28) { right: 180px; bottom: 0px;   opacity: 0.45; }

/* ===== HERO BLOCK ===== */



/* ===== MOTTO BLOCK ===== */
.motto-block {
    width: 100%;
    background: #e0e0e0; /* светло-серая заливка */
    padding: 80px 24px;
    box-sizing: border-box;
	margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.motto-text {
    max-width: 1100px;
    width: 100%;
    padding: 32px 40px;

    border: 1px solid #000; /* узкая чёрная рамка */

    font-size: 22px;
    font-style: italic;
    font-weight: 300;
    color: #777;
    text-align: center;
    line-height: 1.6;

    background: transparent;

    /* Анимация появления */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Активное состояние */
.motto-text.motto-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .motto-block {
        padding: 60px 16px;
    }

    .motto-text {
        padding: 24px 20px;
        font-size: 18px;
    }
}
/* ===== /MOTTO BLOCK ===== */



/* ===== ABOUT US BLOCK ===== */
/* ===== ABOUT US: scroll reveal (text only) ===== */
.about-block h2,
.about-block p,
.about-contact-btn {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-block.about-visible h2,
.about-block.about-visible p,
.about-block.about-visible .about-contact-btn {
    opacity: 1;
    transform: translateY(0);
}

.about-block {
    width: 100%;
    background: #e0e0e0; /* светло-серая заливка */
    padding: 60px 20px; /* вертикальные и горизонтальные отступы */
    box-sizing: border-box;
    text-align: center; /* выравнивание всего текста по центру */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px; /* расстояние между заголовком и текстом */
	margin-top: 20px;
}

/* Заголовок */
.about-block h2 {
    color: #000;
    font-size: 36px; /* крупный заголовок */
    font-weight: 700; /* жирный */
    margin: 0;
}

/* Текст под заголовком */
.about-block p {
    color: #000;
    font-size: 16px; /* меньше заголовка */
    font-weight: 400;
    line-height: 1.6; /* читаемость */
    max-width: 900px; /* ограничение ширины текста */
    margin: 0 auto; /* по центру */
    white-space: pre-line; /* чтобы переносы в тексте сохранялись */
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .about-block {
        padding: 40px 16px; /* меньше вертикальных отступов на мобильных */
    }

    .about-block h2 {
        font-size: 28px; /* адаптивный размер заголовка */
    }

    .about-block p {
        font-size: 15px;
        max-width: 100%; /* текст по ширине контейнера на мобильных */
    }
}

/* ===== ABOUT button: base ===== */
.about-contact-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 28px;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    outline: none;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.about-contact-btn:visited,
.about-contact-btn:focus {
    color: #000;
    background: transparent;
    outline: none;
}

/* Десктопный hover */
@media (hover: hover) and (pointer: fine) {
    .about-contact-btn:hover {
        background: #000;
        color: #fff;
        transform: translateY(-2px);
    }
}

/* Мобильный "hover" во время тапа */
.about-contact-btn.touch-active,
.about-contact-btn:active {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}
.about-contact-btn {
    transition:
        opacity 0.8s ease 0.15s,
        transform 0.8s ease 0.15s,
        background 0.3s ease,
        color 0.3s ease;
}
/* ===== ABOUT US BLOCK ===== */

/* ===== SERVICES BLOCK ===== */
.services-block {
    width: 100%;
    padding: 60px 0;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Градиентные линии во всю ширину экрана */
.services-divider {
    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(0, 40, 90, 0) 0%,
        rgba(0, 40, 90, 0.2) 10%,
        rgba(0, 40, 90, 0.8) 50%,
        rgba(0, 40, 90, 0.2) 90%,
        rgba(0, 40, 90, 0) 100%
    );
}

/* Заголовок */
.services-block h2 {
    margin: 20px 0;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .services-block {
        padding: 40px 0;
        gap: 12px;
    }

    .services-divider {
        height: 1.5px;
    }

    .services-block h2 {
        font-size: 28px;
    }
}
/* ===== /SERVICES BLOCK ===== */


/* ===== Service Description ===== */
.services-desc {
    width: 100%;
    padding: 0px 0px;
    box-sizing: border-box;
}

.services-desc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.service-card {
    position: relative;
    flex: 1 1 calc(50% - 10px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 3 / 4;
    display: flex;
    padding: 10px;
    align-items: flex-end;
    overflow: hidden;
    background-color: #ffffff;
    box-sizing: border-box;
    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
}

.service-card-content {
    display: block; /* важно для маркерного фона */
    text-align: left;
    padding: 6px 2px; /* сверху/снизу 6px, слева/справа 8px */
    width: 100%;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

/* ===== Маркерный фон для заголовка и текста ===== */
.service-card-content h3,
.service-card-content p {
    padding: 0 2px;
    line-height: 1.4;
    margin: 0;
    white-space: normal; /* перенос строк */
	text-align: left;
}

/* Скрываем текст p по умолчанию */
.service-card-content p {
    opacity: 0;
    max-height: 0;
    display: block; /* чтобы перенос строки работал корректно */
	margin-top: 10px; /* Небольшой отступ между заголовком и текстом */
}

/* ===== ACTIVE STATE (hover / click / tap) ===== */
.service-card.active .service-card-content {
    justify-content: flex-start;
}

.service-card.active .service-card-content h3 {
    transform: translateY(0);
}

.service-card.active .service-card-content p {
    opacity: 1;
    max-height: 500px;
    margin-top: 12px;
}

/* ===== HOVER для десктопа ===== */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover .service-card-content {
        justify-content: flex-start;
    }

    .service-card:hover .service-card-content h3 {
        transform: translateY(0);
    }

    .service-card:hover .service-card-content p {
        opacity: 1;
        max-height: 500px;
        margin-top: 12px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .service-card {
        flex: 1 1 100%;
    }

    .service-card-content {
        padding: 2px;
        width: 100%;
    }

    .service-card h3 {
        font-size: 35px;
    }

    .service-card p {
        font-size: 19px;
    }
}

/* ===== Увеличение текста только в карточках Services ===== */
.services-desc .service-card h3 {
    font-size: 40px;
}

.services-desc .service-card p {
    font-size: 22px;
    line-height: 1.4;
}

/* ===== Responsive: мобильные экраны ===== */
@media (max-width: 800px) {
    .services-desc .service-card h3 {
        font-size: 35px;
    }

    .services-desc .service-card p {
        font-size: 19px;
    }
}
/* ===== Десктоп (>800px): уменьшаем высоту карточек ===== */
@media (min-width: 801px) {
    .service-card {
        aspect-ratio: 5 / 4; /* горизонтальный прямоугольник */
    }
}

/* ===== Service Description: цветные маски под текст ===== */

/* Общая маска */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0; /* под текстом */
    pointer-events: none;
}

/* Текст всегда выше маски */
.service-card-content {
    position: relative;
    z-index: 1;
}

/* ===== Серые маски: 1, 4, 5 ===== */
.services-desc-grid .service-card:nth-child(1)::before,
.services-desc-grid .service-card:nth-child(4)::before,
.services-desc-grid .service-card:nth-child(5)::before {
    background: rgba(120, 120, 120, 0.45);
}

/* ===== Белые маски: 2, 3, 6 ===== */
.services-desc-grid .service-card:nth-child(2)::before,
.services-desc-grid .service-card:nth-child(3)::before,
.services-desc-grid .service-card:nth-child(6)::before {
    background: rgba(255, 255, 255, 0.55);
}

/* ===== Service Description: цвет текста по карточкам ===== */

/* Белый цвет контента: 1, 4, 5 */
.services-desc-grid .service-card:nth-child(1) .service-card-content,
.services-desc-grid .service-card:nth-child(4) .service-card-content,
.services-desc-grid .service-card:nth-child(5) .service-card-content {
    color: #ffffff;
}

/* Чёрный цвет контента: 2, 3, 6 */
.services-desc-grid .service-card:nth-child(2) .service-card-content,
.services-desc-grid .service-card:nth-child(3) .service-card-content,
.services-desc-grid .service-card:nth-child(6) .service-card-content {
    color: #000000;
}

/* ===== SERVICE DESCRIPTION: scroll reveal for h3 only ===== */
.service-card h3 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.h3-visible h3 {
    opacity: 1;
    transform: translateY(0);
}

.service-learn-btn {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 16px;
    border: 1px solid currentColor;
    text-decoration: none;
    color: inherit;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.4s ease, opacity 0.3s ease, background 0.3s ease;
}

.service-learn-btn:visited,
.service-learn-btn:focus {
    color: inherit;
    outline: none;
}

.service-learn-btn:hover,
.service-learn-btn:active {
    opacity: 0.85;
}
.service-learn-btn,
.service-card-content h3 {
    transition: transform 0.4s ease, opacity 0.4s ease, max-height 0.4s ease, margin-top 0.4s ease;
}
.service-card.active .service-learn-btn {
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover .service-learn-btn {
        transform: translateY(0);
    }
}
.service-learn-btn:hover {
    opacity: 0.85;
}
.service-learn-btn,
.service-card h3 {
    transform: translateY(30px);
    opacity: 0;
}

.service-card.h3-visible .service-learn-btn,
.service-card.h3-visible h3,
.service-card.active .service-learn-btn,
.service-card.active h3 {
    transform: translateY(0);
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover .service-learn-btn,
    .service-card:hover h3 {
        transform: translateY(0);
        opacity: 1;
    }
}
.service-learn-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
.service-learn-btn,
.service-learn-btn:visited,
.service-learn-btn:focus {
    color: inherit;
    outline: none;
    background: transparent;
}
.service-card-content,
.service-card-content * {
    -webkit-tap-highlight-color: transparent;
}

/* ===== /SERVICE DESCRIPTION BLOCK ===== */


/* ===== CONTACTS BLOCK ===== */
.contacts-block {
    width: 100%;
    background: #ffffff; /* белый фон */
    padding: 40px 24px;
    box-sizing: border-box;
    text-align: center;
}

.contacts-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 10%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0.2) 90%,
        rgba(0, 0, 0, 0) 100%
    );
    margin: 10px 0;
}

.contacts-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.contact-item button img {
    width: 60px;         /* уменьшаем размер */
    height: auto;        /* сохраняем пропорции */
    display: block;
    pointer-events: none;
}


.contact-item a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}


/* ===== CONTACTS BLOCK ===== */


/* ===== FOOTER BLOCK ===== */
.footer-block {
    width: 100%;
    background: #333333; /* тёмно-серая заливка */
    color: #ffffff;
    padding: 40px 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* на мобильных строки идут под друг другом */
    gap: 20px;
    font-family: "Arial", sans-serif;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400; /* нежирный */
    font-size: 14px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social span {
    font-size: 14px;
    font-weight: 400;
}

/* Кнопка с картинкой */
.footer-social button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.footer-social button img {
    width: 32px;
    height: 32px;
    display: block; /* убираем подсветку и выделение */
    pointer-events: none; /* картинка сама не кликабельна, кликаем по кнопке */
}
.footer-social-btn img {
    width: 60px;   /* размер картинки */
    height: auto;
    display: block;
    pointer-events: none;
}











/* ===== SEO / accessibility / semantics additions ===== */
body {
    color: #000;
    background: #fff;
}

main {
    display: block;
}

.hero-text-bottom h1,
.hero-text-bottom h2,
.hero-text-bottom p {
    margin-left: 0;
}

.hero-text-bottom h1,
.hero-text-bottom h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.hero-text-bottom p {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .hero-text-bottom h1,
    .hero-text-bottom h2 {
        font-size: 24px;
        margin: 0 0 8px 0;
        line-height: 1.5;
    }

    .hero-text-bottom p {
        font-size: 16px;
        margin: 0;
        line-height: 1.5;
    }
}

.hdr-logo {
    display: inline-flex;
    align-items: center;
}

.hdr-nav a:focus-visible,
.footer-links a:focus-visible,
.footer-social-btn:focus-visible,
.contact-item a:focus-visible,
.contact-item button:focus-visible,
.about-contact-btn:focus-visible,
.service-learn-btn:focus-visible,
.hdr-lang-current:focus-visible,
.hdr-lang-list button:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.65);
    outline-offset: 3px;
}

.service-card-alt-helper {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-block-subpage {
    min-height: 62vh;
}

.legal-hero-text {
    max-width: 720px;
}

.legal-page {
    width: 100%;
    background: #e0e0e0;
    padding: 60px 24px 80px;
    box-sizing: border-box;
    margin-top: 20px;
}

.legal-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 40px;
    border: 1px solid #000;
    background: transparent;
    box-sizing: border-box;
}

.legal-section + .legal-section {
    margin-top: 28px;
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.legal-section p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
}

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

.footer-links a:hover,
.hdr-nav a:hover,
.hdr-mobile-menu a:hover {
    opacity: 0.85;
}

@media (max-width: 800px) {
    .legal-page {
        padding: 40px 16px 60px;
    }

    .legal-content {
        padding: 24px 20px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-section p {
        font-size: 15px;
    }

    .hero-block-subpage {
        min-height: 52vh;
    }
}
