@font-face {
    font-family: 'Montserrat';
    font-display: swap;
    src: url('../noMad-fonts/noMad-montserrat.woff2') format("woff2");
}

/* --- БАЗОВЫЕ СТИЛИ --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #F2ECEC;
    color: #0A0A0A;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    overflow-x: hidden;
}

h1,
h2,
p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.bold-text {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 15px;
    font-family: Montserrat;
    font-weight: 700;
    font-style: Bold;
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.8;
}

.btn-white {
    background-color: #FFFFFF;
    color: #303641;
}

.btn-dark {
    background-color: #303641;
    color: #FFFFFF;
}

.site-header {
    background-color: #FFE0C5;
    padding: 20px 16px 20px 16px;
    position: relative;
    z-index: 100;
}

.site-header-2 {
    padding: 40px 16px 50px 16px;
    position: relative;
    z-index: 100;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    color: #303641;
}

.nav-wrapper {
    width: 100%;
    max-width: 740px;
    background-color: #FAFAFC;
    box-shadow: 0px 7px 12.2px 0px #00000026;
    border-radius: 15px;
    padding: 22px 20px;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-family: Montserrat;
    font-weight: 700;
    font-style: Bold;
    font-size: 14px;
    color: #303641;
}

.nav-list a:hover {
    font-weight: 900;
}

.nav-list a:active {
    font-weight: 900;
}

/* Burger */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.burger-btn span {
    width: 30px;
    height: 3px;
    background-color: #303641;
    border-radius: 2px;
    transition: 0.3s;
}

.burger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- СЕКЦИЯ HERO --- */
.hero-section {
    background-color: #FFE0C5;
    padding-top: 40px;
    /* ВАЖНО: Убираем padding-bottom. Секция заканчивается там, где кончается контент. */
    padding-bottom: 0;
    padding-right: 16px;
    padding-left: 16px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    display: flex;
    min-height: 500px;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 58px;
    color: #303641;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #303641;
    line-height: 1.2;
}

/* Кнопка с мягкой тенью */
.hero-content .btn-white {
    background-color: #FFFFFF;
    color: #303641;
    padding: 16px 40px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.hero-content .btn-white:hover {
    opacity: 0.8;
}

.hero-image {
    position: absolute;
    bottom: 0;
    /* Жестко прижимаем к нижнему краю секции */
    right: -120px;
    /* Слегка выводим за правый край контейнера, как на макете */
    width: 650px;
    /* Точный размер из макета */
    height: 500px;
    z-index: 1;
    /* Картинка под текстом, если они пересекутся */
    pointer-events: none;
    /* Чтобы картинка не мешала выделять текст */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Сохраняет пропорции */
    object-position: bottom right;
    /* Прижимает содержимое картинки в правый нижний угол */
    display: block;
}

@media (max-width: 768px) {

    .hero-container {
        flex-direction: column;
        min-height: auto;
    }

    .hero-content {
        text-align: left;
        padding-bottom: 0;
        max-width: 100%;
    }

}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* Stats */
.stats-section {
    background-color: #303641;
    padding: 80px 10px;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.stat-card {
    width: 100%;
    max-width: 282px;
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 16px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: -7px -7px 10px 0px #00000026 inset;
}

.stat-card h2 {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 44px;
    text-align: center;
    text-transform: uppercase;
    color: #303641;
    line-height: 1;
}

.stat-card p {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: #303641;
}

/* About */
/* --- СЕКЦИЯ ABOUT --- */
.about-section {
    background-color: #F2ECEC;
    padding-bottom: 0;
    /* Убираем нижний отступ, чтобы картинка встала ровно на нижнюю границу */
    position: relative;
    overflow: hidden;
    padding: 0px 10px;
    /* Обрезаем всё, что слишком сильно вылезет за пределы экрана */
}

.about-container {
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
    min-height: 684px;
    /* Задаем высоту для контейнера, так как картинка абсолютная */
}

.about-text {
    max-width: 650px;
    /* Ограничиваем текст, чтобы он не залезал на деда */
    position: relative;
    z-index: 2;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 58px;
    color: #303641;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #303641;
    line-height: 1;
    padding-bottom: 10px;
}

.about-text .bold-text {
    padding: 0;
    font-family: Montserrat;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    /* Уменьшенный отступ перед списком */
}

.about-text strong {
    font-weight: 700;
}

/* Кастомные списки с точкой как на макете */
.about-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.about-text ul li {
    position: relative;
    padding-left: 15px;
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
}


.descr-ab-d {
    font-family: Montserrat;
    font-weight: 400 !important;
    font-style: Regular;
    font-size: 16px !important;
}

.about-text ul li::before {
    content: '·';
    /* Та самая точка из макета */
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #303641;
}

.about-image {
    position: absolute;
    bottom: 0;
    /* Жестко прижимаем к нижнему краю секции */
    right: -120px;
    /* Слегка выводим за правый край контейнера, как на макете */
    width: 409px;
    /* Точный размер из макета */
    height: 684px;
    z-index: 1;
    /* Картинка под текстом, если они пересекутся */
    pointer-events: none;
    /* Чтобы картинка не мешала выделять текст */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Сохраняет пропорции */
    object-position: bottom right;
    /* Прижимает содержимое картинки в правый нижний угол */
    display: block;
}

/* --- АДАПТИВ ABOUT --- */
@media (max-width: 1100px) {
    .about-image {
        right: -50px;
        width: 500px;
    }

    .about-text {
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding-top: 60px;
    }

    .about-container {
        flex-direction: column;
        min-height: auto;
    }

    .about-text {
        max-width: 100%;
        padding-bottom: 0;
        /* Отступ убираем, так как снизу будет картинка */
        margin-bottom: 40px;
    }

    .about-text h2 {
        font-size: 42px;
    }

}

@media (max-width: 480px) {
    .about-text h2 {
        font-size: 36px;
    }
}

/* Services */
.services-section {
    padding: 80px 10px;
    background-color: #F2ECEC;
}

.services-title {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 58px;
    text-transform: uppercase;
    color: #303641;
    margin-bottom: 100px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.right-align {
    flex-direction: row;
}

.left-align {
    flex-direction: row;
}

.service-text h2 {
    font-weight: 900;
    font-size: 28px;
    color: #303641;
    margin-bottom: 10px;
}

.service-images {
    flex: 2;
    display: grid;
    gap: 15px;
}

/* --- FLEX ЛЕЙАУТ ДЛЯ СЕКЦИИ CHARACTER --- */
.character-flex-row {
    display: flex;
    align-items: stretch;
    /* Растягиваем все 3 колонки до одинаковой высоты */
    gap: 23px;
    width: 100%;
}

.service-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Три колонки делят ширину ровно по 33.3% */
}

.service-col img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    /* Скругление углов как на макете */
    object-fit: cover;
    display: block;
}

/* Растягиваем центрального рыцаря на всю высоту колонки */
.service-col:nth-child(2) img {
    height: 100%;
}

/* Настройки для 3-й колонки (текст + король) */
.text-col {
    justify-content: space-between;
    /* Текст прижимается к верху, картинка к низу */
}

.text-col img {

    min-height: 200px;
}

/* Выравнивание текста ровно по макету */
.text-col .service-text {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.text-col h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 40px;
    color: #303641;
    line-height: 1;
    margin-bottom: 23px;
    text-transform: uppercase;
}

.text-col p {
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    text-align: right;
}

/* --- FLEX ЛЕЙАУТ ДЛЯ СЕКЦИИ ILLUSTRATIONS --- */
.ill-flex-row {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
}

/* Специфичная левая колонка с текстом */
.text-col-left {
    justify-content: space-between;
}

.text-col-left .service-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-col-left h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 40px;
    color: #303641;
    margin-bottom: 23px;
    text-transform: uppercase;
}

.text-col-left p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #303641;
    line-height: 1.2;
}

.text-col-left img {
    flex: 1;
    min-height: 250px;
    object-fit: cover;
}

/* Чтобы правая картинка (Deep) вытянулась на всю высоту ровно с левыми */
.deep-img {
    height: 100%;
    flex: 1;
}

/* Cases */
.cases-section {
    padding: 0px 10px;
    background-color: #F2ECEC;
}

.cases-main-title {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 58px;
    text-transform: uppercase;
}

.cases-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: space-between;
}

.tab-btn {
    background-color: #929497;
    color: #FFFFFF;
    width: 220px;
    padding: 10px 10px;
    border-radius: 40px;
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 14px;
    text-transform: uppercase;
}

.tab-btn.active {
    background-color: #303641;
}

.case-content {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
    align-items: center;
}

.case-content img {
    flex: 1;
    border-radius: 15px;
    max-width: 400px;
}

.case-text {
    flex: 2;
    color: #303641;
}

.case-text h2 {
    font-weight: 900;
    font-size: 24px;
    margin-bottom: 20px;
}

.desc-down {
    padding-bottom: 20px;
}

.case-list-ul {
    list-style: disc;
    padding-left: 20px;
}

.case-action {
    display: flex;
    justify-content: center;
}

/* Chaolympe */
.chaolympe-section {
    padding: 40px 10px;
    background-color: #F2ECEC;
}

.chaolympe-section h2 {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 58px;
    text-transform: uppercase;
    line-height: 1;
    padding-bottom: 20px;
}

.chao-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Bottom wrap (Companies + CTA) */
.bottom-wrap-section {
    display: flex;
    flex-direction: column;
}

.companies-part {
    background-color: #303641;
    padding: 80px 10px;
    text-align: center;
    color: #FFFFFF;
}

.companies-part h2 {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 58px;
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 10px;
    color: #F2ECEC;
}

.comp-sub {
    font-family: Montserrat;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 24px;
    text-align: center;
    padding-bottom: 10px;
    color: #F2ECEC;
}

.comp-desc {
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    text-align: center;
    padding-bottom: 40px;
    color: #F2ECEC;
}

.logos-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-part {
    background-image: url('../noMad-img/noMad-ctapic.webp');
    background-position: center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    align-items: center;
}

.cta-content h2 {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 32px;
    text-align: center;
    text-transform: uppercase;
    color: #FAFAFC;
}

.cta-content p {
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    text-align: center;
    color: #FAFAFC;
}

/* Footer */
.site-footer {
    background-color: #01101F;
    color: #FFFFFF;
    padding: 40px 10px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-col {
    max-width: 280px;
}

.footer-col h2 {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.footer-col p {
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    color: #fff;
    padding-bottom: 10px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    list-style: disc;
}

.footer-col ul a {
    font-size: 14px;
    color: #B0B5C0;
}

.footer-col ul a:hover {
    color: #FFFFFF;
}

.age-limit {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 20px;
    text-transform: uppercase;
}

.behance-link {
    font-size: 16px;
    font-weight: 700;
}

.footer-bottom {
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    text-align: center;
}

/* --- ADAPTIVE (Mobile) --- */
@media (max-width: 1024px) {
    .chao-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-images-char,
    .grid-images-ill,
    .grid-images-con,
    .grid-images-ass,
    .grid-images-graph {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-circle {
        width: 300px;
        height: 300px;
    }

    .stats-grid {
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: 45%;
    }

    .about-container {
        flex-direction: column;
    }

    .about-text {
        order: 2;
    }

    .service-row.right-align,
    .service-row.left-align {
        flex-direction: column;
    }

    .service-text {
        text-align: center;
    }

    .case-content {
        flex-direction: column;
    }

    .case-content img {
        max-width: 100%;
    }

    .chao-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    /* Burger Menu Setup */
    .burger-btn {
        display: flex;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #FFFFFF;
        border-radius: 0;
        padding: 80px 30px;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }
}




/* --- СЕКЦИЯ КОММЕРЧЕСКОГО ПРОЕКТА (Картинка с текстом) --- */
.commercial-project-section {
    padding: 40px 10px;
}

/* Контейнер-обертка */
.project-banner {
    position: relative;
    width: 100%;
    border-radius: 16px;
    /* Скругление углов картинки как на макете */
    overflow: hidden;
    /* Чтобы картинка не вылезала за скругления */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Легкая тень для объема */
}

.shadowpic {
    max-width: 441px;
    max-height: 290px;
}

.project-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Блок с текстом поверх картинки */
.project-banner-content {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 12%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    padding: 0 20px;
    z-index: 2;
    align-items: center;
    gap: 20px;
}

.project-banner-content h2 {
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 40px;
    text-align: center;
    text-transform: uppercase;
    color: #FAFAFC;
    max-width: 700px;
}

.project-banner-content p {
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    color: #FAFAFC;
    max-width: 700px;
}

/* --- АДАПТИВ --- */
@media (max-width: 992px) {
    .project-banner-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .project-banner-content p {
        font-size: 14px;
    }

    .project-banner-content {
        bottom: 6%;
    }
}

@media (max-width: 768px) {
    .commercial-project-section {
        padding: 40px 10px;
    }

    .project-banner-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .project-banner-content p {
        font-size: 12px;
        line-height: 1.3;
    }
}


/* --- СЕКЦИЯ TOOLS & RESULT --- */
.tools-result-section {
    padding: 40px 10px;
    background-color: #F2ECEC;
    /* Цвет фона подстроен под основной фон сайта */
}

.tools-result-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Отступ между рядами */
}

.tr-row {
    display: flex;
    align-items: flex-start;
    /* Центрируем контент по вертикали */
    gap: 20px;
}

.tr-col-left {
    width: 100%;
    max-width: 700px;
}

.tr-col-left h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: Black;
    font-size: 58px;
    color: #303641;
    text-transform: uppercase;
    margin: 0;
}

.tools-icons {
    display: flex;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tools-icons li {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    /* Скругление иконок как на макете */
    overflow: hidden;
}

.tools-icons img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* Расстояние между строками */
}

.result-list li {
    font-family: Montserrat;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    color: #303641;
}

.shadow-section {
    padding: 40px 10px;
    background-color: #F2ECEC;
    /* Цвет фона подстроен под основной фон сайта */
}

/* --- АДАПТИВ TOOLS & RESULT --- */
@media (max-width: 900px) {
    .tr-row {
        grid-template-columns: 1fr;
        /* Переносим колонки друг под друга на планшете */
        gap: 20px;
    }

    .tr-col-left h2 {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .tools-result-container {
        gap: 40px;
    }

    .tools-icons {
        gap: 15px;
    }

    .tools-icons li {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }

    .tr-col-left h2 {
        font-size: 32px;
    }

    .result-list li {
        font-size: 14px;
    }
}


/* Настройки секции с игрой (правая колонка) */
.demo-section {
    flex: 1;
    /* Игра занимает все оставшееся место (55%) */
    display: flex;
    align-items: center;
    /* Центрируем игру по вертикали относительно зеленого блока */
    justify-content: center;
}

/* --- Контейнер самой игры (адаптивный 16:9) --- */
.block-game {
    position: relative;
    width: 100%;
    /* Ограничитель, чтобы игра не становилась гигантской на больших экранах */
    margin: 0 auto;
    padding-bottom: 56.25%;
    /* Пропорция 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    /* Легкая тень, чтобы выделить игру */
}

.block-game iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Убираем стандартную рамку iframe */
}


/* --- СЕКЦИЯ DISCLAIMER --- */
.disclaimer-banner-section {
    background-color: #303641;
    /* Темный фон, совпадающий с другими блоками сайта */
    padding: 55px 10px;
    text-align: center;
}

.disclaimer-banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.disclaimer-banner-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 48px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
}

.disclaimer-texts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    /* Ограничиваем ширину текста, чтобы он не растягивался на всю страницу */
}

.disclaimer-texts p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #FAFAFC;
    /* Слегка приглушенный белый цвет для комфортного чтения */
    line-height: 1.5;
    margin: 0;
}

.disclaimer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    /* Расстояние между логотипами */
    flex-wrap: wrap;
}

/* --- АДАПТИВ DISCLAIMER --- */
@media (max-width: 768px) {
    .disclaimer-banner-section {
        padding: 60px 10px;
    }

    .disclaimer-banner-container h2 {
        font-size: 36px;
    }

    .disclaimer-logos {
        gap: 25px;
    }

}

@media (max-width: 480px) {
    .disclaimer-banner-container {
        gap: 25px;
    }

    .disclaimer-banner-container h2 {
        font-size: 28px;
    }

    .disclaimer-texts p {
        font-size: 14px;
    }

    .disclaimer-logos img {
        height: 22px;
        /* Уменьшаем логотипы на телефонах */
    }
}



/* --- СЕКЦИЯ КОНТАКТНОЙ ФОРМЫ --- */
.contact-form-section {
    padding: 0px 10px 40px 10px;
    background-color: #F2ECEC;
}

.contact-form-container {
    max-width: 1000px;
    /* Ограничиваем ширину формы, чтобы она выглядела аккуратно */
    margin: 0 auto;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: Black;
    font-size: 48px;
    color: #303641;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1;
}

.idea-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Растягивает инпуты поровну */
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #303641;
}

/* Стилизация полей ввода */
.form-group input,
.form-group textarea {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #303641;
    background-color: #FAFAFC;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.05);
    /* Легкая тень как на макете */
    outline: none;
    transition: box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
    /* Усиление тени при фокусе */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

/* Сообщение об успешной отправке */
.form-success-message {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #28a745;
    /* Зеленый цвет успеха */
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Класс для показа сообщения */
.form-success-message.show {
    opacity: 1;
    visibility: visible;
}

/* --- АДАПТИВ ФОРМЫ --- */
@media (max-width: 768px) {
    .contact-title {
        font-size: 32px;
    }

    .form-row {
        flex-direction: column;
        /* На планшетах и телефонах инпуты встают друг под друга */
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 26px;
    }

    .form-group label {
        font-size: 16px;
    }
}



/* --- СЕКЦИЯ COOKIE POLICY --- */
.policy-section {
    padding: 30px 10px 40px 10px;
    background-color: #F2ECEC;
    /* Наследуем базовый фон сайта */
}



.policy-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    /* Делим на две колонки: 300px под заголовок, остальное под текст */
    gap: 100px;
    align-items: start;
}

.policy-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-style: Black;
    font-size: 40px;
    color: #303641;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0;
}

.policy-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Отступы между логическими блоками */
    padding-top: 5px;
    /* Легкая корректировка, чтобы выровнять текст по верху заголовка */
}

.policy-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.policy-block h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #303641;
    margin: 0;
    text-transform: uppercase;
}

/* Исключение для первого блока, чтобы текст не был капсом, как на макете */
.policy-block .capitalize-title {
    text-transform: none;
}

.policy-block p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #4A4F5A;
    /* Цвет текста чуть светлее заголовков для контраста */
    margin: 0;
}

/* --- АДАПТИВ POLICY --- */
@media (max-width: 900px) {
    .policy-grid {
        grid-template-columns: 250px 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .policy-section {
        padding: 40px 10px 40px 10px;
        background-color: #F2ECEC;
        /* Наследуем базовый фон сайта */
    }

    .contact-form-section {
        padding: 40px 10px 40px 10px;
        background-color: #F2ECEC;
    }

    .policy-grid {
        grid-template-columns: 1fr;
        /* Переносим все в одну колонку на мобильных */
        gap: 30px;
    }

    .policy-title {
        font-size: 42px;
    }

    /* Убираем перенос строки в заголовке, чтобы "COOKIE POLICY" на телефоне писалось в одну строку (как на скриншоте) */
    .desktop-break {
        display: none;
    }

    .policy-content {
        padding-top: 0;
    }
}

@media (max-width: 480px) {

    .policy-title {
        font-size: 34px;
        margin-bottom: 10px;
    }

    .policy-block h2 {
        font-size: 15px;
    }

    .policy-block p {
        font-size: 15px;
    }
}


@media (max-width: 964px) {
    .hero-container {
        position: relative;
        display: flex;
        min-height: auto;
        flex-direction: column;
    }

    .hero-image {
        position: relative;
        bottom: 0;
        right: auto;
        width: 100%;
        height: auto;
        z-index: 1;
        pointer-events: none;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: bottom;
        display: block;
    }

    .stats-grid {
        display: flex;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
    }

    .tab-btn {
        width: auto;
    }
}

.services-pagination {
    display: none;
    /* Скрываем на десктопе */
}

@media (max-width: 615px) {
    .site-header {
        background-color: #FAFAFC;
        padding: 12px 16px;
        position: relative;
        z-index: 100;
    }

    .logo {
        font-weight: 900;
        font-size: 20px;
        color: #303641;
    }

    .hero-section {
        padding: 0px;
    }

    .hero-content {
        padding-bottom: 20px;
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
        align-items: center;
    }

    .hero-content p {
        font-size: 16px;
    }

    .stat-card {
        max-width: 100%;
    }

    .stats-section {
        background-color: #303641;
        padding: 40px 10px;
    }

    .about-image {
        display: none;
    }

    .about-section {
        padding-top: 40px 10px;
        background-image: url('../noMad-img/noMad-mobphone.webp');
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .about-text h2 {
        font-size: 36px;
    }

    /* Превращаем список в горизонтальный слайдер */
    .services-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 20px !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        scrollbar-width: none;
        /* Прячем скроллбар в Firefox */
        -ms-overflow-style: none;
        /* Прячем скроллбар в IE/Edge */
    }

    .services-list::-webkit-scrollbar {
        display: none;
        /* Прячем скроллбар в Chrome/Safari/iOS */
    }

    /* Каждый проект становится отдельным полноэкранным слайдом */
    .service-row {
        min-width: 100%;
        scroll-snap-align: center;
        display: flex !important;
        flex-direction: row !important;
        position: relative;
        padding-top: 100px;
        /* Отступ сверху для текста */
        gap: 4px !important;
        align-items: stretch !important;
    }

    /* Возвращаем колонки side-by-side как на вашем скриншоте */
    .service-col {
        flex: 1;
        /* 3 равные колонки */
        display: flex;
        flex-direction: column;
        gap: 4px !important;
    }

    /* Делаем текст абсолютно спозиционированным поверх слайда, чтобы он не ломал сетку картинок */
    .service-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 0 !important;
    }

    .service-text h2 {
        font-size: 32px !important;
        margin-bottom: 10px;
        /* Уменьшаем заголовки для мобильных */
    }

    .service-text p {
        font-size: 20px !important;
    }

    /* Показываем пагинацию слайдера */
    .services-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 25px;
    }

    /* Настраиваем квадратные точки-индикаторы */
    .services-pagination .dot {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        /* Скругленные квадраты */
        border: 2px solid #303641;
        background-color: transparent;
        padding: 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .services-pagination .dot.active {
        background-color: #303641;
    }

    .services-section {
        padding: 40px 10px;
        background-color: #F2ECEC;
    }

    .services-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .cases-section {
        padding: 40px 10px;
        background-color: #F2ECEC;
    }

    .cases-main-title {
        font-size: 36px;
        line-height: 1;
        padding-bottom: 10px;
    }

    .cases-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 30px;
        justify-content: center;
        align-items: center;
    }

    .chaolympe-section h2 {
        font-size: 36px;
    }

    .companies-part h2 {
        font-size: 36px;
    }

    .cta-part {
        padding: 80px 10px;
    }

    .footer-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 30px;
        flex-direction: column;
    }

    .footer-col h2 {
        font-size: 16px;
    }

    .chao-grid {
        gap: 4px;
    }

    .tab-btn {
        padding: 8px 20px;
    }

    .tr-col-left {
        width: auto;
        max-width: auto;
    }

    .tr-row {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        flex-direction: column;
    }

    .project-banner img {
        width: 100%;
        height: 528px;
        display: block;
    }

    .shadowpic {
        max-width: 320px !important;
        height: 210px !important;
    }

    .project-banner-content {
        bottom: 10%;
        padding: 0 10px;
    }

    .project-banner-content h2 {
        font-size: 24px;
        line-height: 1;
        margin-bottom: 0;
    }

    .project-banner-content p {
        font-size: 16px;
        line-height: 1;
    }

    .tr-col-left h2 {
        font-size: 32px;
        text-align: center;
    }

    .disclaimer-banner-container h2 {
        font-size: 16px;
    }

    .disclaimer-texts p {
        font-size: 16px;
    }

    .site-header-2 {
        padding: 12px 16px 12px 16px;
        position: relative;
        z-index: 100;
        background: #FFFFFF;
    }
}