/* ====================================================
   Oilster SERVICES WEBSITE - MAIN STYLESHEET
   Organized & Structured
   ==================================================== */

/* ----------------------------------------------------
   1. VARIABLES & GLOBAL RESETS
   ---------------------------------------------------- */
:root {
    /* Color Scheme */
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --dark-gray: #222222;
    --medium-gray: #333333;
    --light-gray: #f5f5f5;
    --primary-orange: #FF6B00;
    --light-orange: #FF8C42;
    --primary-white: #ffffff;
    --light-bg: #f0f0f0;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 40px 0;
    --card-padding: 30px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index layers */
    --z-negative: -1;
    --z-base: 1;
    --z-overlay: 100;
    --z-menu: 1000;
    --z-frame: 1000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-white);
    background-color: var(--primary-black);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ----------------------------------------------------
   2. TYPOGRAPHY
   ---------------------------------------------------- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-orange);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.6rem;
    color: var(--primary-orange);
}

p {
    margin-bottom: 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

/* ----------------------------------------------------
   3. ANCHOR OFFSET (Scroll Margin)
   ---------------------------------------------------- */
:target, 
.anchor-offset {
    scroll-margin-top: 100px;
}

.anchor-offset {
    position: relative;
}

@supports not (scroll-margin-top: 100px) {
    .anchor-offset::before {
        content: '';
        display: block;
        height: 100px;
        margin-top: -100px;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ----------------------------------------------------
   4. HEADER & NAVIGATION
   ---------------------------------------------------- */
header {
    background-color: var(--secondary-black);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: var(--z-menu);
    border-bottom: 4px solid var(--primary-orange);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Header */
.mobile-header-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background-image: url('../images/oilsterlogo2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    border: 2px solid var(--primary-orange);
}

.company-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-orange);
}

/* Social Icons - Shared Styles */
.social-icons,
.mobile-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.mobile-social-icons {
    margin-left: auto;
    margin-right: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-color: var(--primary-orange);
    transition: transform var(--transition-normal);
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Social Icons - SVG Masks */
.instagram-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
}

.telegram-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.509l-3-2.21-1.446 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.022c.242-.213-.054-.333-.373-.121l-6.871 4.326-2.962-.924c-.643-.204-.657-.643.136-.953l11.57-4.461c.538-.196 1.006.128.832.941z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.509l-3-2.21-1.446 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.022c.242-.213-.054-.333-.373-.121l-6.871 4.326-2.962-.924c-.643-.204-.657-.643.136-.953l11.57-4.461c.538-.196 1.006.128.832.941z'/%3E%3C/svg%3E");
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--primary-orange);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: all var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-white);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-orange);
    margin: 5px 0;
    transition: all var(--transition-normal);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: -200px;
    width: 200px;
    background-color: var(--secondary-black);
    z-index: var(--z-menu);
    padding: 20px 0;
    transition: right var(--transition-normal);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.5);
    border-left: 2px solid var(--primary-orange);
    border-bottom: 4px solid var(--primary-orange);
    border-radius: 0 0 0 10px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 15px 25px;
    border-bottom: 1px solid var(--primary-orange);
    display: block;
    text-align: left;
    transition: all var(--transition-normal);
}

.mobile-nav-link:hover {
    color: var(--medium-gray);
    background-color: rgba(255, 107, 0, 0.1);
    padding-left: 30px;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: calc(var(--z-menu) - 1);
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* ----------------------------------------------------
   5. HERO SECTION
   ---------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-black);
    border-bottom: 2px solid var(--primary-orange);
    z-index: var(--z-negative);
}

/* Hero Content */
.hero-content-wrapper {
    display: flex;
    align-items: center;
    min-height: 35vh;
    padding: 60px 0 80px;
}

.hero-text {
    flex: 1;
    text-align: center;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 2rem;
    color: var(--primary-white);
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-text h1 span {
    color: var(--primary-orange);
    font-size: 2rem;
}

.hero-text .hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-white);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-text .hero-phone {
    font-size: 1.2rem;
    color: var(--primary-orange);
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
}

/* Desktop Hero */
.hero-desktop-view {
    display: none;
}

.hero-map-side {
    flex: 1;
}

/* Map - Shared Styles */
.map-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 250px;
    border: 2px solid var(--medium-gray);
}

.hero-map-side .map-container {
    height: 250px;
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.static-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.map-overlay span {
    color: white;
    background-color: var(--primary-orange);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-link:hover .static-map {
    transform: scale(1.05);
}

.map-link:hover .map-overlay {
    opacity: 1;
}

/* Mobile Hero */
.hero-mobile-view {
    display: block;
    padding: 40px 0;
}

.mobile-map-container {
    display: block;
    width: 100%;
    padding: 0 20px 40px;
    z-index: var(--z-base);
    position: relative;
}

.mobile-map-container .map-container {
    margin: 0 auto;
}

/* ----------------------------------------------------
   6. SERVICES SECTION - MAIN CARDS
   ---------------------------------------------------- */
.services {
    padding: var(--section-padding);
    background-color: var(--secondary-black);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--medium-gray);
    border-radius: 10px;
    padding: var(--card-padding);
    padding-bottom: 100px;
    border: 2px solid var(--light-orange);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-orange);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}


.service-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    color: var(--primary-white);
    font-size: 1.6rem;
}

.service-content p {
    color: var(--light-gray);
    text-align: center;
    line-height: 1.6;
}

#service-features-id h3 {
    color: var(--primary-orange);
    margin-bottom: 10px;
    font-size: 1.1rem;
	text-align: left;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--light-gray);
}

.service-list li:before {
    content: '✓';
    color: var(--primary-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ----------------------------------------------------
   7. SERVICE BUTTON - Main CTA (Always at bottom)
   ---------------------------------------------------- */
   
/* Services Buttons Container */
.services-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
}

.service-btn {
    /* Layout */
    margin-top: auto;
    align-self: center;
    display: inline-block;
    width: auto;
    min-width: 180px;
    
    /* Appearance - Transparent */
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    border-radius: 50px;
    
    /* Text */
    color: var(--primary-orange);
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    
    /* Spacing */
    padding: 12px 24px;
    
    /* Interaction */
    cursor: pointer;
    transition: all var(--transition-normal);
}

.service-btn:hover {
    background: var(--light-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.25);
}

/* ----------------------------------------------------
   8. FRAME / MODAL COMPONENTS
   ---------------------------------------------------- */
.frame-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-frame);
    align-items: center;
    justify-content: center;
    /* Убираем overflow отсюда */
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.frame-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1100px;
    max-height: 85vh;
    background: var(--dark-gray);
    border-radius: 16px;
    box-shadow: 0 25px 50px -8px rgba(0, 0, 0, 0.6);
    overflow-y: auto; /* По умолчанию вертикальная прокрутка */
    z-index: calc(var(--z-frame) + 1);
    border: 1px solid var(--light-gray);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.frame-content {
    padding: 40px 30px;
}

/* Close Button */
.close-btn {
    position: sticky;/* Липкое позиционирование */
    top: 15px;
    right: 20px;
    float: right; /* Прижимаем к правому краю */
    z-index: calc(var(--z-frame) + 2);
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Добавляем margin для отступа от правого края */
    margin-right: 20px;
    margin-top: 15px;
}

.close-btn:hover {
    background: var(--primary-orange);
    transform: rotate(90deg);
}


/* Frame Title */
.frame-title {
    color: var(--primary-white);
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.frame-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

/* Frame Content Cards - базовые стили для всех устройств */
.frame-content .services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
}

.frame-content .service-card {
    background-color: var(--medium-gray);
    border-radius: 10px;
    padding: var(--card-padding);
    border: 2px solid var(--light-gray);
}

.frame-content .service-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.frame-content .service-card p {
    color: var(--white);
    margin-bottom: 0;
    text-align: center;
    line-height: 1.6;
}

/* Frame Content Visibility */
#frame-content .service-content {
    display: none;
}

#frame-content .service-content.active {
    display: block;
}

/* ----------------------------------------------------
   ДЕСКТОПНАЯ ВЕРСИЯ - ГОРИЗОНТАЛЬНАЯ ПРОКРУТКА
   ---------------------------------------------------- */
@media screen and (min-width: 1024px) {
    .frame-content-wrapper {
        overflow-x: auto;      /* Горизонтальная прокрутка */
        overflow-y: hidden;    /* Отключаем вертикальную */
        white-space: nowrap;   /* Запрещаем перенос */
    }
    
    .frame-content {
        display: inline-flex;  /* Контент в одну строку */
        padding: 40px 30px;
        min-width: min-content; /* Минимальная ширина по контенту */
        gap: 30px;             /* Расстояние между карточками */
    }
    
    .frame-content .services-container {
        display: flex;         /* Меняем grid на flex */
        flex-wrap: nowrap;     /* Запрещаем перенос */
        gap: 30px;
        margin: 0;
        width: auto;
    }
    
    .frame-content .service-card {
        width: 320px;          /* Фиксированная ширина карточек */
        flex-shrink: 0;        /* Запрещаем сжатие */
        margin: 0;             /* Убираем возможные отступы */
    }
    
    /* Стилизация полосы прокрутки */
    .frame-content-wrapper::-webkit-scrollbar {
        height: 8px;
    }
    
    .frame-content-wrapper::-webkit-scrollbar-track {
        background: var(--light-gray);
        border-radius: 8px;
    }
    
    .frame-content-wrapper::-webkit-scrollbar-thumb {
        background: var(--primary-orange);
        border-radius: 8px;
    }
    
    .frame-content-wrapper::-webkit-scrollbar-thumb:hover {
        background: var(--primary-orange);
        opacity: 0.8;
    }
}

/* ----------------------------------------------------
   МОБИЛЬНАЯ ВЕРСИЯ - ВЕРТИКАЛЬНАЯ ПРОКРУТКА
   ---------------------------------------------------- */
@media screen and (max-width: 1023px) {
    .frame-content .services-container {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 20px;
    }
    
    .frame-content .service-card {
        width: 100%; /* Полная ширина */
    }
}
/* Price badge */
        .price-badge {
            position: absolute;
            bottom: 15px;   
            right: 15px;    
            
            width: 85px;    /* Circle */
            height: 85px;
            
            display: flex;
            align-items: center;
            justify-content: center;
            
            border: 4px solid var(--primary-orange);
            border-radius: 50%;
            
            color: var(--primary-orange);
            font-size: 32px;  
            font-weight: bold;
            
            /* Rotation same as pictures */
            transform: rotate(10deg);
            background-color: rgba(243, 130, 34, 0.05); /* Light shadows */
        }
		
/* Ristriction badge */
        .restriction {
            position: absolute;
            bottom: 80px;   
            left: 50px;    
            
            width: 200px;    /* Circle */
            height: 85px;
            
            display: flex;
            align-items: center;
            justify-content: center;
            
            border: 2px solid var(--primary-orange);
            
            color: var(--primary-orange);
            font-size: 16px;  
            font-weight: bold;
            
            /* Rotation same as pictures */
            transform: rotate(-10deg);
            background-color: rgba(243, 130, 34, 0.05); /* Light shadows */
        }

/* ----------------------------------------------------
   9. CONTACTS SECTION
   ---------------------------------------------------- */
.contacts {
    padding: var(--section-padding);
    background-color: var(--secondary-black);
}

.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info h2 {
    text-align: left;
    font-size: 3rem;
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Contact Icons */
.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon-inner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
}

.contact-text h4 {
    color: var(--primary-orange);
    margin-bottom: 5px;
    margin-top: 0;
}

.contact-text p,
.contact-text a {
    color: var(--primary-white);
    margin-bottom: 4px;
    transition: color var(--transition-normal);
}

.contact-text a:hover {
    color: var(--primary-orange);
}

/* ----------------------------------------------------
   10. FOOTER
   ---------------------------------------------------- */
footer {
    background-color: var(--primary-black);
    padding: 15px 0 0;
    border-top: 2px solid var(--primary-orange);
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.footer-email {
    color: var(--primary-white);
    font-size: 1.1rem;
    text-align: center;
}

.footer-email a {
    color: var(--primary-white);
    transition: color var(--transition-normal);
}

.footer-email a:hover {
    color: var(--primary-orange);
}

.footer-divider {
    width: 80%;
    height: 2px;
    background-color: var(--primary-orange);
    margin: 5px 0;
}

.footer-copyright {
    color: #CCCCCC;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.4;
    padding: 0 15px;
}

.footer-spacing {
    height: 100px;
}

/* ----------------------------------------------------
   11. FIXED BOOKING BUTTON
   ---------------------------------------------------- */
.fixed-booking-btn {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background-color: var(--primary-orange);
    color: white;
    padding: 20px 40px;
    border-radius: 30px;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    z-index: var(--z-menu);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
    min-width: 220px;
    text-align: center;
}

.fixed-booking-btn:hover {
    background-color: var(--light-orange);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

/* ----------------------------------------------------
   12. ANIMATIONS
   ---------------------------------------------------- */
@keyframes idleBounce {
    0%, 85%, 100% { transform: translateY(0) rotate(0deg); }
    88% { transform: translateY(-6px) rotate(5deg); }
    91% { transform: translateY(6px) rotate(-5deg); }
    94% { transform: translateY(-3px) rotate(3deg); }
}

/* ----------------------------------------------------
   13. UTILITIES
   ---------------------------------------------------- */
#scrollUp {
    z-index: var(--z-menu) !important;
}

/* ----------------------------------------------------
   14. MEDIA QUERIES - Mobile First Approach
   ---------------------------------------------------- */

/* Tablet (max-width: 900px) */
@media (max-width: 900px) {
    .services-container,
    .frame-content .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Layout */
    .services-container,
    .frame-content .services-container {
        grid-template-columns: 1fr;
        gap: 25px;
		grid-template-columns: 1fr;
        padding: 20px; /* Отступ контейнера от краев экрана */
    }
    
.service-card {
        display: flex;
        flex-direction: column;
        position: relative; 
        height: 100%; /* Чтобы все карточки в ряду были одной высоты */
    }
    
    .frame-content {
        padding: 30px 20px;
    }
    
    .frame-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 28px;
    }

@media (max-width: 768px) {
    /* 1. Усиливаем селектор, чтобы перебить любые другие стили */
    .services-container .service-card {
        display: flex;
        flex-direction: column;
        padding: 25px 20px !important; /* Явно задаем паддинг здесь */
        height: auto; 
        min-height: 100%;
    }

    /* 2. Контейнер для текста */
    .service-card .service-content {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        /* Убедимся, что здесь нет фиксированной высоты */
        height: auto; 
    }

    /* 3. Блок с кнопкой */
    .service-card .services-buttons {
        position: relative; /* Убирает наложение */
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* 4. Сама кнопка */
    .service-card .service-btn {
        position: static;
        width: 60%; /* Или 100%, как вам нравится */
        display: block;
    }
}

}	
/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
.service-card {
        /* Добавляем отступ снизу, чтобы текст не прилипал к кнопке */
        padding: 25px 20px 20px 20px; 
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .frame-content {
        padding: 25px 15px;
    }
    
    .frame-title {
        font-size: 22px;
    }
    
.service-btn {
        margin-top: 20px; /* Гарантированный минимальный зазор над кнопкой */
        width: 60%; /* На совсем маленьких экранах кнопка на всю ширину удобнее */
    }
    
    .hero-text h1,
    .hero-text h1 span {
        font-size: 2rem !important;
    }
    
    .hero-text .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    .hero-text .hero-phone {
        font-size: 1.5rem !important;
    }
    
    .mobile-map-container .map-container {
        height: 200px;
    }
}

/* Desktop (min-width: 768px) */
@media (min-width: 768px) {
    /* Header */
    .mobile-menu-btn,
    .mobile-social-icons {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    
    .mobile-header-wrapper {
        flex-grow: 0;
    }
    
    /* Hero */
    .hero-desktop-view {
        display: block;
    }
    
    .hero-mobile-view,
    .mobile-map-container {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-text .hero-phone {
        font-size: 2.5rem;
    }
    
    /* Services */
    .services-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Contacts */
    .contacts-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 20px;
    }
    
    .contact-item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
        padding: 0 20px;
    }
    
    .contact-item:nth-child(2) {
        border-left: 1px solid var(--medium-gray);
        border-right: 1px solid var(--medium-gray);
    }
    
    .contact-icon {
        display: flex;
        margin-right: 0;
        margin-bottom: 15px;
        width: 50px;
        height: 50px;
    }
    
    .contact-icon-inner {
        width: 24px;
        height: 24px;
    }
    
    .contact-text h4 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .contact-text p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }
    
    .footer-main {
        flex-direction: row;
        align-items: center;
        gap: 30px;
        width: auto;
    }
    
    .footer-email {
        text-align: left;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-copyright {
        text-align: right;
        padding: 0;
        font-size: 0.95rem;
    }
    
    .desktop-break {
        display: none;
    }
    
    .footer-spacing {
        height: 80px;
    }
    
    /* Map Fixes */
    section#about .mobile-map-container {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Large Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .hero-content-wrapper {
        min-height: 40vh;
        padding: 80px 0 100px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-map-side .map-container {
        height: 300px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
}

/* Extra Large Desktop (min-width: 1200px) */
@media (min-width: 1200px) {
    .footer-content {
        padding: 0;
    }
}

/* Mobile-Only Styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Hero Mobile Fixes */
    .hero-mobile-view {
        display: block;
        min-height: 250px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
        padding-right: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .hero-text h1,
    .hero-text h1 span,
    .hero-text .hero-subtitle,
    .hero-text .hero-phone {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
    }
    
    .hero-text h1 span {
        font-size: 2.5rem !important;
    }
    
    .hero-text .hero-phone {
        font-size: 1.8rem !important;
        display: block !important;
    }
    
    /* Mobile Map Container */
    .mobile-map-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        width: 100% !important;
    }
    
    section#about .mobile-map-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: var(--z-base) !important;
        height: auto !important;
        width: 100% !important;
        padding: 0 20px 40px !important;
        margin-top: 0 !important;
    }
    
    section#about .mobile-map-container .map-container {
        display: block !important;
        visibility: visible !important;
        height: 250px !important;
    }
    
    /* Services */
    .service-card {
        padding: 20px;
    }
    
    /* Contacts Mobile */
    .contacts-container {
        gap: 15px;
    }
    
    .contact-info h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .contact-details {
        margin-bottom: 0;
    }
    
    .contact-item {
        margin-bottom: 15px;
        align-items: center;
        text-align: center;
        flex-direction: column;
    }
    
    .contact-icon {
        display: none;
    }
    
    .contact-text h4 {
        margin-bottom: 8px;
        font-size: 1.3rem;
    }
    
    .contact-text p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .contact-text a {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    /* Footer */
    footer {
        padding: 20px 0;
    }
    
    /* Booking Button */
    .fixed-booking-btn {
        padding: 18px 36px;
        font-size: 1.1rem;
        min-width: 200px;
        bottom: 15px;
    }
    
}

/* Fix for section#about map */
section#about .mobile-map-container {
    unicode-bidi: normal !important;
}

/* Additional Service Content Cards */
.servicesadd-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
}

.serviceadd-card {
    background-color: var(--medium-gray);
    border-radius: 10px;
    padding: var(--card-padding);
    border: 2px solid var(--light-gray);
}

.serviceadd-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
	color: var(--light-gray);
    text-align: center !important;
}

.serviceadd-card p {
    color: var(--white);
    margin-bottom: 0;
    text-align: center;
    line-height: 1.6;
}

.serviceadd-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.serviceadd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-orange);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.serviceadd-card:hover::before {
    transform: scaleX(1);
}