/* =========================================================
   RASUL MASTER — общие стили всех страниц
   (шапка, кнопки, хлебные крошки, подвал)
========================================================= */

:root {
    --bg: #050b0f;
    --bg-2: #071016;
    --card: #0a141a;
    --card-2: #0d1a21;
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.62);
    --dim: #8e9699;
    --gold: #eab84f;
    --gold-soft: rgba(234, 184, 79, 0.55);
    --gold-grad: linear-gradient(135deg, #f5c968, #d9a53e);
    --ok: #3fbf7f;
    --error: #ff6b5e;
    --radius: 14px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

.container {
    width: calc(100% - 100px);
    max-width: 1600px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    z-index: 30;
    background: transparent;
}

.header.header-solid {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    height: 96px;
}

.header-inner {
    width: calc(100% - 100px);
    max-width: 1700px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-name {
    font-size: 24px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-subtitle {
    margin-top: 6px;
    font-size: 9px;
    letter-spacing: 1.3px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 38px;
    height: 100%;
}

.navigation a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.navigation a:hover,
.navigation a.active {
    color: var(--gold);
}

.navigation a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    height: 2px;
    background: var(--gold);
}

.header-solid .navigation a.active::after {
    bottom: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.phone {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    white-space: nowrap;
}

.phone-icon {
    color: var(--gold);
    margin-right: 7px;
}

/* Переключатель языка RU / KZ */
.lang-switch {
    display: flex;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 3px;
}

.lang-switch a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 9px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.lang-switch a:hover {
    color: #fff;
}

.lang-switch a.active {
    color: #111;
    background: var(--gold);
}

.header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 205px;
    height: 58px;
    padding: 0 28px;
    border-radius: 10px;
    background: var(--gold-grad);
    color: #111;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(224, 171, 65, 0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(224, 171, 65, 0.32);
}

.header-solid .header-button {
    height: 50px;
    min-width: 180px;
}


/* Бургер — появляется на планшете/телефоне */

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--gold-soft);
    background: rgba(5, 11, 15, 0.6);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.burger span {
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =========================================================
   КНОПКИ
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s, border-color 0.25s;
}

.btn-gold {
    background: var(--gold-grad);
    color: #15110a;
    box-shadow: 0 12px 35px rgba(212, 158, 60, 0.22);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(212, 158, 60, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: var(--gold-soft);
}

.btn-outline:hover {
    background: rgba(234, 184, 79, 0.08);
}

.btn-wide {
    width: 100%;
}

.btn .arrow {
    font-size: 22px;
    line-height: 1;
}


/* =========================================================
   HERO ВНУТРЕННИХ СТРАНИЦ
========================================================= */

.page-hero {
    position: relative;
    width: 100%;
    min-height: 430px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: url("../images/homepage-bg.webp") center / cover no-repeat;
}

.page-hero.small {
    min-height: 360px;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(3, 8, 12, 0.35) 0%,
            rgba(3, 8, 12, 0.45) 35%,
            rgba(3, 8, 12, 0.82) 78%,
            var(--bg) 100%),
        linear-gradient(to right,
            rgba(3, 8, 12, 0.88) 0%,
            rgba(3, 8, 12, 0.35) 60%,
            rgba(3, 8, 12, 0.2) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: calc(100% - 140px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 140px 0 44px;
}

.page-hero h1 {
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 800;
}

.page-hero h1 span {
    color: var(--gold);
}

.page-hero p {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
}


/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
========================================================= */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1;
}

.breadcrumbs a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: color 0.25s;
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs .sep {
    color: var(--gold);
    font-size: 20px;
}

.breadcrumbs .current {
    color: rgba(255, 255, 255, 0.7);
}


/* =========================================================
   СЕКЦИИ И ОБЩИЕ БЛОКИ
========================================================= */

.page-section {
    padding: 34px 0 90px;
}

.panel {
    background: linear-gradient(180deg, var(--card), #070f14);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.muted {
    color: var(--muted);
}

.gold {
    color: var(--gold);
}

.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.icon-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8f6b31;
    border-radius: 10px;
    color: var(--gold);
    font-size: 19px;
    background: rgba(10, 14, 16, 0.55);
}

.round-arrow {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    text-decoration: none;
    font-size: 22px;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}


/* Плашка с призывом и кнопкой внизу страниц */

.cta-strip {
    margin-top: 50px;
    padding: 34px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-strip h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .cta-strip {
        padding: 24px 20px;
    }
}

/* Просмотр фото на весь экран (работы, отзывы) */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    cursor: zoom-out;
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.lightbox:has(.lightbox-cta:not([hidden])) {
    flex-direction: column;
    gap: 20px;
}

.lightbox:has(.lightbox-cta:not([hidden])) img {
    max-height: calc(100% - 80px);
}

.lightbox-cta[hidden] {
    display: none;
}

.lightbox img[hidden],
.lightbox-video[hidden] {
    display: none;
}

/* Видео работы: 16:9 по ширине экрана, но не выше окна */
.lightbox-video {
    cursor: auto;
    position: relative;
    width: min(100%, (100vh - 160px) * 16 / 9);
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.lightbox-video iframe,
.lightbox-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* =========================================================
   ПОДВАЛ
========================================================= */

.footer {
    border-top: 1px solid var(--line);
    background: #04090c;
    padding: 46px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer h4 {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer p,
.footer a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.9;
}

.footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 34px;
    padding-top: 20px;
    padding-right: 80px; /* не залезать под кнопку WhatsApp */
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--dim);
    font-size: 13px;
}


/* Плавающая кнопка WhatsApp */

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s;
}

.wa-float:hover {
    transform: scale(1.07);
}

.wa-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}


/* =========================================================
   АДАПТИВ
========================================================= */

/* Переключатель языка: на компьютере — в шапке, в мобильном меню — внизу списка */
.navigation .lang-switch {
    display: none;
}

/* Телефон в шапке прячем раньше: он есть в «Контактах», подвале и кнопке WhatsApp */
@media (max-width: 1520px) {
    .phone { display: none; }
    .navigation { gap: 28px; }
}

@media (max-width: 1380px) {
    .navigation { gap: 22px; }
    .navigation a { font-size: 15px; }
    .header-right { gap: 16px; }
    .header-button { min-width: 0; padding: 0 22px; font-size: 15px; }
    html[lang="kk"] .navigation { gap: 16px; }
}

/* Казахские пункты меню и «Өтінім қалдырыңыз» длиннее русских — сжимаем шапку раньше */
@media (max-width: 1700px) {
    html[lang="kk"] .phone { display: none; }
}

@media (max-width: 1520px) {
    html[lang="kk"] .header-inner { gap: 24px; }
    html[lang="kk"] .navigation { gap: 22px; }
    html[lang="kk"] .header-right { gap: 16px; }
}

@media (max-width: 1380px) {
    html[lang="kk"] .navigation { gap: 16px; }
}

@media (max-width: 1280px) {
    .navigation { gap: 24px; }
    .navigation a { font-size: 15px; }
    .phone { display: none; }
}

/* Мобильное меню (бургер): казахские пункты длиннее, поэтому включается уже с 1280px */
@media (max-width: 1280px) {

    .burger {
        display: flex;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 86vw);
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 100px 28px 30px;
        background: #060d12;
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 40;
    }

    .navigation a {
        height: auto;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--line);
    }

    .navigation a.active::after {
        display: none;
    }

    .menu-open .navigation {
        transform: translateX(0);
    }

    .header-right .lang-switch {
        display: none;
    }

    .navigation .lang-switch {
        display: flex;
        align-self: flex-start;
        margin-top: 24px;
    }

    .navigation .lang-switch a {
        padding: 8px 16px;
        font-size: 14px;
        border-bottom: 0;
    }

    .header-right {
        gap: 12px;
        z-index: 45;
    }
}

@media (max-width: 1100px) {

    .header-inner,
    .container {
        width: calc(100% - 40px);
    }

    .page-hero-content {
        width: calc(100% - 40px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {

    .header {
        height: 80px;
    }

    .header.header-solid {
        height: 76px;
    }

    .header-inner {
        gap: 12px;
    }

    .logo-image {
        width: 44px;
        height: 44px;
    }

    .logo {
        gap: 10px;
    }

    .logo-name {
        font-size: 17px;
    }

    .logo-subtitle {
        font-size: 7px;
    }

    .header-button,
    .header-solid .header-button {
        min-width: 0;
        height: 44px;
        padding: 0 14px;
        font-size: 13px;
    }

    .page-hero {
        min-height: 340px;
    }

    .page-hero-content {
        padding: 110px 0 30px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .breadcrumbs {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    .logo-text {
        display: none;
    }
}

@media (max-width: 480px) {
    html[lang="kk"] .logo-text {
        display: none;
    }
}

@media (max-width: 360px) {
    .header-button,
    .header-solid .header-button {
        padding: 0 10px;
        font-size: 12px;
    }
}

.footer a.logo {
    display: flex;
    line-height: 1;
}

[hidden] {
    display: none !important;
}
