/* ==================================================
   SADOSH AFRO HAIR
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: #f8f6f2;
    color: #27231f;

    line-height: 1.5;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font-family: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* ==================================================
   HEADER
================================================== */

.header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    padding: 24px 0;

    z-index: 100;
}
.header-inner {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


/* ==================================================
   TEXT LOGO
================================================== */

.brand-text-logo {
    width: 112px;

    display: flex;
    flex-direction: column;

    color: #27231f;
}

.brand-name {
    display: block;

    width: 100%;

    font-size: 20px;
    font-weight: 600;

    line-height: 1;

    letter-spacing: 4.6px;

    white-space: nowrap;
}

.brand-subtitle {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 8px;

    padding-left: 1px;

    font-size: 7px;

    line-height: 1;

    white-space: nowrap;
}

.brand-subtitle span {
    display: block;
}

.brand-subtitle .hair-start {
    margin-left: 7px;
}


/* ==================================================
   NAVIGATION
================================================== */

.nav {
    display: flex;

    align-items: center;

    gap: 34px;

    font-size: 13px;
}

.nav a {
    position: relative;

    transition: opacity .3s ease;
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 0;
    height: 1px;

    background: #27231f;

    transition: width .3s ease;
}

.nav a:hover {
    opacity: .6;
}

.nav a:hover::after {
    width: 100%;
}


/* ==================================================
   HEADER BUTTON
================================================== */

.header-button {
    position: relative;
    z-index: 101;

    padding: 13px 23px;

    border: 1px solid #27231f;

    background: #f8f6f2;

    font-size: 12px;

    transition: all .3s ease;
}

.header-button:hover {
    background: #27231f;
    color: #fff;
}



/* Desktop: кнопка «Записаться» ближе к навигации */
@media (min-width: 901px) {
    .header-button {
        transform: translateX(-175px);
    }
}

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

.hero {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background: #f8f6f2;
}


/*
   САМОЕ ВАЖНОЕ ИЗМЕНЕНИЕ

   Иллюстрация теперь является частью
   всего первого экрана, а не отдельным блоком.

   Она занимает правую часть экрана,
   поэтому внешнего прямоугольника больше нет.
*/

.hero::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: 63%;

    background-image:
        url("images/hero-illustration.webp");

    background-repeat: no-repeat;

    background-position:
        65% center;

    background-size:
        cover;

    z-index: 0;


    /*
       Растворяем только левую часть изображения
       в основном фоне сайта.
    */

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, .20) 10%,
            rgba(0, 0, 0, .65) 22%,
            #000 37%,
            #000 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, .20) 10%,
            rgba(0, 0, 0, .65) 22%,
            #000 37%,
            #000 100%
        );
}


/*
   Дополнительный очень мягкий переход.
*/

.hero::after {
    content: "";

    position: absolute;

    z-index: 2;

    top: 0;
    bottom: 0;

    left: 42%;

    width: 27%;

    pointer-events: none;

    background:
        linear-gradient(
            to right,
            #f8f6f2 0%,
            rgba(248, 246, 242, .82) 25%,
            rgba(248, 246, 242, .35) 60%,
            transparent 100%
        );
}


.hero-inner {
    position: relative;

    z-index: 5;

    min-height: 100vh;

    display: flex;

    align-items: center;
}


/* ==================================================
   HERO CONTENT
================================================== */

.hero-content {
    position: relative;

    z-index: 8;

    width: 51%;

    padding-top: 60px;
}

.eyebrow {
    margin-bottom: 24px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 4px;
}

h1 {
    font-size: clamp(60px, 8vw, 108px);

    font-weight: 400;

    line-height: .92;

    letter-spacing: -5px;
}

h1 em,
h2 em {
    font-family: Georgia, "Times New Roman", serif;

    font-style: italic;
    font-weight: 400;
}

.hero-description {
    max-width: 500px;

    margin-top: 38px;

    color: #746d66;

    font-size: 16px;

    line-height: 1.8;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 40px;
}


/* ==================================================
   BUTTONS
================================================== */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 28px;

    border: 1px solid transparent;

    cursor: pointer;

    font-size: 12px;

    transition: all .3s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #27231f;
    color: #fff;
}

.button-primary:hover {
    background: #4a433d;
}

.button-secondary {
    border-color: #27231f;

    background: transparent;
}

.button-secondary:hover {
    background: #27231f;
    color: #fff;
}


/* ==================================================
   HERO BOTTOM
================================================== */

.hero-bottom {
    position: absolute;

    z-index: 10;

    left: 0;
    right: 0;
    bottom: 35px;

    display: flex;
    justify-content: space-between;

    padding-top: 14px;

    border-top:
        1px solid
        rgba(100, 88, 78, .18);

    color: #938980;

    font-size: 9px;

    letter-spacing: 3px;
}


/* ==================================================
   GENERAL
================================================== */

.section {
    padding: 125px 0;
}

.section-small {
    padding: 90px 0;
}

.section-top {
    display: grid;

    grid-template-columns:
        1.2fr .8fr;

    gap: 60px;

    align-items: end;

    margin-bottom: 65px;
}

h2 {
    font-size: clamp(48px, 6vw, 75px);

    font-weight: 400;

    line-height: .98;

    letter-spacing: -3px;
}

.section-intro {
    max-width: 360px;

    color: #756e67;

    font-size: 14px;

    line-height: 1.8;
}


/* ==================================================
   TRAINING
================================================== */

.training {
    background: #ded1c3;
}

.training-grid {
    display: grid;

    grid-template-columns:
        70px 1fr auto;

    gap: 50px;

    align-items: center;
}

.training-number {
    color: #887b70;

    font-size: 11px;

    letter-spacing: 3px;
}

.training-main {
    max-width: 680px;
}

.training-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 3.2vw, 52px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.training-experience {
    margin-top: 18px;

    color: #675e56;

    font-size: 15px;
}

.training-features {
    margin-top: 28px;

    color: #574f48;

    font-size: 14px;

    line-height: 1.9;
}

.training-message {
    display: block;

    margin-top: 28px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 19px;

    font-weight: 400;
}

.training-action {
    align-self: end;
}


/* ==================================================
   SERVICES
================================================== */

.services {
    background: #eee9e3;
}

.service-tabs {
    display: flex;

    gap: 8px;

    margin-bottom: 70px;
}

.service-tabs a {
    padding: 12px 20px;

    border: 1px solid #cfc6bd;

    color: #80776f;

    font-size: 10px;

    letter-spacing: 2px;

    transition: all .3s ease;
}

.service-tabs a:hover,
.service-tabs a.active {
    background: #27231f;

    border-color: #27231f;

    color: #fff;
}

.service-group {
    scroll-margin-top: 40px;
}

.beauty-group {
    margin-top: 120px;
}

.service-group-heading {
    display: grid;

    grid-template-columns:
        70px 1fr;

    gap: 25px;

    align-items: start;

    margin-bottom: 28px;
}

.group-number {
    padding-top: 7px;

    color: #9b9188;

    font-size: 11px;

    letter-spacing: 2px;
}

.service-group-heading h3 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 38px;

    font-weight: 400;

    letter-spacing: -1px;
}

.service-group-heading p {
    margin-top: 5px;

    color: #817870;

    font-size: 12px;
}


/* ==================================================
   SERVICE LIST
================================================== */

.service-list {
    border-top: 1px solid #d2c9c0;
}

.service-item {
    display: grid;

    grid-template-columns:
        60px 1fr 30px;

    gap: 20px;

    align-items: center;

    min-height: 150px;

    padding: 25px 0;

    border-bottom: 1px solid #d2c9c0;

    transition: all .35s ease;
}

.service-item:hover {
    padding-left: 15px;
    padding-right: 15px;

    background: #f8f6f2;
}

.service-item > span {
    color: #9b9188;

    font-size: 10px;

    letter-spacing: 2px;
}

.service-title-row {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 35px;
}

.service-item h4 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 28px;

    font-weight: 400;
}

.service-item p {
    max-width: 520px;

    margin-top: 7px;

    color: #817870;

    font-size: 13px;
}

.service-title-row small {
    position: relative;

    top: 10px;

    color: #817870;

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 1.1px;

    text-transform: uppercase;

    white-space: nowrap;
}

.service-item b {
    color: #8c8279;

    font-size: 18px;

    font-weight: 400;

    transition: transform .3s ease;
}

.service-item:hover b {
    transform: translate(4px, -4px);
}


/* ==================================================
   ABOUT
================================================== */

.about {
    background: #dcd1c6;
}

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 120px;
}

.about-title h2 {
    max-width: 550px;
}

.about-content {
    padding-top: 45px;
}

.about-large {
    max-width: 480px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 31px;

    line-height: 1.25;
}

.about-content > p:not(.about-large) {
    max-width: 500px;

    margin-top: 30px;

    color: #625b54;

    font-size: 15px;

    line-height: 1.8;
}


/* ==================================================
   GALLERY
================================================== */

.works {
    background: #f8f6f2;
}

.gallery {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    grid-auto-rows: 310px;

    gap: 14px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    background: #e7dfd7;
}

.gallery-tall {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.88)
        contrast(.96);

    transition:
        transform .65s ease,
        filter .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.035);

    filter:
        saturate(1)
        contrast(1);
}

.gallery-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 30px;

    padding-top: 22px;

    border-top: 1px solid #ddd5cd;

    color: #817870;

    font-size: 12px;
}

.gallery-bottom a {
    color: #27231f;

    font-weight: 600;
}


/* ==================================================
   BOOKING
================================================== */

.booking {
    background: #292521;

    color: #fff;
}

.booking-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 120px;

    align-items: center;
}

.booking-text h2 {
    max-width: 550px;
}

.booking-text > p:last-child {
    max-width: 440px;

    margin-top: 30px;

    color: #bdb5ae;

    font-size: 15px;

    line-height: 1.8;
}

.booking form {
    display: flex;

    flex-direction: column;

    gap: 22px;
}

.form-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-field label {
    color: #a9a099;

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.booking input,
.booking select {
    width: 100%;

    height: 52px;

    padding: 0 15px;

    border: 1px solid #625b55;

    outline: none;

    background: transparent;

    color: #fff;

    font-size: 14px;
}

.booking input::placeholder {
    color: #77706a;
}

.booking input:focus,
.booking select:focus {
    border-color: #fff;
}

.booking select option,
.booking select optgroup {
    color: #292521;
}

.button-light {
    margin-top: 8px;

    background: #f8f6f2;

    color: #292521;
}

.button-light:hover {
    background: #dcd1c6;
}


/* ==================================================
   FOOTER
================================================== */

.footer {
    background:
        radial-gradient(
            circle at 20% 20%,
            #3a332e 0%,
            #292521 42%,
            #201d1a 100%
        );

    color: #f6f1eb;

    padding: 80px 0 28px;
}

.footer-top {
    display: grid;

    grid-template-columns:
        1.2fr 1fr;

    gap: 100px;

    align-items: start;
}

.footer-brand-block {
    display: flex;

    align-items: center;

    gap: 32px;
}

.footer-real-logo-wrap {
    width: 150px;
    height: 150px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;

    border-radius: 50%;

    background: #171513;
}

.footer-real-logo {
    width: 124px;
    height: 124px;

    object-fit: cover;

    border-radius: 50%;
}

.footer-brand-copy {
    max-width: 330px;
}

.footer-brand-kicker {
    display: block;

    margin-bottom: 16px;

    color: #d5c9bd;

    font-size: 9px;

    letter-spacing: 4px;
}

.footer-brand-copy p {
    color: #bdb3aa;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;

    line-height: 1.45;
}

.footer-nav {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 35px;
}

.footer h4 {
    margin-bottom: 18px;

    color: #f7f2ed;

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.footer-nav a,
.footer-nav p {
    display: block;

    margin-top: 10px;

    color: #a99f96;

    font-size: 13px;

    line-height: 1.6;
}

.footer-bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin-top: 65px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, .10);

    color: #827970;

    font-size: 9px;

    letter-spacing: 2px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    .hero::before {
        width: 70%;
    }

    .training-grid {
        grid-template-columns:
            45px 1fr;
    }

    .training-action {
        grid-column: 2;

        margin-top: 15px;
    }

    .gallery {
        grid-template-columns:
            repeat(2, 1fr);

        grid-auto-rows: 280px;
    }

    .gallery-wide {
        grid-column: span 1;
    }

    .footer-top {
        grid-template-columns: 1fr;

        gap: 55px;
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 768px) {

    .container {
        width: 88%;
    }

    .header {
        padding: 18px 0;
    }

    .brand-text-logo {
        width: 96px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-subtitle {
        font-size: 6px;
    }

    .header-button {
        padding: 10px 15px;

        font-size: 11px;
    }


    /* HERO */

    .hero,
    .hero-inner {
        min-height: 760px;
    }

    .hero-content {
        width: 100%;

        padding-top: 60px;
    }

    h1 {
        font-size:
            clamp(55px, 17vw, 85px);

        letter-spacing: -3px;
    }

    .hero-description {
        max-width: 350px;

        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        max-width: 280px;
    }


    /*
       На телефоне девушка становится
       большим декоративным фоном.
    */

    .hero::before {
        top: 190px;

        width: 105%;
        height: 620px;

        bottom: auto;

        opacity: .45;

        background-position:
            66% center;

        background-size:
            cover;

        -webkit-mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                #000 20%,
                #000 72%,
                transparent 100%
            );

        mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                #000 20%,
                #000 72%,
                transparent 100%
            );
    }

    .hero::after {
        display: none;
    }

    .hero-bottom {
        bottom: 25px;

        font-size: 8px;
    }

    .hero-bottom span:nth-child(2) {
        display: none;
    }


    /* SECTIONS */

    .section {
        padding: 85px 0;
    }

    .section-small {
        padding: 70px 0;
    }

    .section-top {
        grid-template-columns: 1fr;

        gap: 25px;

        margin-bottom: 45px;
    }

    h2 {
        font-size: 52px;
    }


    /* TRAINING */

    .training-title {
        white-space: normal;
        font-size: 34px;
    }

    .training-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .training-number {
        display: none;
    }

    .training-action {
        grid-column: auto;
    }


    /* SERVICES */

    .service-tabs {
        flex-wrap: wrap;

        margin-bottom: 50px;
    }

    .service-group-heading {
        grid-template-columns:
            45px 1fr;

        gap: 15px;
    }

    .service-item {
        grid-template-columns:
            35px 1fr 20px;

        gap: 12px;
    }

    .service-title-row {
        display: block;
    }

    .service-item h4 {
        font-size: 23px;
    }

    .service-title-row small {
        position: static;

        display: block;

        margin-top: 10px;

        white-space: normal;
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .about-content {
        padding-top: 0;
    }


    /* GALLERY */

    .gallery {
        grid-template-columns:
            1fr 1fr;

        grid-auto-rows: 240px;

        gap: 8px;
    }

    .gallery-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    /* BOOKING */

    .booking-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    /* FOOTER */

    .footer-nav {
        grid-template-columns:
            1fr 1fr;
    }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 430px) {

    .brand-text-logo {
        width: 88px;
    }

    .brand-name {
        font-size: 15px;
    }

    .brand-subtitle {
        font-size: 5.5px;
    }

    .header-button {
        padding: 9px 12px;

        font-size: 10px;
    }

    h1 {
        font-size: 54px;
    }

    .hero::before {
        top: 230px;

        height: 520px;

        background-position:
            65% center;

        opacity: .38;
    }

    .gallery {
        grid-template-columns: 1fr;

        grid-auto-rows: 430px;
    }

    .gallery-tall {
        grid-row: span 1;
    }

    .gallery-wide {
        grid-column: span 1;
    }

    .footer-brand-block {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }
}

/* ==================================================
   PREMIUM SERVICE LIGHTBOX
================================================== */
.service-item[data-image]{position:relative;cursor:pointer}
.service-item[data-image]::after{content:"";position:absolute;inset:7px 0;z-index:0;background:#e3d8cc;opacity:0;transform:scaleX(.985);transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.service-item[data-image]>*{position:relative;z-index:1}
.service-item[data-image]:hover::after,.service-item[data-image]:focus-visible::after{opacity:.7;transform:scaleX(1)}
.service-item[data-image]:focus-visible{outline:none}
.service-item[data-image] b{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d5cbc1;border-radius:50%;transition:transform .3s ease,background .3s ease}
.service-item[data-image]:hover b{transform:translate(4px,-2px);background:#f8f6f2}

.service-lightbox{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:34px;visibility:hidden;opacity:0;transition:opacity .32s ease,visibility .32s ease}
.service-lightbox.is-open{visibility:visible;opacity:1}
.service-lightbox-backdrop{position:absolute;inset:0;background:rgba(27,24,21,.84);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.service-lightbox-dialog{position:relative;z-index:1;width:min(970px,92vw);height:min(690px,88vh);display:grid;grid-template-columns:58% 42%;overflow:hidden;background:#f8f6f2;border-radius:12px;box-shadow:0 30px 100px rgba(0,0,0,.34);transform:translateY(18px) scale(.985);transition:transform .32s ease}
.service-lightbox.is-open .service-lightbox-dialog{transform:none}
.service-lightbox-visual{position:relative;min-width:0;overflow:hidden;background:#d9cec2}
.service-lightbox-visual img{width:100%;height:100%;object-fit:cover}
.service-lightbox-info{display:flex;flex-direction:column;justify-content:center;padding:56px 46px;background:#f8f6f2}
.service-lightbox-kicker{margin-bottom:18px;color:#817870;font-size:9px;font-weight:600;letter-spacing:4px}
.service-lightbox-info h3{font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,4vw,56px);font-weight:400;line-height:1;letter-spacing:-1.5px}
.service-lightbox-info p{margin-top:26px;color:#6f675f;font-size:14px;line-height:1.8}
.service-lightbox-book{width:100%;margin-top:34px;justify-content:space-between;text-transform:uppercase;letter-spacing:2px}
.service-lightbox-close{position:absolute;z-index:5;top:18px;right:18px;width:42px;height:42px;border:1px solid rgba(39,35,31,.18);border-radius:50%;background:rgba(248,246,242,.94);color:#27231f;cursor:pointer;font-size:25px;line-height:1;transition:transform .25s ease}
.service-lightbox-close:hover{transform:rotate(90deg)}
.service-lightbox-nav{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:rgba(248,246,242,.94);color:#27231f;cursor:pointer;font-size:20px}
.service-lightbox-prev{left:14px}.service-lightbox-next{right:14px}
.service-lightbox-count{position:absolute;z-index:3;left:22px;bottom:18px;color:#fff;font-size:10px;letter-spacing:2px;text-shadow:0 1px 10px rgba(0,0,0,.4)}
body.lightbox-open{overflow:hidden}

@media(max-width:768px){
.service-item{min-height:122px;padding:18px 0}
.service-item[data-image]::after{inset:4px -10px;border-radius:14px}
.service-lightbox{padding:0;align-items:stretch}
.service-lightbox-backdrop{background:#1f1b18;backdrop-filter:none}
.service-lightbox-dialog{width:100%;height:100dvh;max-height:none;display:block;border-radius:0;background:#1f1b18;transform:translateY(18px)}
.service-lightbox.is-open .service-lightbox-dialog{transform:none}
.service-lightbox-visual{position:absolute;inset:0;width:100%;height:100%;background:#1f1b18}
.service-lightbox-visual::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,rgba(0,0,0,.18),transparent 35%,rgba(0,0,0,.12) 55%,rgba(0,0,0,.6) 100%)}
.service-lightbox-visual img{width:100%;height:100%;object-fit:contain;object-position:center center;background:#1f1b18}
.service-lightbox-close{position:fixed;top:20px;right:18px;border-color:rgba(255,255,255,.72);background:rgba(28,25,22,.28);color:#fff;backdrop-filter:blur(8px)}
.service-lightbox-info{position:absolute;z-index:4;left:12px;right:12px;bottom:12px;display:block;padding:24px 22px 20px;border-radius:22px;background:rgba(248,246,242,.97);box-shadow:0 20px 60px rgba(0,0,0,.2)}
.service-lightbox-info::before{content:"";display:block;width:38px;height:3px;margin:-10px auto 18px;border-radius:99px;background:#c7bdb4}
.service-lightbox-kicker{margin-bottom:10px;font-size:8px;letter-spacing:3px}
.service-lightbox-info h3{font-size:38px;letter-spacing:-1px}
.service-lightbox-info p{margin-top:14px;font-size:13px;line-height:1.65}
.service-lightbox-book{min-height:54px;margin-top:18px}
.service-lightbox-nav{top:42%;width:40px;height:40px}
.service-lightbox-prev{left:12px}.service-lightbox-next{right:12px}
.service-lightbox-count{left:20px;bottom:300px;font-size:9px}
}
@media(max-width:430px){
.service-item{grid-template-columns:30px 1fr 34px;gap:10px}
.service-item h4{font-size:22px}
.service-lightbox-info{left:10px;right:10px;bottom:10px;padding:22px 20px 18px}
.service-lightbox-info h3{font-size:34px}
.service-lightbox-info p{font-size:12.5px}
}


/* ==================================================
   FOOTER — PREMIUM FINAL
   Только оформление footer
================================================== */

.footer {
    padding: 92px 0 30px;
}

.footer-top {
    grid-template-columns: 1.05fr 1fr;
    gap: 120px;
}

.footer-brand-block {
    align-items: center;
    gap: 38px;
}

.footer-real-logo-wrap {
    width: 132px;
    height: 132px;
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .16);
}

.footer-real-logo {
    width: 112px;
    height: 112px;
}

.footer-brand-copy {
    max-width: 390px;
}

.footer-brand-kicker {
    margin-bottom: 20px;
    color: #d8cdc2;
    font-size: 9px;
    letter-spacing: 5px;
}

.footer-brand-copy p {
    max-width: 380px;
    color: #c6b9ae;
    font-size: 24px;
    line-height: 1.5;
}

.footer-nav {
    grid-template-columns: .8fr 1fr .85fr;
    gap: 52px;
}

.footer h4 {
    margin-bottom: 24px;
    font-size: 10px;
    letter-spacing: 2.4px;
}

.footer-nav a,
.footer-nav p {
    margin-top: 12px;
    color: #b8ada4;
    font-size: 13px;
    line-height: 1.75;
}

.footer-nav a {
    width: fit-content;
    position: relative;
    transition: color .25s ease, transform .25s ease;
}

.footer-nav a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-nav > div:nth-child(2) a {
    white-space: nowrap;
}

.footer-nav > div:nth-child(2) p {
    max-width: 205px;
}

.footer-nav > div:nth-child(3) a {
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.footer-nav > div:nth-child(3) a:hover {
    border-bottom-color: rgba(255, 255, 255, .7);
}

.footer-bottom {
    margin-top: 72px;
    padding-top: 24px;
}

@media (max-width: 900px) {
    .footer {
        padding-top: 72px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .footer-brand-copy p {
        font-size: 21px;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
        row-gap: 42px;
    }
}

@media (max-width: 430px) {
    .footer {
        padding: 64px 0 26px;
    }

    .footer-brand-block {
        gap: 26px;
    }

    .footer-real-logo-wrap {
        width: 118px;
        height: 118px;
    }

    .footer-real-logo {
        width: 100px;
        height: 100px;
    }

    .footer-brand-copy p {
        font-size: 20px;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        margin-top: 52px;
    }
}


/* Footer: адрес в одну строку на больших экранах */
@media (min-width: 901px) {
    .footer-nav > div:nth-child(2) p {
        max-width: none;
        white-space: nowrap;
    }
}


/* Обучение: кнопка ближе к основному контенту */
@media (min-width: 901px) {
    .training-action {
        transform: translateX(-110px);
    }
}


/* ==================================================
   GALLERY LIGHTBOX
================================================== */
.gallery-item {
    cursor: zoom-in;
}
.gallery-item:focus-visible {
    outline: 2px solid #27231f;
    outline-offset: 4px;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}
.gallery-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}
.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, .92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 94vw);
    height: min(850px, 90vh);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox-dialog img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(28,25,22,.45);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.gallery-lightbox-close {
    top: 0;
    right: 0;
    font-size: 26px;
}
.gallery-lightbox-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}
.gallery-lightbox-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}
.gallery-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 10px;
    letter-spacing: 2px;
}
body.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-lightbox {
        padding: 0;
    }
    .gallery-lightbox-dialog {
        width: 100%;
        height: 100dvh;
    }
    .gallery-lightbox-dialog img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .gallery-lightbox-close {
        position: fixed;
        top: 18px;
        right: 16px;
    }
    .gallery-lightbox-prev {
        left: 12px;
    }
    .gallery-lightbox-next {
        right: 12px;
    }
    .gallery-lightbox-count {
        bottom: 22px;
    }
}
