@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;700&family=Montserrat:wght@300;500;700&display=swap');

:root {
    --primary: #ff66b2;
    --dark: #1a1a1a;
    --light: #ffffff;
    --off-white: rgba(255, 253, 245, 0.95);
    --gold: #d4af37;
    --gradient: linear-gradient(135deg, #9d50bb, #ff66b2);
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

html {
  background: #090d00;
}

/* BACKGROUND */

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -999; /* Более низкий z-index */
  pointer-events: none; /* Чтобы не мешало взаимодействию */
}

#bg canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
body {
    color: var(--dark);
    padding-top: 90px;
    position: relative; /* Важно для z-index контекста */
    background: transparent !important; /* Уберите фон у body */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
}

header.scrolled {
    background: linear-gradient(135deg, #1a2a6c, #3a7bd5, #1a2a6c);
    background-size: 200% 200%;
    animation: gradientFlow 15s ease infinite;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo img {
    height: 60px;
    width: auto;
    transition: all 0.4s ease;
}

header.scrolled .logo img {
    height: 50px;
}

/* Navigation */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    transition: all 0.4s ease;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-right: auto;
    margin-left: 10px;
}

.social-icons a {
    color: var(--light);
    font-size: 1.7rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

header.scrolled .social-icons a {
    color: white;
}

/* Booking Button */
.booking-btn-container {
    margin-left: auto;
    z-index: 1001;
}

.btn-book {
    background: var(--gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 35px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    white-space: nowrap;
}

.btn-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/Шапка Сайт.png') center/cover no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: -90px;
}

.hero-content {
    text-align: center;
    color: var(--off-white);
    padding: 0 20px;
    position: absolute;
    bottom: 40%;
    left: 0;
    right: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: rgba(255, 253, 245, 0.9);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 6rem;
    margin: 1rem 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.8rem;
    letter-spacing: 0.5em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: rgba(255, 253, 245, 0.9);
}

.hero-text .heart-emoji {
    opacity: 0;
    transform: scale(0);
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-text:hover .heart-emoji {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.hero-content > * {
    position: relative;
    z-index: 2;
}

/* Services Section */
.services-section {
    padding: 80px 0;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-category {
    margin: 0 auto 50px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    max-width: 1300px;
}

.category-title {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 15px;
    font-size: 1.8rem;
}

.pricing-table {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.service-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #fff5f7;
}

.service-item.highlight {
    background-color: #fff0f5;
    font-weight: 600;
}

.service-name {
    font-family: var(--body-font);
    font-size: 1.1rem;
    color: #333;
}

.service-duration {
    font-family: var(--body-font);
    font-size: 1rem;
    color: #777;
    text-align: center;
}

.service-price {
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

/* Service Helper Section */
.service-helper {
    max-width: 800px;
    margin: 100px auto;
    padding: 80px 20px;
    background: #fff5f7;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.helper-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.helper-steps {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.step.active {
    display: block;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.step h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.option-btn {
    padding: 14px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(255, 107, 154, 0.3);
    z-index: 1;
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 107, 154, 0.4);
    color: white;
}

.option-btn:active {
    transform: translateY(1px);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.back-btn, .restart-btn {
    padding: 12px 24px;
    background-color: #f8f8f8;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.back-btn:hover, .restart-btn:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.result-step {
    text-align: center;
    padding: 30px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.result-step p {
    margin: 15px 0;
    font-size: 18px;
    line-height: 1.6;
}

.result-step strong {
    color: var(--primary);
    font-weight: 600;
}

.result-step .booking-btn-container {
    margin-top: 20px;
}

.result-step .btn-book {
    margin: 0;
}
/* Desktop Social Icons */
.desktop-social-icons {
    display: flex;
    gap: 12px;
    margin-right: auto;
    margin-left: 10px;
}

.desktop-social-icons a {
    color: var(--light);
    font-size: 1.7rem;
    transition: all 0.3s ease;
}

.desktop-social-icons a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

header.scrolled .desktop-social-icons a {
    color: white;
}

/* ===================== Адаптивность =============== */

/* Медиа-запросы для адаптивности */

/* Большие планшеты и маленькие десктопы (1024px - 1200px) */
@media screen and (max-width: 1200px) {
    .hero {
        height: 100vh;
        margin-top: -80px;
    }
    .container {
        max-width: 1000px;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .service-category {
        max-width: 1000px;
        margin: 0 30px 50px;
    }
}

/* Планшеты (768px - 1023px) */
@media screen and (max-width: 1023px) {
    body {
        padding-top: 80px;
    }
    
    .hero {
        height: 100vh;
        margin-top: -80px;
    }
    
    header {
        padding: 20px 4%;
    }
    
    header.scrolled {
        padding: 12px 4%;
    }
    
    .logo img {
        height: 50px;
    }
    
    header.scrolled .logo img {
        height: 40px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 18px;
    }
    
    .social-icons a {
        font-size: 1.5rem;
    }
    
    .btn-book {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle,
    .hero-text {
        font-size: 1.4rem;
        letter-spacing: 0.3em;
    }
    
    .service-category {
        padding: 25px;
        margin: 0 20px 40px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .service-item {
        grid-template-columns: 2fr 1fr;
        gap: 15px;
    }
    
    .service-duration {
        text-align: left;
    }
}

/* Мобильные устройства (576px - 767px) */
@media screen and (max-width: 767px) {
    body {
        padding-top: 70px;
    }
    
    .hero {
        margin-top: -70px;
        height: 100vh;
    }
    
    header {
        padding: 15px 4%;
        flex-wrap: wrap;
    }
    
    .nav-links {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 16px;
    }
    
    .social-icons {
        margin-right: 0;
        margin-left: auto;
        gap: 10px;
    }
    
    .social-icons a {
        font-size: 1.3rem;
    }
    
    .booking-btn-container {
        margin-left: 0;
    }
    
    .btn-book {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero-content {
        bottom: 30%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle,
    .hero-text {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
        margin-bottom: 1rem;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-category {
        padding: 20px;
        margin: 0 10px 30px;
    }
    
    .category-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 15px;
        text-align: center;
    }
    
    .service-duration {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .service-price {
        text-align: center;
        font-size: 1rem;
    }
    
    .service-helper {
        padding: 60px 15px;
        margin: 20px 10px;
    }
    
    .helper-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .helper-steps {
        padding: 20px;
    }
    
    .step h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .option-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .back-btn, .restart-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Маленькие мобильные устройства (до 575px) */
@media screen and (max-width: 575px) {
    body {
        padding-top: 60px;
    }
    
    .hero {
        margin-top: -60px;
        height: 100vh;
    }
    
    header {
        padding: 10px 3%;
    }
    
    header.scrolled {
        padding: 8px 3%;
    }
    
    .logo img {
        height: 40px;
    }
    
    header.scrolled .logo img {
        height: 35px;
    }
    
    .nav-links {
        gap: 8px;
        margin-top: 10px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icons a {
        font-size: 1.2rem;
    }
    
    .btn-book {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .hero-content {
        bottom: 25%;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle,
    .hero-text {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.8rem;
    }
    
    .services-section {
        padding: 40px 0;
    }
    
    .service-category {
        padding: 15px;
        margin: 0 5px 25px;
    }
    
    .category-title {
        font-size: 1.4rem;
    }
    
    .service-name {
        font-size: 1rem;
    }
    
    .service-helper {
        padding: 40px 10px;
    }
    
    .helper-title {
        font-size: 1.5rem;
    }
    
    .options {
        gap: 10px;
    }
    
    .option-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .result-step p {
        font-size: 16px;
    }
}

/* Очень большие экраны (более 1920px) */
@media screen and (min-width: 1921px) {
    .container {
        max-width: 1600px;
    }
    
    .service-category {
        max-width: 1500px;
    }
    
    .hero-title {
        font-size: 7rem;
    }
    
    .hero-subtitle,
    .hero-text {
        font-size: 2.2rem;
    }
}

/* Портретная ориентация */
@media screen and (max-height: 600px) and (orientation: portrait) {
    .hero {
        height: 100vh;
    }
    
    .hero-content {
        bottom: 20%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Ландшафтная ориентация для мобильных */
@media screen and (max-width: 900px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-content {
        bottom: 25%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}