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

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    src: url('/static/fonts/inter.ttf') format('truetype');
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.mobile {
    display: none;
}

#success, #error {
    display: none;
    top: 50px;
    right: 1%;
    position: fixed;
    color: #333;
    padding: 10px 15px;
    border-radius: 6px;
    z-index: 1001;
    width: 350px;
    backdrop-filter: blur(10px);
}

#success {
    background: rgba(212, 237, 218, 0.8);
}

#error {
    background: rgba(237, 212, 215, 0.8);
}


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

/* SVG Icons */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    fill: currentColor;
    vertical-align: middle;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

.icon-xl {
    width: 40px;
    height: 40px;
}

.icon-xxl {
    width: 90px;
    height: 90px;
}

.icon.mobile {
    display: none;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu .icon {
    color: #333;
    width: 28px;
    height: 28px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #c41e3a;
}

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

.phone {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.btn-call {
    background: #c41e3a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-call:hover {
    background: #a31729;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 66px;
    left: -100%;
    width: 50%;
    height: calc(100vh - 66px);
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav a {
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: #c41e3a;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    background-image: url('/static/img/main.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, rgba(196, 30, 58, 0.1) 0%, rgba(248, 249, 250, 0.95) 95%);
    backdrop-filter: blur(10px);
    z-index: 0;
}


.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #262626;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 20px;
    color: #333;
    margin-bottom: 40px;
}

.hero-form {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    max-width: 700px;
}

.hero-form input {
    padding: 18px 25px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.hero-form input:focus {
    outline: none;
    border-color: #c41e3a;
}

.hero-form .btn-submit {
    background: #c41e3a;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    justify-content: center;
}

.hero-form .btn-submit:hover {
    background: #a31729;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 20px;
    max-width: 700px;
    justify-content: space-between;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
}

.benefit-item .icon {
    color: #c41e3a;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.service-image {
    height: 180px;
    background: linear-gradient(135deg, #c41e3a 0%, #a31729 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-image .material-symbols-outlined {
    font-size: 90px;
}

.service-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    min-height: 44px;
}

.service-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.service-price {
    font-size: 22px;
    font-weight: 700;
    color: #c41e3a;
    margin-bottom: 15px;
}

.btn-service-order {
    width: 100%;
    background: #c41e3a;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-service-order:hover {
    background: #a31729;
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
    background: #f8f9fa;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.advantage-icon .material-symbols-outlined {
    font-size: 40px;
}

.advantage-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.advantage-desc {
    color: #666;
    line-height: 1.5;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #c41e3a, #a31729);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: white;
    color: #c41e3a;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

/* Stages Section */
.stages {
    padding: 80px 0;
    background: #fff;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stage-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.stage-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(196, 30, 58, 0.1);
}

.stage-icon {
    width: 60px;
    height: 60px;
    background: #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.stage-icon .material-symbols-outlined {
    font-size: 32px;
}

.stage-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.stage-desc {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #c41e3a;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #666;
    line-height: 1.6;
    padding: 0 25px;
}

.faq-answer.active {
    max-height: 300px;
    padding: 0 25px 25px 25px;
}

.faq-question .icon {
    transition: transform 0.3s ease;
    color: #c41e3a;
}

.faq-question .icon.active {
    transform: rotate(180deg);
}

/* Contacts Section */
.contacts {
    padding: 80px 0;
    background: #fff;
}

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

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

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item .icon {
    color: #c41e3a;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #c41e3a;
}

.btn-contact {
    background: #c41e3a;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-contact:hover {
    background: #a31729;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

.contacts-map {
    height: 100%;
    min-height: 400px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #c41e3a;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #c41e3a;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-phone,
.footer-address,
.footer-schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-phone .icon,
.footer-address .icon,
.footer-schedule .icon {
    width: 18px;
    height: 18px;
    color: #c41e3a;
    margin-top: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #c41e3a;
}

.modal .btn-submit {
    width: 100%;
    background: #c41e3a;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal .btn-submit:hover {
    background: #a31729;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile Styles */
@media (max-width: 992px) {
    .burger-menu {
        display: block;
    }

    .nav {
        display: none;
    }

    .logo {
        font-size: 26px;
    }

    .phone {
        color: #a31729;
        font-size: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .btn-contact {
        align-self: center;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    input {
        text-align: center;
    }

    #success, #error {
        text-align: center;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }

    .logo {
        font-size: 22px;
    }

    .phone {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 32px;
        text-align: center;
    }

    .hero-content .subtitle {
        font-size: 16px;
        text-align: center;
    }

    .hero-form {
        max-width: 100%;
        flex-direction: column;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .stages-grid {
        grid-template-columns: 1fr;
    }

    .stage-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta h2 {
        font-size: 24px;
    }

    .btn-contact {
        align-self: stretch;
    }

    .footer-logo {
        flex-direction: column
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-phone,
    .footer-address,
    .footer-schedule {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .mobile {
        display: block;
    }

    .icon.mobile {
        display: inline-block;
    }

    .hide-mobile {
        display: none;
    }

    .phone {
        font-size: 20px;
    }

    .btn-call.mobile {
        margin: 0 20px;
    }
}