* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #dc3545;
    --accent-red: #ff4757;
    --dark-red: #c82333;
    --text-white: #ffffff;
    --text-gray: rgba(255, 255, 255, 0.5);
}

body {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Динамическая высота viewport для мобильных */
    background-image: url('image/фон.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    position: relative;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Мобильные устройства - загружаем 1.JPG */
@media (max-width: 767px) {
    body {
        background-image: url('image/1.JPG');
        background-attachment: scroll; /* fixed может вызывать проблемы на iOS */
    }
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0.3;
}

.content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Динамическая высота viewport для мобильных */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 6%;
    padding-right: 50%;
    min-height: -webkit-fill-available; /* Для iOS Safari */
}

/* На мобильных контент всегда внизу и по центру */
@media (max-width: 767px) {
    .content-wrapper {
        align-items: flex-end;
        justify-content: center;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.hero-section {
    width: 100%;
    max-width: 600px;
}

.name-block {
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.name-line {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    overflow: hidden;
}

.name-line:first-child {
    margin-right: 40px;
}

.name-text {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: clamp(4rem, 11vw, 11rem);
    font-weight: 900;
    color: var(--text-white);
    line-height: 0.9;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(120%);
    animation: nameSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.name-line:hover .name-text {
    color: var(--accent-red);
    text-shadow: 0 4px 30px rgba(220, 53, 69, 0.6);
}

.name-line:first-child .name-text {
    animation-delay: 0.2s;
}

.name-line:last-child .name-text {
    animation-delay: 0.4s;
}

@keyframes nameSlideUp {
    to {
        transform: translateY(0);
    }
}

.name-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
    transform-origin: center;
    transform: translateX(-50%);
    animation: underlineExpand 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 1;
}

.name-line:first-child .name-underline {
    animation-delay: 0.6s;
}

.name-line:last-child .name-underline {
    animation-delay: 0.8s;
}

@keyframes underlineExpand {
    to {
        width: 100%;
        transform: translateX(-50%);
    }
}

.name-line:hover .name-text {
    transform: translateY(-5px) scale(1.02);
}

.name-line:hover .name-underline {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), rgba(255, 71, 87, 0.5));
}

.buttons-block {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 50px;
}

.action-btn {
    position: relative;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    isolation: isolate;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: buttonFloat 3s ease-in-out infinite;
    border-radius: 50px;
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
    }
}

.btn-appointment {
    animation: buttonPulseGlow 2.5s ease-in-out infinite;
}

@keyframes buttonPulseGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 rgba(220, 53, 69, 0);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 53, 69, 0.4);
    }
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.95) 0%, rgba(40, 40, 40, 0.95) 100%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    animation: bgShimmer 4s ease-in-out infinite;
    border-radius: 50px;
}

@keyframes bgShimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

.btn-portfolio .btn-bg {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.98) 0%, rgba(60, 60, 60, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-appointment .btn-bg {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.85) 0%, rgba(255, 71, 87, 0.85) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 45px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    z-index: 3;
    transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    pointer-events: none;
}

.action-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Эффект вспышки при наведении */
.action-btn .flash-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    z-index: 4;
    pointer-events: none;
    border-radius: 50px;
    animation: flash 0.6s ease-out;
}

@keyframes flash {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.btn-portfolio:hover .flash-effect {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
}

.btn-appointment:hover .flash-effect {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 1) 0%, rgba(255, 71, 87, 0.8) 50%, transparent 70%);
}

.action-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(255, 255, 255, 0.3);
    animation: buttonFloatHover 1.5s ease-in-out infinite;
}

.btn-portfolio:hover {
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(255, 255, 255, 0.4),
        0 0 60px rgba(255, 255, 255, 0.2);
}

.btn-appointment:hover {
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 71, 87, 0.8),
        0 0 80px rgba(220, 53, 69, 0.6),
        0 0 100px rgba(255, 71, 87, 0.4);
}

@keyframes buttonFloatHover {
    0%, 100% {
        transform: translateY(-6px) scale(1.02);
    }
    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

.btn-portfolio:hover .btn-bg {
    background: linear-gradient(135deg, rgba(100, 100, 100, 1) 0%, rgba(80, 80, 80, 1) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-appointment:hover .btn-bg {
    background: linear-gradient(135deg, rgba(220, 53, 69, 1) 0%, rgba(255, 71, 87, 1) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 40px rgba(220, 53, 69, 0.8),
        0 0 60px rgba(220, 53, 69, 0.4);
    animation: redGlow 1.5s ease-in-out infinite;
}

@keyframes redGlow {
    0%, 100% {
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.4),
            0 0 40px rgba(220, 53, 69, 0.8),
            0 0 60px rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 0 50px rgba(220, 53, 69, 1),
            0 0 80px rgba(220, 53, 69, 0.6);
    }
}

.action-btn:hover .btn-text {
    transform: translateX(-5px);
    letter-spacing: 3px;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3), 0 0 15px rgba(0, 0, 0, 0.7);
}

.action-btn:hover .btn-arrow {
    transform: translateX(8px) rotate(45deg) scale(1.2);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.action-btn:active {
    transform: translateY(-2px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 25s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.5) 0%, transparent 70%);
    top: 15%;
    right: 8%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.4) 0%, transparent 70%);
    bottom: 10%;
    right: 15%;
    animation-delay: 8s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.85);
    }
}

/* Большие экраны (4K и выше) */
@media (min-width: 1920px) {
    .content-wrapper {
        padding-left: 8%;
        padding-right: 50%;
    }
    
    .hero-section {
        max-width: 700px;
    }
    
    .name-text {
        font-size: clamp(8rem, 12vw, 14rem);
    }
    
    .btn-inner {
        padding: 32px 90px;
        font-size: 20px;
    }
}

/* Планшеты в альбомной ориентации */
@media (min-width: 1024px) and (max-width: 1440px) {
    .content-wrapper {
        padding-left: 6%;
        padding-right: 45%;
    }
    
    .hero-section {
        max-width: 550px;
    }
    
    .name-text {
        font-size: clamp(5rem, 10vw, 9rem);
    }
    
    .btn-inner {
        padding: 26px 65px;
        font-size: 17px;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-wrapper {
        padding-left: 5%;
        padding-right: 40%;
    }
    
    .hero-section {
        max-width: 500px;
    }
    
    .name-block {
        margin-bottom: 70px;
    }
    
    .name-line:first-child {
        margin-right: 30px;
    }
    
    .name-text {
        font-size: clamp(4rem, 12vw, 8rem);
        letter-spacing: -0.02em;
    }
    
    .buttons-block {
        justify-content: center;
        align-items: center;
    }
    
    .action-btn {
        flex: 0 1 auto;
        min-width: 250px;
    }
    
    .btn-content {
        padding: 18px 38px;
        font-size: 15px;
    }
    
    .glow-orb {
        opacity: 0.2;
    }
}

/* Мобильные устройства (портретная ориентация) */
@media (max-width: 767px) {
    body {
        background-position: center top;
        background-size: cover;
    }
    
    .content-wrapper {
        padding-left: 0;
        padding-right: 0;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 10%;
        padding-top: 0;
        min-height: auto;
        width: 100%;
    }
    
    .hero-section {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0 auto;
        padding-left: 5%;
        padding-right: 5%;
        box-sizing: border-box;
    }
    
    .name-block {
        margin-bottom: 25px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .name-line {
        text-align: center;
        width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    
    .name-line:first-child {
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 3px;
    }
    
    .name-text {
        font-size: clamp(1.8rem, 9vw, 3.8rem);
        letter-spacing: -0.01em;
        line-height: 0.92;
        text-align: center;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
    
    .name-underline {
        height: 1.5px;
        left: 50%;
        transform: translateX(-50%);
        transform-origin: center;
    }
    
    .buttons-block {
        margin-top: 25px;
        gap: 15px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .action-btn {
        flex: 1;
        min-width: 200px;
        max-width: 100%;
    }
    
    .btn-content {
        padding: 16px 30px;
        font-size: 14px;
        gap: 10px;
        letter-spacing: 1.5px;
    }
    
    .btn-arrow {
        width: 18px;
        height: 18px;
    }
    
    .glow-orb {
        display: none;
    }
    
    #particles-canvas {
        opacity: 0.2;
    }
    
    .background-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.02) 25%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.4) 75%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }
    
    /* Ограничиваем контент нижней частью экрана */
    .hero-section {
        margin-top: auto;
        max-width: 100%;
    }
    
    /* Убеждаемся что контент не поднимается выше 60% экрана */
    .content-wrapper::before {
        content: '';
        flex: 1 1 40%;
        min-height: 40vh;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    body {
        background-position: center top;
    }
    
    .content-wrapper {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 8%;
        align-items: flex-end;
        justify-content: center;
        padding-top: 0;
        width: 100%;
    }
    
    .hero-section {
        align-items: center;
        text-align: center;
        margin: 0 auto;
        padding-left: 4%;
        padding-right: 4%;
        box-sizing: border-box;
    }
    
    .name-block {
        margin-bottom: 20px;
        align-items: center;
    }
    
    .name-line {
        text-align: center;
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .name-text {
        font-size: clamp(1.6rem, 11vw, 3.2rem);
        line-height: 0.92;
        text-align: center;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
    
    .name-underline {
        left: 50%;
        transform: translateX(-50%);
        transform-origin: center;
        height: 1px;
    }
    
    .buttons-block {
        margin-top: 20px;
        gap: 12px;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        max-width: 100%;
    }
    
    .btn-content {
        padding: 16px 28px;
        font-size: 13px;
        gap: 10px;
        letter-spacing: 1.5px;
    }
    
    .btn-arrow {
        width: 18px;
        height: 18px;
    }
    
    .background-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.03) 30%,
            rgba(0, 0, 0, 0.25) 55%,
            rgba(0, 0, 0, 0.75) 100%
        );
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .content-wrapper {
        padding-bottom: 7%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-section {
        padding-left: 3%;
        padding-right: 3%;
    }
    
    .name-text {
        font-size: clamp(1.4rem, 12vw, 2.8rem);
    }
    
    .name-block {
        margin-bottom: 18px;
    }
    
    .btn-inner {
        padding: 12px 24px;
        font-size: 11px;
        gap: 12px;
    }
    
    .background-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.02) 28%,
            rgba(0, 0, 0, 0.2) 52%,
            rgba(0, 0, 0, 0.8) 100%
        );
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    body {
        background-position: center left;
    }
    
    .content-wrapper {
        padding-top: 2%;
        padding-bottom: 2%;
        padding-right: 3%;
        align-items: center;
        justify-content: flex-end;
    }
    
    .name-block {
        margin-bottom: 20px;
    }
    
    .name-text {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .name-line:first-child {
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .btn-inner {
        padding: 16px 35px;
        font-size: 13px;
    }
    
    .background-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 60%,
            rgba(0, 0, 0, 0.5) 100%
        );
    }
}

/* Высокие экраны (портретная ориентация) */
@media (min-height: 900px) and (max-width: 768px) {
    .content-wrapper {
        justify-content: center;
    }
    
    .name-block {
        margin-bottom: 80px;
    }
}

/* Touch устройства - увеличиваем области нажатия */
@media (hover: none) and (pointer: coarse) {
    .name-line {
        padding: 10px 0;
    }
}

/* Модальное окно для видео */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.video-container {
    width: 100%;
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 75vh;
    display: block;
    outline: none;
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.video-nav-btn:active {
    transform: scale(0.95);
}

.video-counter {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    min-width: 80px;
    text-align: center;
}

/* Адаптация модального окна для мобильных */
@media (max-width: 767px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-close {
        top: -40px;
        width: 40px;
        height: 40px;
    }
    
    .video-container {
        border-radius: 15px;
    }
    
    .video-container video {
        max-height: 60vh;
    }
    
    .video-controls {
        gap: 20px;
        padding: 15px;
        border-radius: 40px;
    }
    
    .video-nav-btn {
        width: 44px;
        height: 44px;
    }
    
    .video-counter {
        font-size: 16px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .video-container video {
        max-height: 50vh;
    }
    
    .video-controls {
        gap: 15px;
        padding: 12px;
    }
    
    .video-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .video-counter {
        font-size: 14px;
        min-width: 60px;
    }
}

/* Модальное окно для записи */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.appointment-modal.active {
    display: flex;
    opacity: 1;
}

.appointment-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.appointment-modal-content {
    position: relative;
    z-index: 10001;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 30px;
    padding: 40px;
    overflow-y: auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.appointment-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.appointment-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

/* Шаги формы */
.appointment-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.appointment-step.active {
    display: block;
}

.step-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Выбор города */
.cities-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.city-btn {
    width: 100%;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.city-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.city-btn:active {
    transform: translateY(0);
}

.city-btn.selected {
    background: rgba(220, 53, 69, 0.3);
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
}

/* Календарь */
.calendar-container {
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.calendar-month-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    text-transform: capitalize;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day-name {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.calendar-day.available {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.calendar-day.selected {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.calendar-day.today {
    border-color: rgba(255, 255, 255, 0.5);
}

.calendar-day.past {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Процедуры */
.procedures-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.procedure-item {
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.procedure-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.procedure-item.selected {
    background: rgba(220, 53, 69, 0.3);
    border-color: var(--accent-red);
}

.procedure-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-white);
}

.procedure-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-red);
}

/* Форма контактов */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-back {
    flex: 1;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-submit {
    flex: 2;
    padding: 18px 30px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.85) 0%, rgba(255, 71, 87, 0.85) 100%);
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 1) 0%, rgba(255, 71, 87, 1) 100%);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

/* Успешная отправка */
.step-success {
    text-align: center;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(220, 53, 69, 0.2);
    border: 3px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.success-message {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

.instagram-promo {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

.instagram-promo p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.instagram-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
    border-radius: 50px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.btn-close-modal {
    margin-top: 20px;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Адаптация для мобильных */
@media (max-width: 767px) {
    .appointment-modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 85vh;
    }
    
    .step-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .city-btn {
        padding: 20px 25px;
        font-size: 16px;
    }
    
    .calendar-day {
        font-size: 14px;
        padding: 8px;
    }
    
    .procedure-item {
        padding: 20px 25px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-submit {
        width: 100%;
    }
}
