:root {
    --primary: #1A365D;
    --accent: #F5E9D9;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-soft: #475569;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.5;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* ============ ШАПКА ============ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226,232,240,0.5);
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

/* Логотип */
.logo {
    flex-shrink: 0;
    line-height: 1.2;
}

.logo__text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo__sub {
    font-size: 0.6rem;
    color: var(--text-soft);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

/* Навигация */
.nav__list {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav__link:hover {
    color: var(--primary);
}

.nav__toggle {
    display: none;
}

/* Мессенджеры */
.header__messengers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.messenger-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    color: white;
}

.messenger-icon svg {
    width: 16px;
    height: 16px;
}

.messenger-icon span {
    font-size: 0.8rem;
}

.messenger--tg {
    background: linear-gradient(135deg, #0088cc 0%, #005f8a 100%);
}

.messenger--tg:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.messenger--max {
    background: #6B2EE5;
}

.messenger--max:hover {
    transform: translateY(-1px);
    background: #5A1EC9;
}

/* Телефон */
.header__phone {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Кнопка */
.header__btn {
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header__btn:hover {
    background: #0F2A44;
    transform: translateY(-1px);
}

/* ============ АДАПТАЦИЯ ШАПКИ ============ */
@media (max-width: 1200px) {
    .nav__list {
        gap: 20px;
    }
    .nav__link {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .header__inner {
        gap: 15px;
    }
    .nav__list {
        gap: 15px;
    }
    .nav__link {
        font-size: 0.8rem;
    }
    .messenger-icon {
        padding: 4px 10px;
    }
    .messenger-icon span {
        font-size: 0.75rem;
    }
    .header__phone {
        font-size: 0.85rem;
    }
    .header__btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .logo__text {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .nav__list {
        gap: 12px;
    }
    .nav__link {
        font-size: 0.75rem;
    }
}

@media (max-width: 850px) {
    .header__inner {
        gap: 12px;
    }
    .messenger-icon span {
        display: none;
    }
    .messenger-icon {
        padding: 6px;
        border-radius: 50%;
        width: 32px;
        height: 32px;
        justify-content: center;
    }
    .messenger-icon svg {
        width: 18px;
        height: 18px;
    }
    .header__phone {
        font-size: 0.8rem;
    }
    .header__btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 700px) {
    .nav__list {
        gap: 10px;
    }
    .nav__link {
        font-size: 0.7rem;
    }
}

@media (max-width: 650px) {
    .header__inner {
        gap: 10px;
    }
    .header__phone {
        display: none;
    }
    .logo__text {
        font-size: 0.9rem;
    }
    .logo__sub {
        font-size: 0.5rem;
    }
    .nav__link {
        font-size: 0.65rem;
    }
    .messenger-icon {
        width: 28px;
        height: 28px;
    }
    .messenger-icon svg {
        width: 16px;
        height: 16px;
    }
    .header__btn {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 550px) {
    .nav__list {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        opacity: 0;
        transition: 0.3s ease;
        pointer-events: none;
        z-index: 999;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
    }
    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav__toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    .nav__toggle span {
        width: 100%;
        height: 2px;
        background: var(--primary);
        transition: 0.3s;
    }
    .nav__link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }
    .nav__link:last-child {
        border-bottom: none;
    }
}

/* ============ HERO ============ */
.hero {
    height: 100vh;
    min-height: 550px;
    background: linear-gradient(135deg, rgba(26,54,93,0.85) 0%, rgba(26,54,93,0.7) 100%);
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero__inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 4rem;
    }
    .hero__subtitle {
        font-size: 1.5rem;
    }
}

/* ============ УСЛУГИ ============ */
.services {
    padding: 4rem 0;
    background: var(--white);
}

.services__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.service-card__icon {
    margin-bottom: 1.5rem;
}

.service-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card__text {
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card__list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.service-card__list li {
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ============ СПОСОБЫ ПОКУПКИ ============ */
.cases {
    padding: 4rem 0;
    background: var(--bg-light);
}

.cases__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cases__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}

.case-card__image {
    height: 180px;
    overflow: hidden;
}

.case-card__image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card__content {
    padding: 1.5rem;
}

.case-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.case-card__service {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.case-card__result {
    font-size: 1rem;
    color: var(--text-dark);
}

.case-card__result strong {
    color: var(--primary);
}

/* ============ НАШИ РАБОТЫ ============ */
.works {
    padding: 4rem 0;
    background: var(--white);
}

.works__grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .works__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .works__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}

.work-card__image {
    height: 220px;
    overflow: hidden;
}

.work-card__image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card__content {
    padding: 1.5rem;
}

.work-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.work-card__desc {
    color: var(--text-soft);
    font-size: 0.9rem;
}

/* ============ МАРИУПОЛЬ ============ */
.mariapil {
    padding: 4rem 0;
    background: var(--bg-light);
}

.mariapil__wrapper {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .mariapil__wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
}

.mariapil__text p {
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mariapil__text ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.mariapil__text li {
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.mariapil__map svg {
    width: 100%;
    height: auto;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

/* ============ КОНТАКТЫ ============ */
.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
}

.contact__wrapper {
    display: grid;
    gap: 2rem;
}

@media (min-width: 992px) {
    .contact__wrapper {
        grid-template-columns: 1fr 1.2fr;
        gap: 3rem;
    }
}

.contact__title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .contact__title {
        font-size: 2.5rem;
    }
}

.contact__subtitle {
    font-size: 1rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
}

.contact__details {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.contact__item {
    margin-bottom: 1.2rem;
}

.contact__item:last-child {
    margin-bottom: 0;
}

.contact__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
    margin-bottom: 0.3rem;
}

.contact__phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.contact__tg {
    font-size: 1.1rem;
    color: #0088cc;
    font-weight: 600;
}

.contact__max {
    font-size: 1rem;
    font-weight: 600;
    color: #6B2EE5;
    display: inline-flex;
    align-items: center;
}

.contact__address {
    font-size: 1rem;
    font-weight: 400;
}

.contact__form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .contact__form {
        padding: 2rem;
    }
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: #0F2A44;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

.form-hint {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--text-soft);
    text-align: center;
}

.alert {
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.alert-success {
    background: #DEF7EC;
    color: #03543F;
    border: 1px solid #31C48D;
}

.alert-error {
    background: #FDE8E8;
    color: #9B1C1C;
    border: 1px solid #F98080;
}

/* ============ ПОДВАЛ ============ */
.footer {
    padding: 1.5rem 0;
    background: var(--primary);
    color: var(--white);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__logo {
    font-size: 1.1rem;
    font-weight: 800;
}

.footer__sub {
    font-size: 0.6rem;
    opacity: 0.8;
    margin-top: 2px;
}

.footer__copy {
    opacity: 0.8;
    font-size: 0.8rem;
}