/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f8f9fa;
    --accent-color: #2c3e50;
    --text-color: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --border-color: #dee2e6;
    --primary-btn: #343a40;
    --primary-btn-hover: #2c3e50;
    --success-color: #28a745;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color);
    white-space: nowrap;
}

.logo-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.key-icon {
    font-size: 24px;
}

.logo-text {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 15px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
}

.header-phone {
    text-align: right;
    white-space: nowrap;
}

.phone-link {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 14px;
    line-height: 1.4;
}

.phone-link strong {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color) 0%, #34495e 100%);
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(52, 73, 94, 0.95) 100%);
    z-index: 1;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1920&q=80') center/cover;
    opacity: 0.2;
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--primary-btn);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
}

.btn:hover {
    background-color: var(--primary-btn-hover);
}

.btn-primary {
    background-color: var(--white);
    color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #f0f0f0;
}

/* Hero button - большая выделенная кнопка */
@keyframes hero-pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(255, 255, 255, 0);
    }
}

.btn-hero {
    padding: 20px 50px;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: scale(1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    min-width: 280px;
    text-align: center;
    animation: hero-pulse 3s infinite;
}

.btn-hero::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;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    background-color: #28a745;
    color: var(--white);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
}

.btn-hero:active {
    transform: scale(1.02) translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* Advantages Section */
.advantages {
    padding: 60px 0;
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.advantage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.advantage-item:hover .advantage-image {
    transform: scale(1.1);
}

.advantage-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    background: rgba(255,255,255,0.9);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.advantage-item p {
    color: var(--text-light);
    font-size: 15px;
}

/* Pricing Section */
.pricing {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.pricing-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

.pricing-warning a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.pricing-table-wrapper {
    overflow-x: auto;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.pricing-table thead {
    background-color: var(--accent-color);
    color: var(--white);
}

.pricing-table th,
.pricing-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    font-weight: 600;
    font-size: 16px;
}

.pricing-table tbody tr:hover {
    background-color: #f8f9fa;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.price-cell {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 18px;
    white-space: nowrap;
}

/* Urgent Call Section */
.urgent-call-section {
    padding: 60px 0;
    background-color: var(--white);
}

.urgent-call-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.btn-urgent-call {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-urgent-call::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.btn-urgent-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1ea97e 100%);
}

.btn-urgent-call:active {
    transform: translateY(-1px);
}

.phone-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.urgent-call-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.urgent-call-title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.urgent-call-phone {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.urgent-call-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

.btn-urgent {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* Contact Form (старые стили, больше не используются) */
.contact-form-section {
    padding: 60px 0;
    background-color: var(--white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 15px;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3,
.footer-contact h4,
.footer-links h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        display: inline;
        font-size: 16px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        height: 250px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-hero {
        padding: 18px 35px;
        font-size: 18px;
        min-width: 240px;
    }

    .advantage-icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .advantage-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .btn-urgent-call {
        padding: 20px;
        gap: 15px;
    }

    .phone-icon {
        font-size: 36px;
    }

    .urgent-call-title {
        font-size: 18px;
    }

    .urgent-call-phone {
        font-size: 22px;
    }

    .urgent-call-subtitle {
        font-size: 12px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 999;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }

    .burger-menu {
        display: flex;
    }

    .header-phone {
        font-size: 12px;
    }

    .header-phone .phone-link strong {
        font-size: 14px;
    }


    .section-title {
        font-size: 26px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-table {
        min-width: 100%;
        font-size: 14px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 12px 10px;
    }

    .price-cell {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 12px 0;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 14px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-image {
        height: 200px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-hero {
        padding: 16px 30px;
        font-size: 16px;
        min-width: 200px;
        letter-spacing: 0.5px;
    }

    .advantage-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .price-cell {
        font-size: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
}

