:root {
    --primary-color: #D4AF37;
    --secondary-color: #1a1a1a;
    --accent-color: #C9302C;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --bg-light: #f8f8f8;
    --bg-dark: #0a0a0a;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling on all devices */
html {
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
}

/* Section Background Styles */
section[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative !important;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 2s forwards;
    animation-delay: 1s;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--bg-dark);
    color: var(--white);
    padding: 10px 0;
}

.header-top-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-contacts {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-contacts a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.header-contacts a:hover {
    color: var(--primary-color);
}

.header-contacts i {
    margin-right: 8px;
    color: var(--primary-color);
}

.header-time {
    font-size: 14px;
    color: #999;
}

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

.messenger-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 16px;
}

.messenger-link:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-calculate {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: var(--bg-dark);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #b8941f 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.header-main {
    padding: 15px 0;
    width: 100%;
    overflow: hidden;
}

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

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

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Старые стили для текстового логотипа (на случай fallback) */
.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo-accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    margin: 3px 0;
    transition: var(--transition);
    position: absolute;
}

.hamburger span:nth-child(1) {
    top: 8px;
}

.hamburger span:nth-child(2) {
    top: 14px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

/* Navigation overlay for mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    padding: 120px 0 80px;
    /* background теперь задается через админку */
    overflow: hidden;
}

/* Вертикальное выравнивание для hero */
.hero[data-vertical-align="top"],
.hero .hero-content[data-vertical-align="top"] {
    align-items: flex-start;
}

.hero[data-vertical-align="center"],
.hero .hero-content[data-vertical-align="center"] {
    align-items: center;
}

.hero[data-vertical-align="bottom"],
.hero .hero-content[data-vertical-align="bottom"] {
    align-items: flex-end;
}

/* По умолчанию - центр */
.hero {
    align-items: center;
}

/* .hero-bg удален - теперь фон задается через админку */

/* .hero-overlay теперь генерируется динамически через PHP */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    color: #cccccc;
}

.hero-features {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

/* Выравнивание элементов в зависимости от text-align */
.hero-content[style*="text-align: center"] .hero-features {
    justify-content: center;
}

.hero-content[style*="text-align: right"] .hero-features {
    justify-content: flex-end;
}

.hero-content[style*="text-align: center"] .hero-cta {
    margin: 0 auto;
}

.hero-content[style*="text-align: right"] .hero-cta {
    margin-left: auto;
    margin-right: 0;
}

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

.hero-feature-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.hero-feature-label {
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: var(--bg-dark);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.35);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #b8941f 0%, #D4AF37 100%);
}

.btn-primary:hover::before {
    left: 100%;
}

.hero-partners {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

/* Медиа запрос для hero секции */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }
    
    .hero-features {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .hero-cta {
        margin: 0 auto !important;
        display: block;
        width: fit-content;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
}

.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    opacity: 0.8;
    transition: var(--transition);
}

.partner-logo img {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: var(--bg-dark);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-light);
    font-weight: 300;
}

/* Calculator Section */
.calculator {
    /* background теперь задается через админку */
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.calculator-main {
    width: 100%;
}

/* Progress Bar */
.calculator-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #b8941f 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s;
    z-index: 2;
}

.progress-step.active .progress-step-circle {
    background: #D4AF37;
    color: white;
    transform: scale(1.1);
}

.progress-step.completed .progress-step-circle {
    background: #28a745;
    color: white;
}

.progress-step-label {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: #D4AF37;
    font-weight: 600;
}

.calculator-form {
    position: relative;
}

.calculator-step {
    display: none;
}

.calculator-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculator-question {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.calculator-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.calculator-option {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.calculator-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.calculator-option.selected {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: var(--white);
    border-color: #D4AF37;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.35);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--white);
    padding: 0 5px;
    font-size: 14px;
    color: var(--text-light);
}

.calculator-buttons {
    display: flex;
    justify-content: space-between;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.calculator-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.calculator-gift {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 50%, #D4AF37 100%);
    color: var(--bg-dark);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.calculator-gift::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.calculator-gift i {
    font-size: 48px;
    margin-bottom: 20px;
}

.calculator-gift h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Calculator Result */
.calculator-result {
    animation: fadeIn 0.5s;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-header i {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}

.result-header h3 {
    font-size: 32px;
    color: var(--secondary-color);
}

.result-prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.price-option {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.price-option:hover {
    transform: translateY(-10px);
}

.price-option.featured {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: white;
    transform: scale(1.05);
}

.price-option .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4757;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-option h4 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price-value {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.price-value .currency {
    font-size: 24px;
    margin-right: 5px;
}

.price-value .amount {
    font-size: 48px;
    font-weight: 700;
}

.price-features {
    list-style: none;
    padding: 0;
    text-align: left;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.price-features li i {
    color: #28a745;
    margin-right: 10px;
}

.price-option.featured .price-features li i {
    color: white;
}

/* Calculator Benefits */
.calculator-benefits {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.calculator-benefits h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.calculator-benefits ul {
    list-style: none;
    padding: 0;
}

.calculator-benefits li {
    padding: 12px 0;
    display: flex;
    align-items: center;
}

.calculator-benefits li i {
    color: #D4AF37;
    margin-right: 15px;
    font-size: 20px;
}

/* Calculator Trust */
.calculator-trust {
    display: grid;
    gap: 15px;
}

.trust-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-item i {
    font-size: 24px;
    color: #D4AF37;
}

.trust-item span {
    font-size: 14px;
    color: var(--text-color);
}

/* Result Form */
.result-form {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.result-form h4 {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-large i {
    font-size: 24px;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: var(--bg-light);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
}

.director-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.director-photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info {
    padding: 30px;
}

.director-info h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.director-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.director-info blockquote {
    font-style: italic;
    color: var(--text-light);
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

/* Products Section */
.products {
    /* background теперь задается через админку */
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 30px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.products-partners .partner-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.products-partners .partner-logo:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.advantage-item {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.advantage-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Price List Section */
.price-list {
    /* background теперь задается через админку */
    color: var(--white);
}

.price-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.price-content .section-title {
    color: var(--white);
}

.price-content .section-subtitle {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 600;
}

.price-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #cccccc;
}

.price-cta {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.35);
    transition: all 0.3s ease;
}

.price-cta:hover {
    background: linear-gradient(135deg, #b8941f 0%, #D4AF37 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.price-cta i {
    font-size: 20px;
}

.price-preview {
    position: relative;
}

.price-preview img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

/* Portfolio Section */
.portfolio {
    /* background теперь задается через админку */
}

.portfolio-gallery {
    max-width: 100%;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

/* На мобильных устройствах показываем текст сразу */
@media (max-width: 768px) {
    .portfolio-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4));
        padding: 15px 20px;
    }
    
    .portfolio-item {
        height: 280px;
    }
    
    .portfolio-title {
        font-size: 16px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
        font-weight: 700;
    }
}

/* Для сенсорных устройств */
@media (hover: none) and (pointer: coarse) {
    .portfolio-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4));
    }
    
    .portfolio-title {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    }
}

/* Delivery Section */
.delivery-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

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

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-light);
}

.delivery-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

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

.delivery-stat-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.delivery-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-price {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin-top: 20px;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    /* background теперь задается через админку */
}

.map-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 500px;
}

/* Стили для кнопки активации карты */
.map-activation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(26, 26, 26, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-activation-overlay:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.98), rgba(26, 26, 26, 0.98));
}

.map-activation-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.map-activation-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.map-activation-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.map-activation-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: white;
}

.btn-activate-map {
    background: var(--primary-color);
    color: var(--secondary);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-activate-map:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.map-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    z-index: 1;
    pointer-events: none;
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}


.map-placeholder {
    margin-top: 40px;
    padding: 100px 20px;
    background: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-placeholder p {
    color: #6c757d;
    font-size: 18px;
}

@media (max-width: 768px) {
    .map-section {
        padding: 60px 0;
    }
    
    .map-container iframe {
        height: 350px;
    }
}

/* Process Section */
.process {
    /* background теперь задается через админку */
}

.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.process-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #b8941f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin-right: 30px;
}

.process-content {
    flex: 1;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.process-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-duration {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 10px;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.partner-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.partner-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

/* Gallery Section */
.gallery {
    /* background теперь задается через админку */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--text-light);
    font-size: 14px;
}

.blog-title {
    font-size: 22px;
    margin: 10px 0;
    color: var(--text-dark);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* CTA Section */
.cta {
    /* background теперь задается через админку */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-wrapper {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    /* background теперь задается через админку */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), #b8941f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Statistics Section */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 400;
}

.stat-label {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
}

.stat-description {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 14px;
}

/* Certificates Section */
.certificates {
    /* background теперь задается через админку */
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.certificate-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.certificate-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.certificate-image {
    width: 100%;
    height: 300px;
    padding: 20px;
    background: var(--bg-light);
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certificate-info {
    padding: 20px;
}

.certificate-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.certificate-year {
    color: var(--primary-color);
    font-weight: 600;
}

/* Video Section */
.video-wrapper {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-player {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.video-placeholder {
    background: var(--bg-light);
    padding: 100px 20px;
    text-align: center;
    border-radius: 15px;
    color: var(--text-light);
}

.video-description {
    margin-top: 30px;
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Делаем логотип белым для темного фона */
}

.footer-info p {
    margin-bottom: 10px;
    color: #999;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.footer-contacts a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contacts a:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-link:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    border-color: transparent;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlide 0.3s;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Form Styles */
.modal-body {
    padding: 10px 0;
}

.modal-body h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-align: left;
    font-weight: 600;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.5;
}

.modal-body .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-body .form-group {
    position: relative;
}

.modal-body .form-group input {
    width: 100%;
    padding: 12px 15px;
    padding-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    box-sizing: border-box;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-body .form-group label {
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 12px;
    color: #999;
    pointer-events: none;
}

.modal-body button {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), #b8941f);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 5px;
    width: auto;
    align-self: flex-start;
}

.modal-body button:hover {
    background: linear-gradient(135deg, #b8941f, var(--primary-color));
    transform: scale(1.05);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    /* Modal responsive styles */
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 20px;
    }
    
    .modal-body h2 {
        font-size: 20px;
    }
    
    .modal-body p {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .modal-body .form-group input {
        padding: 10px 12px;
        padding-top: 18px;
        font-size: 14px;
    }
    
    .modal-body .form-group label {
        font-size: 11px;
        top: 4px;
        left: 12px;
    }
    
    .modal-body button {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .header {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .header-top {
        padding: 8px 0;
        width: 100%;
        overflow: hidden;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    /* Logo adjustments for mobile */
    .logo-img {
        height: 35px;
        max-width: 120px;
        object-fit: contain;
    }
    
    .footer-logo-img {
        height: 45px;
    }
    
    /* Header adjustments for mobile */
    .header-top-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    /* First row: contacts */
    .header-contacts {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .header-phone {
        flex: 1;
        min-width: 0;
    }
    
    .header-time {
        flex: 1;
        min-width: 0;
        text-align: right;
    }
    
    .header-contacts a,
    .header-time {
        font-size: 11px;
        display: flex;
        align-items: center;
        gap: 3px;
    }
    
    .header-contacts i {
        font-size: 10px;
        flex-shrink: 0;
    }
    
    .header-contacts span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Second row: messengers and CTA button */
    .header-bottom-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    
    .header-messengers {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .messenger-link {
        width: 26px;
        height: 26px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .header-actions {
        flex-shrink: 0;
    }
    
    .btn-calculate {
        font-size: 10px;
        padding: 5px 10px;
        white-space: nowrap;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--white);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 60px 20px 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }
    
    .calculator-sidebar {
        position: static;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .price-wrapper {
        grid-template-columns: 1fr;
    }
    
    .delivery-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

/* Calculator Success Message Styles */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-message i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #333;
    margin-bottom: 10px;
}

.success-message .calc-id {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.success-message .btn-secondary {
    margin-top: 20px;
    background: #f5f5f5;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-message .btn-secondary:hover {
    background: #e0e0e0;
}

/* Price Option Selection - featured class now indicates selected */
.price-option.featured {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%) !important;
    color: white !important;
    transform: scale(1.05) !important;
    border: 2px solid #D4AF37 !important;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4) !important;
}

/* Selected state for additional visual feedback */
.price-option.selected {
    position: relative;
    z-index: 10;
}

.price-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-option:not(.featured):hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Calculator Form Improvements */
.calculator-option {
    transition: all 0.3s ease;
}

.calculator-option.selected {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: white;
}

.calculator-inputs input:focus {
    border-color: #D4AF37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.progress-step.completed .progress-step-circle {
    background: #4CAF50;
    color: white;
}

.progress-step.active .progress-step-circle {
    background: #D4AF37;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}


/* =====================================================
   MOBILE HERO FIX - Better display on mobile devices
   ===================================================== */

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px; /* Увеличиваем верхний отступ для мобильной шапки */
        min-height: 80vh; /* Уменьшаем минимальную высоту */
        align-items: flex-start; /* Выравниваем контент по верху */
        padding-top: 140px; /* Увеличиваем отступ от шапки до 140px */
    }
    
    .hero-content {
        padding-top: 40px; /* Увеличиваем дополнительный отступ сверху */
        width: 100%;
        max-width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .hero-title {
        /* Не меняем шрифт и цвет - наследуем от основных стилей */
        font-size: 36px; /* Немного уменьшаем только размер */
        line-height: 1.2;
        margin-top: 20px;
        word-break: break-word; /* Переносим длинные слова */
        padding: 0 15px; /* Отступы по бокам */
    }
    
    .hero-subtitle {
        /* Не меняем шрифт и цвет - наследуем от основных стилей */
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .hero-features {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .hero-feature {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .hero-cta {
        margin: 20px auto !important;
        display: block;
        width: 90%;
        max-width: 280px;
        font-size: 16px;
        padding: 14px 20px;
    }
    
    /* Фиксируем проблему с оверлеем */
    .hero .section-overlay {
        position: absolute; /* Оверлей должен быть абсолютным */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    /* Убеждаемся что контент виден поверх оверлея */
    .hero .container {
        position: relative;
        z-index: 3;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hero {
        padding-top: 120px; /* Достаточный отступ от шапки */
        min-height: 70vh;
    }
    
    .hero-content {
        padding-top: 30px; /* Дополнительный отступ */
    }
    
    .hero-title {
        font-size: 28px; /* Чуть меньше, но не слишком */
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .hero-feature {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .hero-cta {
        font-size: 14px;
        padding: 12px 18px;
    }
}

/* Фикс для iPhone X и выше (с вырезом) */
@media (max-width: 768px) {
    @supports (padding-top: env(safe-area-inset-top)) {
        .hero {
            padding-top: calc(100px + env(safe-area-inset-top));
        }
    }
}

/* Оставляем оригинальные стили текста и оверлея */
@media (max-width: 768px) {
    /* Текст наследует стили от основных правил - не меняем */
    
    /* Оверлей тоже оставляем как задано в админке - не перезаписываем */
}

/* Calculator Enhanced Styles */
.calculator-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary, #D4AF37);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.progress-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.progress-step.active .progress-step-circle {
    background: var(--primary, #D4AF37);
    color: white;
}

.progress-step.completed .progress-step-circle {
    background: #28a745;
    color: white;
}

.progress-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.calculator-step {
    display: none;
}

.calculator-step.active {
    display: block;
}

.calculator-question {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.calculator-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.calculator-option {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calculator-option:hover {
    border-color: var(--primary, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.calculator-option.selected {
    border-color: var(--primary, #D4AF37);
    background-color: var(--primary, #D4AF37);
    color: white;
}

.calculator-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.calculator-buttons button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: var(--primary, #D4AF37);
    color: white;
}

.btn-primary:hover {
    background: #b89a2d;
}

/* Calculator Enhanced Styles */
.calculator-annotation {
    color: #666;
    font-size: 14px;
    margin: 10px 0 20px 0;
    line-height: 1.5;
    font-style: italic;
}

.calculator-option-input {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.option-button {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    margin-bottom: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-button:hover {
    border-color: var(--primary, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.option-button.selected {
    border-color: var(--primary, #D4AF37);
    background-color: var(--primary, #D4AF37);
    color: white;
}

.option-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    display: none !important;
}

.option-input[style*="display: block"] {
    display: block !important;
}

/* Force consistent layout for all calculator buttons with images */
.calculator-option, .option-button {
    min-height: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 15px !important;
}

/* Buttons without images keep consistent height */
.calculator-option:not(:has(.option-image)), 
.option-button:not(:has(.option-image)) {
    min-height: 60px !important;
    height: 60px !important;
}

.option-input:focus {
    outline: none;
    border-color: var(--primary, #D4AF37);
}

/* Calculator option wrapper for proper image positioning */
.calculator-option-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Option images */
.option-image {
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.option-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
}

.calculator-option-wrapper:hover .option-image img,
.calculator-option-input:hover .option-image img {
    border-color: var(--primary, #D4AF37);
    transform: scale(1.05);
}

.calculator-option-wrapper:has(.calculator-option.selected) .option-image img,
.calculator-option-input:has(.option-button.selected) .option-image img {
    border-color: #fff;
    transform: scale(1.02);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .option-image img {
        height: 100px;
    }
    
    .calculator-option, 
    .option-button {
        padding: 12px !important;
        margin-bottom: 8px;
    }
    
    .option-image {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .option-image img {
        height: 80px;
    }
    
    .calculator-option, 
    .option-button {
        padding: 10px !important;
    }
    
    .option-image {
        margin-bottom: 8px;
    }
}

.gift-image {
    margin-bottom: 15px;
    text-align: center;
}

.gift-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 120px;
    object-fit: cover;
}

/* Calculator Result Styles */
.calculator-result {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.calculation-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.price-option {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 25px 20px;
    transition: all 0.3s ease;
}

.price-option.featured {
    border-color: var(--primary, #D4AF37);
    background: linear-gradient(135deg, var(--primary, #D4AF37), #f4e98c);
    color: white;
    transform: scale(1.05);
}

.price-option h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.price-option .price {
    font-size: 32px;
    font-weight: bold;
    margin: 15px 0;
    color: var(--primary, #D4AF37);
}

.price-option.featured .price {
    color: white;
}

.price-option p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

.contact-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.contact-form h4 {
    margin: 0 0 20px 0;
    color: #333;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.contact-method {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-method.active {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: white;
    border-color: #D4AF37;
}

.contact-method i {
    font-size: 18px;
}

.contact-inputs {
    margin-top: 15px;
}

.contact-inputs input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-inputs input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form .btn-primary {
    margin-top: 20px;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.success-message i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.success-message h3 {
    color: #28a745;
    margin: 0 0 15px 0;
}

.contact-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: #0066cc;
}

@media (max-width: 768px) {
    .calculation-results {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .price-option.featured {
        transform: none;
    }
}

/* Price List Form Styles */
.price-list-form {
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.price-list-form h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 28px;
}

.price-list-form p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.price-list-form .form-group {
    margin-bottom: 25px;
}

.price-list-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.price-list-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.price-list-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.contact-method {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-method.active {
    background: linear-gradient(135deg, #D4AF37 0%, #b8941f 100%);
    color: white;
    border-color: #D4AF37;
}

.contact-method i {
    font-size: 18px;
}

.price-list-form .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Success message for price list */
.price-list-form .success-message {
    text-align: center;
    padding: 30px;
}

.price-list-form .success-message i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.price-list-form .success-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price-list-form .success-message p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Max кнопка на всю ширину внизу */
.contact-method:nth-child(5) {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-method:nth-child(5) {
        grid-column: 1;
    }
}

/* === CONTACTS SECTION === */
.contacts-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.contacts-wrapper {
    display: grid;
    gap: 40px;
    align-items: stretch;
    margin-top: 60px;
}

/* Карта справа (по умолчанию) */
.contacts-wrapper.map-right {
    grid-template-columns: 1fr 1fr;
}

.contacts-wrapper.map-right .contacts-info {
    order: 1;
}

.contacts-wrapper.map-right .contacts-map {
    order: 2;
}

/* Карта слева */
.contacts-wrapper.map-left {
    grid-template-columns: 1fr 1fr;
}

.contacts-wrapper.map-left .contacts-info {
    order: 2;
}

.contacts-wrapper.map-left .contacts-map {
    order: 1;
}

/* Контактная информация */
.contacts-info {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr 1fr;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #faf9f7;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.contact-item:hover {
    background: #f5f3ef;
    border-left-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #b8941f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.contact-icon i {
    font-size: 20px;
    color: white;
}

.contact-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-dark);
}

.contact-content p {
    font-size: 14px;
    margin: 0;
    color: var(--text-light);
    line-height: 1.4;
}

.contact-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: #b8941f;
    text-decoration: underline;
}

/* Карта в секции контактов */
.contacts-map {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    height: 100%;
}

.contacts-section .map-container {
    width: 100%;
    height: 100%;
	margin-top: 0px;
    min-height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.contacts-section .map-container iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px !important;
    border: none !important;
    display: block !important;
    border-radius: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .contacts-wrapper {
        gap: 30px;
    }
    
    .contacts-info {
        padding: 35px 25px;
    }
    
    .contact-item {
        padding: 18px;
    }
    
    .contacts-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 80px 0;
    }
    
    .contacts-wrapper.map-right,
    .contacts-wrapper.map-left {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contacts-wrapper.map-right .contacts-info,
    .contacts-wrapper.map-left .contacts-info {
        order: 1;
    }
    
    .contacts-wrapper.map-right .contacts-map,
    .contacts-wrapper.map-left .contacts-map {
        order: 2;
    }
    
    .contacts-info {
        padding: 30px 25px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 20px;
        align-items: flex-start;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 18px;
    }
    
    .contacts-section .map-container {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .contacts-section {
        padding: 60px 0;
    }
    
    .contacts-grid {
        gap: 15px;
    }
    
    .contact-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-icon {
        align-self: center;
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .contact-content h4 {
        font-size: 14px;
    }
    
    .contact-content p {
        font-size: 13px;
    }
    
    .contacts-section .map-container {
        min-height: 300px;
    }
}
