/* ============================================
   Базовые стили и сброс
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #4A4A4A;
    background-color: #F7F7F7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Контейнеры
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   Шапка (Header)
   ============================================ */

.header {
    background-color: #FFFFFF;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
}

.company-subtitle {
    font-size: 12px;
    color: #808080;
    line-height: 1.4;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-contacts .btn {
    padding: 10px 24px;
    font-size: 14px;
    min-height: 40px;
}

.phone-link {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #2196F3;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #F5F5F5;
    transition: background-color 0.2s;
}

.social-link:hover {
    background-color: #E0E0E0;
}

.whatsapp-link {
    color: #25D366;
}

.whatsapp-link:hover {
    background-color: #25D366;
    color: #FFFFFF;
}

.header .whatsapp-link svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Кнопки
   ============================================ */

.btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #2196F3;
    color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background-color: #1565C0;
    transform: translateY(0);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.btn-secondary:hover {
    background-color: #E3F2FD;
    transform: translateY(-2px);
}

.btn-secondary:active {
    background-color: #BBDEFB;
    transform: translateY(0);
}

a.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Hero (Главный экран)
   ============================================ */

.hero {
    padding: 80px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
    background-color: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1A1A1A;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #4A4A4A;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4A4A4A;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.hero-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* ============================================
   Блок акции
   ============================================ */

.promo-banner {
    padding: 24px 0;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #FFFFFF;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.promo-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.promo-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.promo-text {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.95;
}

/* ============================================
   Блок "Связаться с нами"
   ============================================ */

.contact-buttons-section {
    padding: 40px 0;
    background-color: #FFFFFF;
}

.contact-buttons {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    min-height: 56px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-btn-phone {
    background-color: #2196F3;
    color: #FFFFFF;
}

.contact-btn-phone:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    color: #FFFFFF;
}

.contact-btn-whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
}

.contact-btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: #FFFFFF;
}

/* ============================================
   Заголовки секций
   ============================================ */

.section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.5;
    color: #808080;
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================
   УТП / Преимущества
   ============================================ */

.advantages {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
}

.advantage-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4A4A4A;
}

/* ============================================
   Услуги
   ============================================ */

.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: #FFFFFF;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
}

.service-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4A4A4A;
    flex-grow: 1;
}

/* ============================================
   Как мы работаем
   ============================================ */

.how-we-work {
    padding: 60px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.step-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #2196F3;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.step-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
}

.step-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4A4A4A;
}

.steps-cta {
    text-align: center;
}

/* ============================================
   Примеры работ
   ============================================ */

.portfolio {
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.portfolio-item {
    background-color: #FFFFFF;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.portfolio-caption {
    font-size: 14px;
    line-height: 1.5;
    color: #4A4A4A;
    text-align: center;
}

/* ============================================
   Отзывы
   ============================================ */

.testimonials {
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.testimonial-card {
    background-color: #FFFFFF;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1A1A1A;
}

.testimonial-location {
    font-size: 14px;
    line-height: 1.5;
    color: #808080;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 20px;
    color: #FFC107;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4A4A4A;
}

.testimonials-cta {
    text-align: center;
}

/* ============================================
   Форма заявки
   ============================================ */

.contact-form-section {
    padding: 80px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #1A1A1A;
    background-color: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2196F3;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #4A4A4A;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.form-note {
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #808080;
    margin-top: 24px;
}

/* ============================================
   Футер
   ============================================ */

.footer {
    background-color: #1A1A1A;
    color: #CCCCCC;
    padding: 60px 0 24px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 48px;
}

.footer-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.footer-phone {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3;
    transition: color 0.2s;
}

.footer-phone:hover {
    color: #42A5F5;
}

.footer-address {
    font-size: 16px;
    line-height: 1.6;
    font-style: normal;
}

.footer-schedule {
    font-size: 14px;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background-color: #2A2A2A;
    color: #CCCCCC;
}

.footer-social .social-link:hover {
    background-color: #3A3A3A;
    color: #FFFFFF;
}

.footer-social .whatsapp-link {
    color: #25D366;
}

.footer-social .whatsapp-link:hover {
    background-color: #25D366;
    color: #FFFFFF;
}

.footer-social .whatsapp-link svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #2A2A2A;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-company {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
}

.footer-subtitle {
    font-size: 14px;
    color: #808080;
}

.footer-copyright {
    font-size: 12px;
    color: #666666;
}

/* ============================================
   Блок "Как нас найти" (Карта)
   ============================================ */

.map-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.map-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-contact-label {
    font-size: 14px;
    font-weight: 600;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-contact-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1A1A1A;
}

.map-contact-phone {
    font-size: 24px;
    font-weight: 700;
    color: #2196F3;
    transition: color 0.2s;
}

.map-contact-phone:hover {
    color: #1976D2;
}

.map-contact-email {
    font-size: 16px;
    color: #2196F3;
    transition: color 0.2s;
}

.map-contact-email:hover {
    color: #1976D2;
    text-decoration: underline;
}

.map-contact-btn {
    margin-top: 8px;
    width: 100%;
}

.map-contact-social {
    margin-top: 8px;
}

.map-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.map-whatsapp-link:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: #FFFFFF;
}

.map-whatsapp-link svg {
    width: 24px;
    height: 24px;
}

.footer-social .whatsapp-link {
    color: #25D366;
}

.footer-social .whatsapp-link:hover {
    background-color: #25D366;
    color: #FFFFFF;
}

.footer-social .whatsapp-link svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Адаптивность: Планшеты (768px - 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .header-container {
        padding: 0 32px;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .hero-container {
        padding: 32px;
        gap: 32px;
    }

    .hero-image {
        min-height: 350px;
    }

    .hero-img {
        min-height: 350px;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .map-section {
        padding: 60px 0;
    }

    .map-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-wrapper {
        aspect-ratio: 16 / 9;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages {
        padding: 60px 0;
    }

    .services {
        padding: 60px 0;
    }

    .portfolio {
        padding: 60px 0;
    }

    .testimonials {
        padding: 60px 0;
    }

    .contact-form-section {
        padding: 60px 0;
    }

    .how-we-work {
        padding: 48px 0;
    }
}

/* ============================================
   Адаптивность: Мобильные (до 768px)
   ============================================ */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .header {
        padding: 8px 0;
        min-height: auto;
    }

    .header-container {
        padding: 0 20px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .header-logo {
        gap: 12px;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    .company-name {
        font-size: 20px;
    }

    .company-subtitle {
        font-size: 12px;
    }

    .header-contacts {
        gap: 12px;
        flex-wrap: wrap;
    }

    .phone-link {
        font-size: 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-height: 44px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-container {
        padding: 32px 20px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-image {
        min-height: 300px;
        order: -1;
    }

    .hero-img {
        min-height: 300px;
    }

    .hero-title {
        font-size: 32px;
    }

    .promo-banner {
        margin-top: 0;
        padding: 20px 0;
    }

    .promo-title {
        font-size: 22px;
    }

    .promo-text {
        font-size: 14px;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-btn {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 52px;
    }

    .map-section {
        padding: 40px 0;
    }

    .map-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .map-wrapper {
        aspect-ratio: 16 / 9;
    }

    .map-contact-phone {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .advantages {
        padding: 40px 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-card {
        padding: 24px;
    }

    .advantage-title {
        font-size: 18px;
    }

    .advantage-text {
        font-size: 14px;
    }

    .services {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 20px;
    }

    .service-title {
        font-size: 20px;
    }

    .service-text {
        font-size: 15px;
    }

    .how-we-work {
        padding: 40px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .step-card {
        padding: 24px;
    }

    .step-icon-wrapper {
        width: 64px;
        height: 64px;
    }

    .step-icon-wrapper svg {
        width: 32px;
        height: 32px;
    }

    .step-title {
        font-size: 18px;
    }

    .step-text {
        font-size: 14px;
    }

    .portfolio {
        padding: 40px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonials {
        padding: 40px 0;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-name {
        font-size: 16px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .contact-form-section {
        padding: 40px 0;
    }

    .contact-form {
        padding: 32px 20px;
        gap: 20px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 15px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-contacts {
        margin-bottom: 32px;
    }

    .footer-title {
        font-size: 24px;
    }

    .footer-phone {
        font-size: 20px;
    }

    .footer-address {
        font-size: 14px;
    }

    .footer-schedule {
        font-size: 12px;
    }

    .footer-company {
        font-size: 16px;
    }

    .footer-subtitle {
        font-size: 12px;
    }
}
