/* 
  PROJECT: ПРО•МАСЛО 
  APPROACH: Mobile-First Responsive Architecture
  BREAKPOINTS: 768px (Tablet), 1024px (Desktop), 1280px (Wide)
*/

:root {
    /* Colors */
    --color-bg-light: #FFFFFF;
    --color-bg-gray: #F5F5F7;
    --color-bg-dark: #151515;
    --color-primary: #BA0038;
    --color-primary-hover: #90002A;
    --color-text-main: #2D2D2D;
    --color-text-mutted: #666666;
    --color-text-light: #EFEFEF;
    --color-border: #E0E0E0;

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --font-heading: 'Unbounded', sans-serif;

    /* Spacing & Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Mobile-First Defaults */
    --section-padding: 60px 0;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    padding-bottom: 90px; /* Space for mobile sticky CTA panel */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Icons */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Extreme tight mobile screens */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
}

.section {
    padding: var(--section-padding);
}

.section--bg {
    background-color: var(--color-bg-gray);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-mutted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Mobile Components (0px+) --- */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
    transition: var(--transition);
}

.header__container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__img {
    height: 20px;
    width: auto;
}

.nav {
    display: none; /* Hidden on mobile */
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__phone, 
.header__actions .btn {
    display: none; /* Hidden on mobile by default */
}

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--color-bg-dark);
    transition: var(--transition);
}

.burger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__content {
    width: 100%;
    padding: 40px 20px;
}

.mobile-nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.mobile-nav__link {
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hero */
.hero {
    position: relative;
    padding: 100px 0 60px;
    background: var(--color-bg-gray);
    overflow: hidden;
}

.hero__video-bg, 
.hero__video-overlay, 
.hero__pattern-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__video-overlay { background: rgba(255,255,255,0.9); z-index: 1; }
.hero__pattern-bg { 
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-word;
    letter-spacing: -0.02em;
}

.hero__title span { color: var(--color-primary); }

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-mutted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero__benefits {
    margin-bottom: 35px;
}

.hero__benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.hero__benefits .icon { color: var(--color-primary); flex-shrink: 0; }

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.hero__visual {
    display: none; /* Displayed on larger screens */
}

.hero__master-img {
    width: 100%;
    height: 100%;
    max-height: 1000px;
    object-fit: contain;
    object-position: bottom;
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card__image-wrapper {
    margin: -30px -30px 25px -30px;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg-gray);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card__desc {
    color: var(--color-text-mutted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-card__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
}

.service-card__btn svg {
    width: 20px;
    height: 20px;
}

/* Bonus Banner */
.bonus-banner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 40px;
}

.bonus-banner__icon { font-size: 2rem; }

.bonus-banner__content strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 5px;
}

/* Advantages */
.advantages {
    overflow: hidden;
}

.advantages__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.adv-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    height: 100%;
}

.adv-card__icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(186, 0, 56, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.adv-card__icon svg {
    width: 32px;
    height: 32px;
}

.adv-card__dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 2px solid var(--color-bg-dark);
}

.adv-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.adv-card__desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Process */
.process__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.step__number {
    width: 50px;
    height: 50px;
    background: var(--color-bg-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 20px;
}

.step__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 10px;
}

/* Process */
.process__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.step__number {
    width: 50px;
    height: 50px;
    background: var(--color-bg-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 20px;
}

.step__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 10px;
}

/* Booking CTA Section */
.booking__container {
    max-width: 900px;
}

.booking__content--centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.booking__subtitle {
    color: var(--color-text-mutted);
    font-size: 1.125rem;
    max-width: 600px;
}

.booking__actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.form__disclaimer {
    font-size: 0.875rem;
    color: var(--color-text-mutted);
}

.booking__perks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.perk-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.perk-item__icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.perk-item h4 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    color: white;
    background: var(--color-bg-dark);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 5px;
}

.perk-item p {
    font-size: 0.875rem;
    color: var(--color-text-mutted);
}

/* Gallery Section */
.gallery {
    overflow: hidden;
    padding-top: 0;
}

.gallery__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 5px;
}

.gallery__item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Contacts */
.contacts__wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contacts__list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contacts__list svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contacts__list strong { display: block; color: white; margin-bottom: 5px; }

.contacts__map {
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Footer Overrides */
.footer {
    padding-bottom: 40px;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer__desc {
    margin-bottom: 20px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

/* Sticky Mobile CTA Panel (Replaced floating button) */
.sticky-cta-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--color-border);
    /* padding handles iOS home bar spacing implicitly */
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    display: flex;
}

.sticky-cta-panel .btn {
    width: 100%; /* Spans full container minus grid margins */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
}

/* --- Tablet (min-width: 768px) --- */
@media (min-width: 768px) {
    :root { --section-padding: 80px 0; }
    
    .hero { padding: 160px 0 100px; }
    .hero__container { flex-direction: row; align-items: center; gap: 40px; }
    .hero__visual { display: block; flex: 1; }
    .hero__content { flex: 1.2; }
    .hero__actions { flex-direction: row; }
    
    .logo__img { height: 26px; }
    
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    
    .advantages__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    
    .process__steps { grid-template-columns: repeat(2, 1fr); }
    
    .booking__perks-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    
    .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .gallery__img { height: 240px; }
    
    .bonus-banner { flex-direction: row; text-align: left; align-items: center; }
    
    .sticky-cta-panel { display: none; } /* Hide on tablet */
    body { padding-bottom: 0 !important; }
    
    .header__phone { display: block; font-weight: 700; }
}

/* --- Desktop (min-width: 1024px) --- */
@media (min-width: 1024px) {
    .nav { display: block; }
    .nav__list { display: flex; gap: 35px; }
    .burger-menu { display: none; }
    
    .logo__img { height: 32px; }
    
    .header__actions .btn { display: inline-flex; }
    
    .hero__content { flex: 1.4; padding-right: 20px; }
    .hero__visual { flex: 1; transform: scale(1.5); transform-origin: bottom right; }
    .hero__title { font-size: 2.6rem; word-break: normal; hyphens: none; }
    
    .services__grid { grid-template-columns: repeat(4, 1fr); gap: 30px; }
    
    .advantages__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .adv-card__icon svg { width: 48px; height: 48px; }
    
    .process__steps { grid-template-columns: repeat(4, 1fr); }
    
    .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .gallery__img { height: 280px; }
    
    .contacts__wrapper { flex-direction: row; }
    .contacts__info { flex: 1; }
    .contacts__map { flex: 1.2; height: auto; min-height: 500px; }
    
    .footer__container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }
    
    .footer__links ul { flex-direction: row; gap: 24px; }
    .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* --- Wide (min-width: 1280px) --- */
@media (min-width: 1280px) {
    .container { max-width: 1200px; }
    .hero__container { gap: 100px; }
    .hero__visual { transform: scale(1.6); transform-origin: bottom right; }
}

/* Universal Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn--primary { background: var(--color-primary); color: white; }
.btn--primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(186, 0, 56, 0.3); }

.btn--secondary { background: var(--color-bg-dark); color: white; }
.btn--secondary:hover { background: #000; transform: translateY(-2px); }

/* Promo Custom Animations overrides */
.promo {
    padding: 60px 0;
}

.promo__box {
    position: relative;
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0a0a0a 100%);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.promo__bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.promo__content {
    position: relative;
    z-index: 1;
}

.promo__visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@media (min-width: 992px) {
    .promo__box {
        grid-template-columns: 1fr 1fr;
        display: grid;
        text-align: left;
        padding: 60px 40px;
        align-items: center;
    }
    
    /* On desktop, text left, image right */
    .promo__content { padding-right: 40px; }
}

.promo__countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 30px;
}

@media (min-width: 992px) {
    .promo__countdown {
        justify-content: flex-start;
    }
}

.countdown__item {
    background: var(--color-bg-dark);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    min-width: 70px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.countdown__item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

.countdown__item label {
    font-size: 0.6rem;
    color: var(--color-text-mutted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    display: block;
}

.promo__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #FFF;
}

.promo__title span {
    color: var(--color-primary);
}

.promo__desc {
    font-size: 1rem;
    color: #A0A0A0;
    margin-bottom: 32px;
}

.promo__img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.7s ease-out; }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 0.7s ease-out; }
.reveal-left.active, .reveal-right.active { opacity: 1; transform: translate(0, 0); }

/* Fix Hero Typography for tiny screens */
@media (max-width: 340px) {
    .hero__title { font-size: 0.85rem; letter-spacing: -0.04em; }
    .header { height: 60px; }
}

/* Reviews Wrapper (Centered Widget) */
.reviews__widget-wrapper {
    margin: 40px auto 0;
    max-width: 600px; /* Safe bounds for mobile iframe */
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

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

.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }

.modal__content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    z-index: 2001;
}

@media (min-width: 768px) {
    .modal__content {
        padding: 40px 30px;
    }
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-mutted);
}

.modal__close svg { width: 24px; height: 24px; }
.modal__title { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; padding-right: 30px; }

.price-section h4 {
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
    color: var(--color-primary);
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}