@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;
}

.mobile-social-icons {
    display: none;
}

/* 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: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.4;
    max-width: 680px;
    margin: 2rem auto 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.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;
}

/* Sections */
section {
    position: relative;
    overflow: hidden;
    padding-top: 180px;
    padding-bottom: 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #ff6b88;
    margin: 15px auto 0;
}

/* Benefits Section */
.benefits-section {
    padding-bottom: 0;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #ff6b88;
    margin-bottom: 20px;
}

/* Services CTA */
.services-cta {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.cta-content {
    max-width: 600px;
}

.cta-title {
    font-size: 2.5rem;
    color: #ff6b9a;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.cta-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #ff6b9a;
    border-radius: 2px;
}

.cta-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 30px;
}

.highlight {
    color: #ff6b9a;
    font-weight: 600;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: #ff6b9a;
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 154, 0.3);
}

.cta-button:hover {
    background-color: #e05584;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 154, 0.4);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
    transform: translateX(5px);
}

/* Reviews Section */
.reviews-section {
    animation: waveAnimation 12s ease infinite;
    padding: 100px 20px;
}

@keyframes waveAnimation {
    0%, 100% { background-position: center, 0% 100%, 100% 100%; }
    50% { background-position: center, 100% 50%, 0% 50%; }
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff6b88;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2em;
}

.review-rating {
    color: #ffb400;
    margin: 10px 0;
    font-size: 1.1em;
}

.yandex-reviews-link {
    text-align: center;
    margin-top: 40px;
}

.yandex-reviews-link a {
    color: #ff6b88;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #ff6b88;
    transition: all 0.3s;
    padding: 5px 0;
}

.yandex-reviews-link a:hover {
    color: #e05584;
}

/* Portfolio Section */
.portfolio-section {
    padding-bottom: 150px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-columns {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.portfolio-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-subtitle {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.portfolio-subtitle:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.portfolio-carousel {
    width: 100%;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.square-image-container {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.square-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(255,255,255,1);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #000;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* YouTube Section */
.youtube-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 150px;
}

.youtube-stats {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
}

.subscribe-container {
    text-align: center;
    margin-top: 20px;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: #ff0000;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    z-index: 1;
}

.subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.btn-icon {
    margin-left: 10px;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-icon {
    transform: scale(1.2);
}

.pulse-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Секция контактов с картой */
.contacts-section {
    padding: 80px 0;
    position: relative;
}

.contacts-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacts-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Блок с информацией */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-block {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(157, 97, 207, 0.1);
}

.contact-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(157, 97, 207, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon i {
    font-size: 24px;
    color: black;
}

.contact-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.contact-text {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.contact-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: #9d61cf;
}

.contact-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #777;
    font-size: 14px;
}

.contact-meta i {
    color: #9d61cf;
}

/* Кнопки действий */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-book {
    background: linear-gradient(135deg, #9d61cf 0%, #764ba2 100%);
    color: white;
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(157, 97, 207, 0.3);
}

.btn-direction {
    background: white;
    color: #333;
    border: 2px solid #9d61cf;
}

.btn-direction:hover {
    background: #9d61cf;
    color: white;
    transform: translateY(-2px);
}

/* Стили для карты */
.contacts-map {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.1) contrast(1.1) brightness(1.05);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, 
        transparent 0%,
        transparent 85%,
        rgba(255, 255, 255, 0.3) 100%
    );
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(157, 97, 207, 0.4);
    animation: pulse 2s infinite;
}

.map-marker i {
    font-size: 24px;
    color: #9d61cf;
}

/* 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 - 769px) */
@media (max-width: 1024px) {
    body {
        padding-top: 80px;
    }
    
    header {
        padding: 20px 4%;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 18px;
    }
    
    .desktop-social-icons {
        gap: 10px;
    }
    
    .desktop-social-icons a {
        font-size: 1.5rem;
    }
    
    .btn-book {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    /* Hero Section */
    .hero {
        margin-top: -80px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        letter-spacing: 0.4em;
    }
    
    .hero-text {
        font-size: 1.7rem;
        max-width: 600px;
    }
    
    /* Sections */
    section {
        padding-top: 140px;
        padding-bottom: 100px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .benefit-card {
        padding: 25px;
    }
    
    /* Portfolio */
    .portfolio-columns {
        gap: 30px;
    }
    
    .portfolio-subtitle {
        font-size: 1.8rem;
    }
    
    /* Contacts */
    .contacts-section {
        padding: 60px 0;
    }
    
    .contacts-map-wrapper {
        gap: 40px;
    }
    
    .contacts-map {
        height: 400px;
    }
    
    .contact-block {
        padding: 25px;
    }
    
    .contact-title {
        font-size: 20px;
    }
    
    .contact-text {
        font-size: 15px;
    }
    
    .contact-btn {
        padding: 14px 22px;
        font-size: 15px;
    }
}

/* Планшеты (768px - 577px) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    header {
        padding: 15px 3%;
    }
    
    .logo img {
        height: 45px;
    }
    
    /* Мобильная навигация */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, #1a2a6c, #3a7bd5, #1a2a6c);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        gap: 25px;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 20px;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a:after {
        display: none;
    }
    
    /* Desktop social icons - скрываем */
    .desktop-social-icons {
        display: none;
    }
    
    /* Mobile social icons - показываем */
    .mobile-social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .mobile-social-icons a {
        color: var(--light);
        font-size: 1.8rem;
        transition: all 0.3s ease;
    }
    
    .mobile-social-icons a:hover {
        transform: translateY(-3px);
        opacity: 0.8;
    }
    

    /* Hero Section */
    .hero {
        margin-top: -70px;
    }
    
    .hero-content {
        bottom: 35%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3.5rem;
        line-height: 1;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.3em;
        margin-bottom: 1rem;
    }
    
    .hero-text {
        font-size: 1.4rem;
        max-width: 500px;
        margin-top: 1.5rem;
        line-height: 1.3;
    }
    
    /* Sections */
    section {
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .section-title::after {
        width: 60px;
        height: 2px;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-card {
        padding: 20px;
    }
    
    .benefit-icon {
        font-size: 2.2rem;
    }
    
    /* Portfolio */
    .portfolio-columns {
        flex-direction: column;
        gap: 50px;
    }
    
    .portfolio-column {
        width: 100%;
    }
    
    .portfolio-carousel {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .portfolio-subtitle {
        font-size: 1.6rem;
    }
    
    .portfolio-subtitle:after {
        width: 40px;
        height: 2px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-dots {
        margin-top: 15px;
        gap: 6px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* Services CTA */
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .cta-content {
        max-width: 100%;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
    
    /* YouTube Section */
    .youtube-stats {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .subscribe-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    /* Contacts */
    .contacts-section {
        padding: 50px 0;
    }
    
    .contacts-map-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .contacts-info {
        order: 1;
        width: 100%;
    }
    
    .contacts-map {
        order: 2;
        width: 100%;
        height: 350px;
        margin-top: 10px;
    }
    
    .contact-block {
        padding: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .contact-icon i {
        font-size: 22px;
    }
    
    .contact-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .contact-text {
        font-size: 14px;
    }
    
    .contact-meta {
        font-size: 13px;
    }
    
    .contact-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* Большие смартфоны (576px - 376px) */
@media (max-width: 576px) {
    body {
        padding-top: 65px;
    }
    
    header {
        padding: 12px 3%;
    }
    
    .logo img {
        height: 40px;
    }
    
    .btn-book {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Hero Section */
    .hero {
        margin-top: -65px;
    }
    
    .hero-content {
        bottom: 30%;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.25em;
        margin-bottom: 0.8rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
        margin-top: 1.2rem;
        line-height: 1.4;
    }
    
 
    
    /* Sections */
    section {
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    /* Benefits */
    .benefit-card {
        padding: 18px;
    }
    
    .benefit-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    /* Portfolio */
    .portfolio-subtitle {
        font-size: 1.4rem;
    }
    
    .portfolio-carousel {
        max-width: 100%;
    }
    
    /* YouTube */
    .youtube-stats {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .subscribe-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    /* Contacts */
    .contacts-section {
        padding: 40px 0;
    }
    
    .contacts-map-wrapper {
        gap: 25px;
    }
    
    .contacts-map {
        height: 300px;
    }
    
    .contact-block {
        padding: 18px;
    }
    
    .contact-title {
        font-size: 17px;
    }
    
    .contact-text {
        font-size: 13.5px;
    }
    
    .contact-btn {
        padding: 12px 18px;
        font-size: 13.5px;
    }
}

/* Маленькие смартфоны (375px и меньше) */
@media (max-width: 375px) {
    body {
        padding-top: 60px;
    }
    
    header {
        padding: 10px 3%;
    }
    
    .logo img {
        height: 35px;
    }
    
    .btn-book {
        padding: 9px 18px;
        font-size: 13px;
    }
    
    /* Hero */
    .hero {
        margin-top: -60px;
    }
    
    .hero-content {
        bottom: 28%;
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.2em;
    }
    
    .hero-text {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    /* Navigation */
    .nav-links {
        width: 85%;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 10px 0;
    }
    
    /* Mobile social icons */
    .mobile-social-icons {
        gap: 15px;
    }
    
    .mobile-social-icons a {
        font-size: 1.6rem;
    }
    
    /* Sections */
    section {
        padding-top: 70px;
        padding-bottom: 50px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    /* Portfolio */
    .portfolio-subtitle {
        font-size: 1.3rem;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
    }
    
    .carousel-dots {
        gap: 5px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    /* Contacts */
    .contacts-section {
        padding: 35px 0;
    }
    
    .contacts-map {
        height: 250px;
    }
    
    .contact-block {
        padding: 16px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .contact-icon i {
        font-size: 20px;
    }
    
    .contact-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .contact-text {
        font-size: 13px;
    }
    
    .contact-meta {
        font-size: 12px;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .contact-actions {
        gap: 10px;
    }
    
    .contact-btn {
        padding: 11px 16px;
        font-size: 13px;
    }
}

/* Очень маленькие смартфоны (320px и меньше) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contacts-map {
        height: 220px;
    }
    
    .contact-block {
        padding: 14px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-title {
        font-size: 15px;
    }
    
    .contact-text {
        font-size: 12.5px;
    }
    
    .contact-btn {
        padding: 10px 14px;
        font-size: 12.5px;
    }
}

/* Ландшафтная ориентация для мобильных */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        bottom: 25%;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin: 0.5rem 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 0.2em;
        margin-bottom: 0.5rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    /* Navigation in landscape */
    .nav-links {
        padding-top: 80px;
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
    }
    
    /* Contacts in landscape */
    .contacts-map-wrapper {
        flex-direction: row;
        gap: 20px;
    }
    
    .contacts-info {
        width: 50%;
    }
    
    .contacts-map {
        width: 50%;
        height: 300px;
        margin-top: 0;
    }
}

/* Для высоких устройств (iPhone 12/13 Pro Max) */
@media (min-height: 800px) and (max-width: 430px) {
    .hero-content {
        bottom: 40%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text {
        font-size: 1.3rem;
    }
}

/* iPad Pro и другие большие планшеты */
@media (min-width: 1025px) and (max-width: 1366px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .portfolio-columns {
        gap: 25px;
    }
}

/* Особые стили для iPhone (безопасные зоны) */
@supports (padding: max(0px)) {
    header {
        padding-left: max(25px, env(safe-area-inset-left));
        padding-right: max(25px, env(safe-area-inset-right));
    }
    
    .nav-links {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    @media (max-width: 768px) {
        header {
            padding-left: max(15px, env(safe-area-inset-left));
            padding-right: max(15px, env(safe-area-inset-right));
        }
        
        .nav-links {
            padding-left: max(40px, env(safe-area-inset-left));
            padding-right: max(40px, env(safe-area-inset-right));
        }
    }
    
    @media (max-width: 576px) {
        .contacts-section .container {
            padding-left: max(10px, env(safe-area-inset-left));
            padding-right: max(10px, env(safe-area-inset-right));
        }
    }
}

/* Для ретина-дисплеев */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .contact-block {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .contact-block:hover {
        box-shadow: 0 4px 16px rgba(157, 97, 207, 0.12);
    }
}

/* Отключение анимаций для пользователей, которые предпочитают их уменьшение */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

