/* Modern Professional Design for Bez-Kluchey.rf */

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --success-color: #10b981;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

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

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

.logo-img {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

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

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.phone {
    background: white;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--accent-color);
    color: white;
}

.phone::before {
    content: '📞';
    font-size: 18px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: white;
    transform: translateY(-2px) scale(1.1);
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 80%;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(59, 130, 246, 0.3) 100%),
                url('/images/hero-door.jpg') center bottom/cover no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: var(--accent-hover);
}

/* Trust Badges */
.trust-badges {
    background: var(--bg-light);
    padding: 40px 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.trust-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

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

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature {
    background: white;
    padding: 35px 28px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

.feature p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Content Section */
.content {
    padding: 80px 0;
    background: var(--bg-white);
}

.content h2 {
    font-size: 38px;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 800;
}

.content h3 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.content ul {
    margin: 24px 0;
    padding-left: 40px;
}

.content li {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.7;
    position: relative;
}

.content li::marker {
    color: var(--accent-color);
    font-weight: bold;
}

.content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Image Sections */
.image-section {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.image-content.reverse {
    direction: rtl;
}

.image-content.reverse > * {
    direction: ltr;
}

.image-text h2 {
    font-size: 38px;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 800;
}

.image-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.image-text ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.image-text li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 17px;
    color: var(--text-dark);
}

.image-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 20px;
}

.image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Emergency Section with Dark Background */
.emergency-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.95) 100%),
                url('/images/emergency-service.jpg') center/cover no-repeat fixed;
    color: white;
    padding: 100px 0;
    position: relative;
}

.emergency-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.emergency-content h2 {
    font-size: 42px;
    margin-bottom: 24px;
    font-weight: 800;
}

.emergency-content p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.95;
}

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

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

.emergency-feature-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.emergency-feature h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.emergency-feature p {
    font-size: 16px;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="30" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

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

.cta-text {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
}

.footer-phone {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-color);
    margin: 20px 0;
    display: block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Tablet */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        justify-content: center;
        gap: 16px;
    }

    .logo-img {
        width: 56px;
        height: 56px;
    }

    .logo-text h1 {
        font-size: 19px;
    }

    .phone {
        font-size: 18px;
        padding: 10px 24px;
    }

    .hero {
        padding: 70px 0;
        background-position: center bottom; /* Добавьте эту строку */
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .cta-button {
        padding: 16px 36px;
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .services,
    .why-us,
    .content {
        padding: 60px 0;
    }

    .content h2 {
        font-size: 28px;
    }

    .content h3 {
        font-size: 24px;
    }

    /* Image sections responsive */
    .image-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-content.reverse {
        direction: ltr;
    }

    .image-text h2 {
        font-size: 28px;
    }

    .image-text p {
        font-size: 16px;
    }

    .emergency-section {
        padding: 70px 0;
    }

    .emergency-content h2 {
        font-size: 32px;
    }

    .emergency-content p {
        font-size: 17px;
    }

    .emergency-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 17px;
    }

    nav ul {
        gap: 16px;
    }

    nav a {
        font-size: 14px;
    }
}
/* Contact Page */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.contact-card-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.contact-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.contact-card a {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-color);
}

.contact-card p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 6px;
}

/* Content Section (for kontakty, uslugi pages) */
.content {
    padding: 80px 0;
    background: var(--bg-light);
}

.content h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
}

.content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.content h4 {
    color: var(--primary-color) !important;
}

.content p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-gray);
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 30px 20px;
    }
}

/* Messenger Links */
.messenger-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border: 2px solid rgba(30, 64, 175, 0.15);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.messenger-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.messenger-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.telegram-btn:hover {
    background: #229ED9;
    color: white;
    border-color: #229ED9;
}

.whatsapp-btn:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.max-btn:hover {
    background: #6b5cff;
    color: white;
    border-color: #6b5cff;
}

/* Responsive для мессенджеров */
@media (max-width: 768px) {
    .messenger-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .messenger-btn {
        justify-content: center;
        padding: 16px 24px;
    }
}
