@font-face {
    font-family: 'HamiltoneCustom';
    src: url('../fonts/HamiltoneSHA.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #0a0a0c;
    --bg-card: #141518;
    --poster-orange: #d95328;
    --poster-bright-orange: #e65c2b;
    --text-white: #ffffff;
    --text-muted: #7e7e8c;
    
    --font-unbounded: 'Unbounded', sans-serif;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-script: 'HamiltoneCustom', 'Caveat', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-montserrat);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; }
.nav { display: flex; gap: 40px; }
.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.nav a:hover { color: var(--text-white); }

.language-switch {
    border: 1px solid rgba(53, 174, 116, 0.7);
    padding: 10px 22px;
    min-width: 62px;
    border-radius: 100px;
    color: var(--text-white);
    font-family: var(--font-montserrat);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    background: #075b3f;
    box-shadow: 0 8px 24px rgba(0, 91, 63, 0.25);
    transition: all 0.3s ease;
}
.language-switch:hover { background: #08734f; transform: translateY(-1px); }

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 140px 6% 40px;
    position: relative;
    overflow: hidden;
    background-image: url('../images/carpet-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-top {
    position: relative; z-index: 3; font-size: 11px; font-weight: 600; letter-spacing: 4px; color: var(--text-muted); text-transform: uppercase;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 40px 0;
    text-align: left;
}

.hero-title h1 {
    font-family: var(--font-unbounded);
    font-size: clamp(72px, 13vw, 190px);
    text-align: left;
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -4px;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.12);
}

.hero-title h1 span {
    display: block;
    font-size: 0.32em;
    letter-spacing: -1px;
    color: var(--text-muted);
    margin-top: 16px;
}

.hero-subtitle {
    font-size: clamp(13px, 1.2vw, 16px);
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 24px;
    max-width: 600px;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 32px;
    gap: 20px;
}

.signature {
    font-family: var(--font-script);
    font-size: clamp(48px, 6.4vw, 100px);
    color: var(--text-white);
    line-height: 1;
    white-space: nowrap;
    padding-left: 18px;
    overflow: visible;
}

.hero-booking-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    min-width: 320px;
    padding: 18px 38px;
    border: 1px solid rgba(53, 174, 116, 0.7);
    border-radius: 100px;
    background: #075b3f;
    color: #ffffff;
    font-family: var(--font-montserrat);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(0, 91, 63, 0.42), 0 0 30px rgba(255, 184, 72, 0.10);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.hero-booking-button:hover {
    transform: translateY(-3px);
    background: #08734f;
    box-shadow: 0 16px 48px rgba(0, 91, 63, 0.55), 0 0 35px rgba(255, 184, 72, 0.14);
}

.btn-round-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(217, 83, 40, 0.15);
    border: 1px solid rgba(217, 83, 40, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 35px rgba(217, 83, 40, 0.25);
    flex-shrink: 0;
    transform: translateY(-35px);
}

.btn-round-wrapper:hover {
    transform: translateY(-38px) scale(1.06);
    background: rgba(217, 83, 40, 0.25);
    border-color: rgba(217, 83, 40, 0.8);
    box-shadow: 0 18px 45px rgba(217, 83, 40, 0.45);
}

.btn-round-circle {
    width: 65px;
    height: 65px;
    background-color: var(--poster-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-round-wrapper:hover .btn-round-circle { transform: rotate(45deg); }

.btn-round-circle svg {
    width: 24px; height: 24px;
    fill: none; stroke: #ffffff;
    stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

.btn-round-text {
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%; animation: rotateText 18s linear infinite;
}

.btn-round-wrapper:hover .btn-round-text { animation-play-state: paused; }
.btn-round-text svg { width: 100%; height: 100%; }
.btn-round-text text {
    font-size: 8.5px; font-weight: 700;
    letter-spacing: 2.2px; text-transform: uppercase; fill: #ffffff;
}

@keyframes rotateText {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-bottom {
    position: relative; z-index: 3; display: flex; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; font-size: 12px; color: var(--text-muted);
}

section { padding: 120px 6%; position: relative; }

.section-label { 
    position: relative; z-index: 2; 
    font-size: 12px; font-weight: 700; 
    letter-spacing: 3px; color: var(--text-muted); 
    margin-bottom: 50px; display: block; 
}

/* ABOUT SECTION */
.about::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -10vw;
    width: 78vw;
    height: 620px;
    background:
        radial-gradient(ellipse 58% 72% at 18% 0%,
            rgba(255, 220, 132, 0.28) 0%,
            rgba(246, 188, 68, 0.18) 22%,
            rgba(220, 142, 34, 0.09) 43%,
            rgba(178, 103, 25, 0.04) 61%,
            transparent 80%),
        linear-gradient(158deg,
            transparent 38%,
            rgba(238, 166, 48, 0.04) 58%,
            rgba(255, 208, 104, 0.09) 82%,
            transparent 100%);
    filter: blur(64px);
    pointer-events: none;
    z-index: 1;
}

.about::after {
    content: '';
    position: absolute;
    top: -80px;
    left: 2%;
    width: 48%;
    height: 360px;
    background: radial-gradient(
        ellipse 65% 75% at 22% 0%,
        rgba(255, 231, 170, 0.12) 0%,
        rgba(239, 169, 49, 0.06) 38%,
        transparent 76%
    );
    filter: blur(48px);
    pointer-events: none;
    z-index: 1;
}

.about-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 60px; align-items: center;
}

.about-info h2 {
    font-family: var(--font-unbounded);
    font-size: clamp(32px, 4vw, 60px);
    font-weight: 800; line-height: 1.05; margin-bottom: 32px;
}

.about-info h2 span { color: var(--text-muted); }

.about-text p {
    font-size: 17px; color: var(--text-muted);
    margin-bottom: 20px; font-weight: 300; line-height: 1.7;
}

.about-text p strong { color: var(--text-white); font-weight: 600; }

.founder-card {
    position: relative; border-radius: 24px; overflow: hidden;
    background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.founder-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }

.founder-img-wrapper { position: relative; width: 100%; height: 520px; overflow: hidden; }

.founder-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    filter: grayscale(100%) contrast(105%); transition: filter 0.5s ease, transform 0.5s ease;
}

.founder-card:hover .founder-img { filter: grayscale(0%) contrast(100%); transform: scale(1.03); }

.founder-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 12, 0.95) 85%);
    display: flex; flex-direction: column; gap: 4px;
}

.founder-name { font-family: var(--font-unbounded); font-size: 20px; font-weight: 700; color: var(--text-white); text-transform: uppercase; }
.founder-role { font-size: 12px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

/* DIRECTIONS SECTION */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.flip-container {
    perspective: 1200px;
    min-height: 420px;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-container.flipped .flip-card {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    background-color: #141518 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-front-vocal {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.9) 100%), 
                url('../images/vocal-photo.png') center/cover no-repeat !important;
}

.card-front-guitar {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.9) 100%), 
                url('../images/guitar-photo.png') center/cover no-repeat !important;
}

.card-front-piano {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.9) 100%), 
                url('../images/piano-photo.png') center/cover no-repeat !important;
}

.card-front-drums {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.4) 0%, rgba(10, 10, 12, 0.9) 100%), 
                url('../images/drums-photo.png') center/cover no-repeat !important;
}

.card-front-vocal .course-desc,
.card-front-guitar .course-desc,
.card-front-piano .course-desc,
.card-front-drums .course-desc {
    color: #e0e0e0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.card-front-vocal .course-title,
.card-front-guitar .course-title,
.card-front-piano .course-title,
.card-front-drums .course-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.card-back {
    z-index: 1;
    transform: rotateY(180deg);
    border-color: rgba(217, 83, 40, 0.3);
}

.card-front::before, .card-back::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(217, 83, 40, 0.22),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.card-front:hover::before, .card-back:hover::before {
    opacity: 1;
}

.card-front:hover, .card-back:hover {
    border-color: rgba(217, 83, 40, 0.5);
    box-shadow: 0 15px 40px rgba(217, 83, 40, 0.15);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.teachers-btn-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-white);
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.card-top-right:hover .teachers-btn-label {
    opacity: 1;
    color: var(--poster-orange);
}

.course-number {
    font-family: var(--font-unbounded);
    font-size: 14px;
    font-weight: 700;
    color: var(--poster-orange);
    letter-spacing: 2px;
}

.flip-arrow-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-top-right:hover .flip-arrow-btn {
    background: var(--poster-orange);
    border-color: var(--poster-orange);
}

.flip-arrow-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-white);
    fill: none;
    stroke-width: 2;
}

.course-title {
    font-family: var(--font-unbounded);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.course-desc {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 24px;
}

.course-action {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.course-submit-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-family: var(--font-montserrat);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-submit-btn:hover {
    background-color: var(--text-white);
    color: #000;
}

.teachers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.teacher-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.teacher-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #202228;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-info h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
}

.teacher-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* CERTIFICATES SECTION */
.certificates-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cert-card-ref {
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 44px 50px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.cert-card-ref:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 83, 40, 0.4);
    box-shadow: 0 25px 70px rgba(217, 83, 40, 0.15);
}

.cert-card-ref.reverse {
    flex-direction: row-reverse;
}

.cert-text-col {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
}

.cert-header-line {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cert-header-title {
    font-family: var(--font-montserrat);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--poster-orange);
    text-transform: uppercase;
}

.cert-header-divider {
    height: 1px;
    width: 140px;
    background-color: var(--poster-orange);
}

.cert-main-title {
    font-family: var(--font-unbounded);
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cert-prices-grid {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.cert-price-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cert-subtitle-script {
    font-family: var(--font-script);
    font-size: clamp(24px, 2.8vw, 32px);
    color: var(--poster-orange);
    line-height: 1;
}

.cert-price-value-ref {
    font-family: var(--font-unbounded);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.cert-logo-col {
    flex: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.cert-logo-circle {
    width: clamp(220px, 26vw, 310px);
    height: clamp(220px, 26vw, 310px);
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px;
    background-color: #000000;
    transition: transform 0.5s ease;
}

.cert-card-ref:hover .cert-logo-circle {
    transform: scale(1.03);
}

.cert-logo-circle img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cert-author-footer {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-montserrat);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--poster-orange);
    text-transform: uppercase;
    z-index: 2;
}

/* REVIEWS SECTION */
.reviews-section {
    background-color: #ffffff;
    color: #0a0a0c;
    padding: 120px 6%;
}

.reviews-section .section-label {
    color: #7e7e8c;
}

.reviews-header {
    margin-bottom: 60px;
}

.reviews-header h2 {
    font-family: var(--font-unbounded);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 900;
    color: #0a0a0c;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -1px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background-color: #f7f7f9;
    border: 1px solid #e5e5ec;
    border-radius: 20px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.review-stars {
    color: var(--poster-orange);
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.review-text {
    font-size: 15px;
    color: #33343d;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 30px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #e5e5ec;
    padding-top: 20px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #e0e0e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--poster-orange);
    border: 1px solid rgba(217, 83, 40, 0.3);
    flex-shrink: 0;
}

.review-author-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0a0a0c;
}

.review-author-info p {
    font-size: 12px;
    color: #7e7e8c;
}

/* ORANGE POSTER SECTION */
.poster-banner {
    background-color: var(--poster-bright-orange);
    min-height: 80vh;
    padding: 100px 6%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.poster-top-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    color: #000000;
    text-transform: uppercase;
    z-index: 2;
}

.poster-center-content {
    position: relative;
    z-index: 2;
    margin: 40px 0;
    width: 100%;
    max-width: 1200px;
}

.poster-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-unbounded);
    font-size: clamp(140px, 32vw, 420px);
    font-weight: 900;
    color: rgba(0, 0, 0, 0.06);
    line-height: 0.8;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    white-space: nowrap;
}

.poster-title {
    font-family: var(--font-unbounded);
    font-size: clamp(54px, 11vw, 150px);
    font-weight: 900;
    color: #000000;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -3px;
}

.poster-script {
    font-family: var(--font-script);
    font-size: clamp(48px, 8vw, 110px);
    color: #000000;
    line-height: 0.9;
    margin: 5px 0 10px;
    display: block;
}

.poster-by {
    font-family: var(--font-script);
    font-size: clamp(36px, 5vw, 68px);
    color: #000000;
    display: block;
    margin-top: 15px;
}

.poster-divider {
    width: 60px;
    height: 3px;
    background-color: #000000;
    margin: 25px auto 0;
}

/* CONTACTS & MAP SECTION */
.contacts-section {
    position: relative;
    background-color: var(--bg-main);
    padding: 0 0 100px 0;
}

.map-container {
    width: 100%;
    height: 480px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    filter: invert(100%) hue-rotate(190deg) brightness(85%) contrast(120%);
}

.contacts-container {
    max-width: 1300px;
    margin: 60px auto 0;
    padding: 0 6%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phone-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.city {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.phone-number {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: var(--poster-orange);
}

.contact-item-main {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item-main:hover {
    color: var(--poster-orange);
}

.contacts-address-group {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-address {
    font-size: clamp(16px, 1.4vw, 20px);
    color: var(--text-white);
    font-weight: 400;
}

.contacts-legal {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contacts-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-styled {
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    padding: 16px 28px;
    color: var(--text-white);
    font-family: var(--font-montserrat);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-styled:focus {
    border-color: var(--poster-orange);
    background-color: rgba(255, 255, 255, 0.03);
}

.input-styled::placeholder {
    color: #7e7e8c;
}

.select-styled {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2523FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 24px center;
    cursor: pointer;
}

.select-styled option {
    background-color: #141518;
    color: #fff;
}

.field-label-small {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 10px;
    margin-bottom: -10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    accent-color: var(--poster-orange);
    cursor: pointer;
}

.checkbox-container a {
    color: var(--text-muted);
    text-decoration: underline;
}

.checkbox-container a:hover {
    color: var(--text-white);
}

.contact-submit-btn {
    width: 100%;
    background-color: var(--poster-orange);
    border: none;
    border-radius: 100px;
    padding: 18px;
    color: #ffffff;
    font-family: var(--font-montserrat);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(217, 83, 40, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
    background-color: var(--poster-bright-orange);
    transform: translateY(-2px);
}

/* MODAL WINDOW */
.modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-card {
    background-color: #121316;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 100%; max-width: 460px;
    padding: 40px 32px; position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    transform: translateY(20px); transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card { transform: translateY(0); }

.modal-close {
    position: absolute; top: 24px; right: 24px;
    background: none; border: none; color: var(--text-muted);
    font-size: 24px; cursor: pointer; transition: color 0.2s ease; line-height: 1;
}
.modal-close:hover { color: var(--text-white); }

.modal-title {
    font-family: var(--font-unbounded);
    font-size: 24px; font-weight: 800;
    text-align: center; text-transform: uppercase;
    letter-spacing: -0.5px; color: var(--text-white); margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 13px; color: var(--text-muted);
    text-align: center; margin-bottom: 28px; font-weight: 400; line-height: 1.4;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block; font-size: 10px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 8px;
}

.form-control {
    width: 100%; background-color: #1a1b20;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; padding: 14px 16px;
    color: var(--text-white); font-family: var(--font-montserrat);
    font-size: 14px; outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    border-color: rgba(255, 255, 255, 0.3); background-color: #202228;
}

.form-control::placeholder { color: #52545d; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%25237E7E8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    padding-right: 40px; cursor: pointer;
}

.modal-submit {
    width: 100%; background-color: #ffffff; color: #000000;
    font-family: var(--font-montserrat); font-weight: 800;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    padding: 18px; border-radius: 100px; border: none; cursor: pointer;
    margin-top: 10px; transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-submit:hover { background-color: #e5e5e5; transform: translateY(-1px); }

/* PRIVACY MODAL STYLES */
.privacy-modal-card {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.privacy-modal-body {
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 10px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.privacy-modal-body h4 {
    color: var(--text-white);
    margin: 16px 0 6px;
    font-family: var(--font-unbounded);
    font-size: 14px;
}

.privacy-modal-body p {
    margin-bottom: 12px;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 6px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
    .nav { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .directions-grid { grid-template-columns: 1fr; }
    .founder-img-wrapper { height: 400px; }
    .hero-meta-row { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero-booking-button { min-width: min(320px, 90vw); }
    .signature { padding-left: 8px; font-size: clamp(44px, 10vw, 80px); }
    .btn-round-wrapper { transform: translateY(0); }
    .btn-round-wrapper:hover { transform: scale(1.06); }
    
    .cert-card-ref, .cert-card-ref.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 36px 24px 44px;
        text-align: center;
    }
    .cert-text-col { align-items: center; }
    .cert-header-line { justify-content: center; }
    .cert-prices-grid {
        justify-content: center;
        gap: 24px;
    }
    .cert-price-item {
        align-items: center;
    }
    .cert-logo-circle {
        width: 200px;
        height: 200px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contacts-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .map-container {
        height: 350px;
    }
}

/* MOBILE KODI */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(10, 10, 12, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 1002;
}

.mobile-menu-button span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.mobile-menu-button.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-button.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}
@media (max-width:900px) {
    .header { padding:14px 18px; min-height:70px; }
    .logo-img { height:34px; max-width:110px; }
    .header-actions { gap:8px; }
    .language-switch { min-width:52px; padding:9px 15px; font-size:10px; }
    .mobile-menu-button { display:flex; }

    .nav {
        position:absolute; top:calc(100% + 8px); left:12px; right:12px;
        display:flex; flex-direction:column; gap:0; padding:8px;
        border:1px solid rgba(255,255,255,.10); border-radius:20px;
        background:rgba(12,12,14,.95); backdrop-filter:blur(22px);
        box-shadow:0 20px 60px rgba(0,0,0,.55);
        opacity:0; visibility:hidden; transform:translateY(-10px); pointer-events:none;
        transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
    }
    .nav.mobile-open { opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
    .nav a { width:100%; padding:15px 16px; border-radius:13px; font-size:11px; letter-spacing:1.7px; }
    .nav a:hover { background:rgba(255,255,255,.06); }

    section { padding:82px 18px; }
    .hero { min-height:100svh; padding:96px 18px 24px; background-position:center center; }
    .hero-top { font-size:8px; letter-spacing:2.8px; margin-top:2px; }
    .hero-content { margin:26px 0 22px; max-width:100%; }
    .hero-title h1 { font-size:clamp(58px,18vw,100px); line-height:.82; letter-spacing:-3px; }
    .hero-title h1 span { font-size:.31em; letter-spacing:-.5px; margin-top:12px; }
    .hero-subtitle { margin-top:22px; max-width:92%; font-size:10px; line-height:1.45; letter-spacing:.7px; }
    .hero-meta-row { margin-top:28px; display:flex; flex-direction:column; align-items:flex-start; gap:22px; }
    .signature { padding-left:0; font-size:clamp(40px,12vw,66px); line-height:.9; white-space:normal; max-width:100%; }
    .hero-booking-button { width:min(100%,330px); min-width:0; margin-top:22px; padding:16px 22px; font-size:11px; letter-spacing:1.4px; }
    .btn-round-wrapper { width:118px; height:118px; align-self:flex-end; transform:none; margin-right:2px; }
    .btn-round-wrapper:hover { transform:none; }
    .btn-round-circle { width:52px; height:52px; }
    .btn-round-text text { font-size:7px; letter-spacing:1.5px; }
    .hero-bottom { padding-top:16px; gap:8px; font-size:8px; line-height:1.3; }
    .hero-bottom span:nth-child(2) { display:none; }
    .section-label { margin-bottom:28px; font-size:9px; letter-spacing:2.2px; }

    .about-grid { grid-template-columns:1fr; gap:30px; }
    .about-info h2 { font-size:clamp(30px,9vw,48px); margin-bottom:24px; }
    .about-text p { font-size:14px; line-height:1.65; margin-bottom:16px; }
    .founder-card { border-radius:18px; }
    .founder-img-wrapper { height:min(105vw,430px); }
    .founder-overlay { padding:22px 18px; }
    .founder-name { font-size:16px; }
    .founder-role { font-size:9px; letter-spacing:1.1px; }

    .directions-grid { grid-template-columns:1fr; gap:16px; }
    .flip-container { min-height:390px; height:390px; }
    .card-front,.card-back { border-radius:20px; padding:24px 20px; }
    .card-top { margin-bottom:16px; }
    .teachers-btn-label { font-size:9px; letter-spacing:1.2px; }
    .flip-arrow-btn { width:32px; height:32px; }
    .course-number { font-size:11px; }
    .course-title { font-size:clamp(21px,7vw,28px); line-height:1.08; margin-bottom:12px; }
    .course-desc { font-size:13px; line-height:1.55; margin-bottom:18px; max-width:94%; }
    .course-action { padding-top:15px; }
    .course-submit-btn { padding:13px 18px; font-size:10px; letter-spacing:1.3px; }
    .teacher-item { gap:12px; }
    .teacher-avatar { width:42px; height:42px; }
    .teacher-info h4 { font-size:12px; }
    .teacher-info p { font-size:10px; }

    .certificates-container { gap:18px; max-width:100%; }
    .cert-card-ref,.cert-card-ref.reverse { min-height:0; padding:28px 20px 30px; gap:24px; border-radius:20px; }
    .cert-header-line { width:100%; gap:10px; margin-bottom:16px; }
    .cert-header-title { font-size:8px; letter-spacing:2px; }
    .cert-header-divider { flex:1; width:auto; }
    .cert-main-title { font-size:clamp(21px,7vw,30px); margin-bottom:16px; }
    .cert-prices-grid { width:100%; gap:18px; margin-bottom:0; justify-content:space-between; }
    .cert-price-item > span { font-size:12px !important; }
    .cert-price-value-ref { font-size:clamp(18px,6vw,25px); }
    .cert-logo-circle { width:150px; height:150px; padding:24px; }
    .cert-author-footer { font-size:8px; letter-spacing:2px; }

    .reviews-grid { grid-template-columns:1fr; gap:14px; }
    .review-card { min-height:0; padding:24px 20px; border-radius:18px; }
    .reviews-header h2 { font-size:clamp(28px,9vw,48px); line-height:1; }
    .review-stars { font-size:13px; letter-spacing:2px; }
    .review-text { font-size:13px; line-height:1.65; }

    .poster-banner { min-height:82svh; padding:70px 18px 24px; }
    .poster-title { font-size:clamp(46px,15vw,80px); }
    .poster-script { font-size:clamp(50px,17vw,86px); }
    .poster-by { font-size:38px; }

    .contacts-section .section-label { padding-left:0 !important; }
    .map-container { height:280px; border-radius:18px; margin-bottom:26px; }
    .contacts-container { grid-template-columns:1fr; gap:30px; }
    .contacts-info { gap:18px; }
    .phone-number { font-size:21px; }
    .contact-item-main { font-size:18px; word-break:break-word; }
    .contact-address { font-size:14px; line-height:1.45; }
    .contacts-legal { margin-top:22px; font-size:8px; line-height:1.5; }
    .contacts-form { gap:14px; }
    .input-styled { padding:14px 18px; font-size:13px; }
    .checkbox-container { align-items:flex-start; font-size:10px; line-height:1.5; }
    .checkbox-container input { flex:0 0 auto; margin-top:1px; }
    .contact-submit-btn { padding:16px; font-size:10px; }

    .modal-overlay { padding:12px; align-items:flex-end; }
    .modal-card { max-height:calc(100svh - 24px); padding:30px 18px 22px; border-radius:22px; overflow-y:auto; }
    .modal-title { padding:0 22px; font-size:18px; line-height:1.2; }
    .modal-subtitle { font-size:11px; margin-bottom:20px; }
    .form-group { margin-bottom:14px; }
    .form-label { font-size:8px; margin-bottom:6px; }
    .form-control { padding:12px 13px; font-size:13px; border-radius:10px; }
    .modal-submit { padding:15px; font-size:10px; }
    .privacy-modal-card { max-height:calc(100svh - 24px); }
    .privacy-modal-body { font-size:11px; line-height:1.6; padding-right:4px; }
    .privacy-modal-body h4 { font-size:11px; margin:14px 0 5px; }
    .privacy-modal-body p { margin-bottom:10px; }
}

@media (max-width:420px) {
    .header { padding-left:14px; padding-right:14px; }
    .logo-img { height:31px; }
    .language-switch { min-width:48px; padding:8px 12px; }
    .hero { padding-left:15px; padding-right:15px; }
    .hero-title h1 { font-size:16vw; }
    .hero-booking-button { width:100%; }
    .btn-round-wrapper { width:105px; height:105px; }
    .flip-container { height:370px; min-height:370px; }
    .cert-prices-grid { gap:12px; }
    .cert-price-value-ref { font-size:18px; }
    .reviews-header h2 { font-size:31px; }
    .phone-number { font-size:19px; }
}

@media (prefers-reduced-motion:reduce) {
    *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
.flip-container {
    min-height: 420px;
    height: 420px;
    perspective: 1400px;
    -webkit-perspective: 1400px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.flip-container.flipped .flip-card {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 36px 30px;

    opacity: 1;
    overflow: hidden;

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

    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    z-index: 1;
    transform: rotateY(180deg);

    /* Полностью непрозрачная обратная сторона */
    background: #141518;
    background-color: #141518;
    opacity: 1;

    border-color: rgba(217, 83, 40, 0.45);
}

.flip-container.flipped .card-front {
    pointer-events: none;
}

.flip-container:not(.flipped) .card-back {
    pointer-events: none;
}

.flip-toggle {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.flip-arrow-btn {
    touch-action: manipulation;
}

.teacher-info h4 {
    color: #ffffff;
    opacity: 1;
}

.teacher-info p {
    color: #a3a3ad;
    opacity: 1;
}


/* =========================================================
   ИСПРАВЛЕНИЯ МОДАЛЬНЫХ ОКОН
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;

    z-index: 2000;

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

    padding: 20px;

    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    overflow-y: auto;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card {
    position: relative;

    width: min(100%, 460px);
    max-height: calc(100dvh - 40px);
    margin: auto;

    padding: 40px 32px;
    overflow-y: auto;

    background: #121316;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);

    transform: translateY(18px) scale(0.98);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card select {
    display: block;
    width: 100%;
    color-scheme: dark;
}

.modal-card select option,
.form-control option {
    color: #ffffff;
    background: #1a1b20;
}

.form-control {
    min-height: 48px;
}

select.form-control {
    appearance: auto;
    -webkit-appearance: menulist;
    background-image: none;
    padding-right: 16px;
    cursor: pointer;
}


/* Не позволяем фону прокручиваться под модальным окном */
body.modal-open {
    overflow: hidden;
}


/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 900px) {
    .header {
        padding: 14px 18px;
        min-height: 70px;
    }

    .mobile-menu-button {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 78px;
        left: 12px;
        right: 12px;

        display: flex;
        flex-direction: column;
        gap: 0;

        max-height: calc(100dvh - 92px);
        padding: 8px;
        overflow-y: auto;

        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;

        background: rgba(12, 12, 14, 0.98);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);

        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);

        z-index: 1001;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    .nav.mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        display: block;
        width: 100%;
        padding: 15px 16px;
        border-radius: 13px;
        color: #ffffff;
    }

    .nav a:hover,
    .nav a:focus-visible {
        background: rgba(255, 255, 255, 0.07);
    }

    .flip-container {
        min-height: 390px;
        height: 390px;
    }

    .card-front,
    .card-back {
        padding: 24px 20px;
        border-radius: 20px;
    }

    /*
       Модальное окно всегда располагается по центру.
       margin:auto дополнительно удерживает его по центру,
       если содержимое становится выше доступной области.
    */
    .modal-overlay {
        align-items: center;
        justify-content: center;
        padding:
            max(12px, env(safe-area-inset-top))
            12px
            max(12px, env(safe-area-inset-bottom));
    }

    .modal-card {
        width: min(100%, 460px);
        max-height: calc(
            100dvh -
            max(24px, env(safe-area-inset-top)) -
            max(24px, env(safe-area-inset-bottom))
        );

        margin: auto;
        padding: 30px 18px 22px;
        border-radius: 22px;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .privacy-modal-card {
        max-height: calc(
            100dvh -
            max(24px, env(safe-area-inset-top)) -
            max(24px, env(safe-area-inset-bottom))
        );
    }
}

@media (max-width: 420px) {
    .flip-container {
        min-height: 370px;
        height: 370px;
    }

    .modal-overlay {
        padding:
            max(10px, env(safe-area-inset-top))
            10px
            max(10px, env(safe-area-inset-bottom));
    }

    .modal-card {
        max-height: calc(100dvh - 20px);
        padding: 28px 16px 20px;
    }
}
/* Удаляем старое переопределение и задаем единый стиль для инпутов и селектов */
.modal-card .form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    background-color: #1a1b20;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-white);
    font-family: var(--font-montserrat);
    font-size: 14px;
    outline: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* Полный сброс нативных стилей <select> */
.modal-card select.form-control {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    padding-right: 40px;
    cursor: pointer;
    
    /* Добавляем единую аккуратную стрелку вместо системных двойных */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%25237E7E8C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Эффект при фокусе */
.modal-card .form-control:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: #202228;
}

/* Стиль раскрывающегося списка выпадашки */
.modal-card select.form-control option {
    background-color: #141518;
    color: #ffffff;
}