:root {
    --primary-color: #4361ee;
    --primary-color-soft: #edf2ff;
    --primary-light: #3f37c9;
    --secondary-color: #4cc9f0;
    --accent-color: #f72585;
    --text-color: #1f2933;
    --text-muted: #6b7280;
    --bg-page: #f5f7fb;
    --bg-light: #ffffff;
    --bg-soft: #f9fafb;
    --border-color: #e5e7eb;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.07);
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --transition-fast: transform 0.18s ease-out, opacity 0.18s ease-out;
    --transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background: radial-gradient(circle at top left, #eef2ff 0, #f5f7fb 45%, #f9fafb 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}
ul {
    list-style: none;
}
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}
.text-muted {
    color: var(--text-muted);
}
main {
    padding-top: 120px;
}
.section,
.services,
.process,
.benefits,
.faq,
.cta {
    padding: 64px 0;
}
.section--alt {
    background: var(--bg-soft);
}
main > section + section {
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 -14px 30px rgba(15, 23, 42, 0.02);
}
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}
.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    border-radius: 999px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.section-subtitle {
    max-width: 680px;
    margin: 0 auto 2.4rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
}
.section__grid,
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.section__item,
.services__item {
    padding: 22px 22px 20px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.section__grid--two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* Pricing section and cards */
.pricing-section {
    /* inherits base .section paddings; override if needed */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: var(--shadow-soft);
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.pricing-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.pricing-card .services__text {
    margin-bottom: 1.1rem;
    color: var(--text-muted);
}

.pricing-features {
    margin: 0 0 1.4rem 1.1rem;
    padding: 0;
    list-style: disc;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-features li + li {
    margin-top: 0.3rem;
}

/* Optional footer in pricing cards (if понадобится кнопка) */
.pricing-card-footer {
    margin-top: auto;
}

.section__item::before,
.services__item::before {
    content: "";
    position: absolute;
    background: radial-gradient(circle at top left, rgba(67, 97, 238, 0.18), transparent 65%);
    opacity: 0;
    transform: translate(16px, -16px);
    transition: var(--transition);
}
.services__item--highlight {
    border-top: 3px solid var(--primary-color);
}

.section__item::before {
    inset: 0 0 auto auto;
    width: 80px;
    height: 80px;
    border-radius: 999px;
}
.services__item::before {
    inset: auto -50px -60px auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at top left, rgba(67, 97, 238, 0.22), transparent 65%);
    transform: translateY(12px);
}
.section__item:hover,
.services__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(67, 97, 238, 0.35);
}
.section__item:hover::before,
.services__item:hover::before {
    opacity: 1;
}
.section__subtitle,
.services__title {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
}
.section__text,
.services__text {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.services__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}
.services__link:hover {
    color: var(--primary-light);
    transform: translateX(2px);
}
.section .card,
.section .tariff,
.section .service-item {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.18);
    box-shadow: 0 12px 30px rgba(15,23,42,0.06);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.section .card h2,
.section .card h3,
.section .tariff h2,
.section .tariff h3,
.section .service-item h2,
.section .service-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.section .card p,
.section .tariff p,
.section .service-item p {
    margin-bottom: 8px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-family: inherit;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(30, 64, 175, 0.65);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(209, 213, 219, 0.7);
    color: #e5e7eb;
}
.btn-outline:hover {
    background: rgba(15, 23, 42, 0.2);
}
.cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 30px rgba(15, 23, 42, 0.06);
}
.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 13px;
}
.header__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 8px;
}
.logo {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
/* ИСПРАВЛЕНИЕ: убраны двойные точки и уменьшены псевдоэлементы */
.header__contacts .phone,
.header__contacts .email {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    gap: 6px;
}
.phone {
    font-weight: 600;
}
.header__contacts .phone::before {
    content: "📱";
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    margin-right: 6px;
    vertical-align: middle;
}
.header__contacts .email::before {
    content: "📧";
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    margin-right: 12px;
    vertical-align: middle;
}
/* КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ: уменьшены псевдоэлементы с -10px/-12px до -4px/-6px */
.header__contacts .phone::after,
.header__contacts .email::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    left: -6px;
    right: -6px;
}
.header__contacts .phone:hover,
.header__contacts .email:hover {
    color: var(--primary-light);
    text-decoration: underline;
    text-shadow: 0 0 0.5px rgba(67, 97, 238, 0.4);
}
.nav {
    display: flex;
    align-items: center;
}
.nav__list {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav__item {
    position: relative;
}
.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.96rem;
    font-weight: 500;
    color: #111827;
    padding: 6px 2px;
}
.nav__link::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition-fast);
}
.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}
.nav__link:hover::after,
.nav__link.active::after {
    transform: scaleX(1);
}
.dropdown-menu {
    position: absolute;
    inset: 100% auto auto 0;
    min-width: 230px;
    padding: 10px 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--transition);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    padding: 0 12px;
}
.dropdown-menu a {
    display: block;
    padding: 7px 4px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--primary-color-soft);
    color: var(--primary-color);
}
.burger {
    display: none;
    width: 30px;
    height: 20px;
    padding: 0;
    margin-left: 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}
.burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: var(--transition-fast);
}
.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
.header.scroll-down {
    transform: translateY(-100%);
}
.header.scroll-up {
    transform: translateY(0);
}
.hero {
    position: relative;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero:not(.hero--inner):not(.hero--image):not(.hero--service) {
    padding: 120px 0 96px;
}
.hero:not(.hero--inner):not(.hero--image):not(.hero--service)::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(76, 201, 240, 0.2), transparent 55%),
        radial-gradient(circle at top right, rgba(67, 97, 238, 0.7), rgba(30, 64, 175, 0.95));
    z-index: -2;
}
.hero:not(.hero--inner):not(.hero--image):not(.hero--service)::after {
    content: "";
    position: absolute;
    inset: 40% -20% -40%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.5), transparent 70%);
    z-index: -1;
}
.hero--inner,
.hero--service {
    position: relative;
    min-height: 400px;
    height: 60vh;
    max-height: 800px;
    padding: 100px 0 60px;
    text-align: center;
    background:
        linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    color: white;
    display: flex;
    align-items: center;
}


.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero--inner::before,
.hero--service::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(67, 97, 238, 0.3), transparent 50%),
        radial-gradient(circle at bottom right, rgba(76, 201, 240, 0.2), transparent 50%);
    z-index: 0;
}
.hero--inner .container,
.hero--service .container {
    position: relative;
    z-index: 1;
}
.hero__title {
    font-size: clamp(2rem, 4.4vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.01em;
    margin-bottom: 1.1rem;
    color: #ffffff;
}
.hero--inner .hero__title,
.hero--service .hero__title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.hero--image .hero__title {
    max-width: 600px;
}
.hero__subtitle {
    max-width: 620px;
    font-size: 1.02rem;
    color: rgba(241, 245, 249, 0.88);
    margin-bottom: 1.8rem;
}
.hero--inner .hero__subtitle,
.hero--service .hero__subtitle {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.hero--image .hero__subtitle {
    max-width: 520px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.4rem;
}
.hero__note {
    font-size: 0.93rem;
    color: rgba(241, 245, 249, 0.82);
    max-width: 480px;
}
.hero--inner .hero__note,
.hero--service .hero__note {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}
.process__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.process__step {
    padding: 22px 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: radial-gradient(circle at top left, rgba(224, 231, 255, 0.9), #ffffff);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}
.process__title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.process__text {
    font-size: 0.92rem;
    color: var(--text-muted);
}
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.benefits__item {
    position: relative;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-soft);
}
.benefits__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.benefits__title::before {
    content: "✓";
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8rem;
}
.benefits__text {
    font-size: 0.93rem;
    color: var(--text-muted);
}
.faq__list {
    max-width: 780px;
    margin: 2.4rem auto 0;
}
.faq__item {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #ffffff;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}
.faq__item.active {
    border-color: var(--primary-color);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
.faq__question {
    position: relative;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    padding-right: 26px;
}
.faq__question::after {
    content: "+";
    position: absolute;
    inset: 0 0 0 auto;
    width: 18px;
    text-align: right;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}
.faq__item.active .faq__question::after {
    content: "–";
    transform: translateY(1px);
}
.faq__answer {
    display: none;
    margin-top: 8px;
    font-size: 0.94rem;
    color: var(--text-muted);
}
.faq__item.active .faq__answer {
    display: block;
}
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: -60% -40% auto;
    background:
        radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.09), transparent 65%),
        radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.23), transparent 65%);
    opacity: 0.9;
}
.cta > .container {
    position: relative;
    z-index: 1;
}
.cta .section-title::after {
    background: rgba(248, 250, 252, 0.9);
}
.cta .section-subtitle {
    color: rgba(241, 245, 249, 0.9);
}
.cta .btn-primary {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.55);
}
.footer {
    background: radial-gradient(circle at top, #020617, #020617 55%, #020617);
    color: #e5e7eb;
    padding: 64px 0 22px;
    position: relative;
    margin-top: 40px;
}
.footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}
.footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 26px;
}
.footer__title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.footer__text {
    font-size: 0.9rem;
    color: rgba(209, 213, 219, 0.8);
    max-width: 290px;
}
.footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.social-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition-fast);
}
.social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.social-link:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
}
.footer__menu li {
    margin-bottom: 6px;
}
.footer__menu a {
    font-size: 0.9rem;
    color: rgba(209, 213, 219, 0.8);
}
.footer__menu a:hover {
    color: #ffffff;
    transform: translateX(3px);
}
.footer__contacts li {
    font-size: 0.9rem;
    color: rgba(209, 213, 219, 0.85);
    margin-bottom: 6px;
}
.footer__bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.4);
    padding-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
}

/* Исправленные медиазапросы для контактов */
@media (max-width: 768px) {
    .header__contacts {
        gap: 2px;
    }
    .footer__contacts li + li {
        margin-top: 6px;
    }
}

/* Дополнительные улучшения для десктопной версии */
@media (min-width: 769px) {
    .header__contacts .phone,
    .header__contacts .email {
        padding: 6px 10px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .header__contacts .phone:hover,
    .header__contacts .email:hover {
        background-color: rgba(67, 97, 238, 0.05);
    }
}

/* Специальные стили для больших экранов */
@media (min-width: 1920px) {
    .hero--inner,
    .hero--service {
        height: 50vh;
        max-height: 600px;
    }
}
@media (max-width: 1024px) {
    .hero--inner,
    .hero--service {
        height: 50vh;
        min-height: 350px;
        padding: 80px 0 40px;
    }
}
@media (max-width: 992px) {
    .header__top {
        padding: 6px 0;
        font-size: 12px;
    }
    main {
        padding-top: 116px;
    }
    .section,
    .services,
    .process,
    .benefits,
    .faq,
    .cta {
        padding: 52px 0;
    }
    .section__grid,
    .services__grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .process__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero--inner,
    .hero--service {
        min-height: 350px;
        padding: 80px 0 50px;
    }
    .hero--inner .hero__title,
    .hero--service .hero__title {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section__grid .section__item:nth-child(3):last-child {

        grid-column: 1 / -1;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 768px) {
    .burger {
        display: flex;
    }
    .header__bottom {
        padding: 8px 0 10px;
    }
    .nav {
        position: fixed;
        inset: 76px 0 auto 0;
        background: #ffffff;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px 18px;
        gap: 4px;
    }
    .nav__item {
        width: 100%;
    }
    .nav__link {
        width: 100%;
        padding: 9px 0;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 10px;
        margin-top: 4px;
        border: 1px dashed rgba(148, 163, 184, 0.4);
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 8px 10px;
    }
    .hero:not(.hero--inner):not(.hero--image):not(.hero--service) {
        padding: 96px 0 72px;
        text-align: left;
    }
    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .section,
    .services,
    .process,
    .benefits,
    .faq,
    .cta {
        padding: 44px 0;
    }
    .section__grid,
    .services__grid,
    .process__grid,
    .benefits__grid,
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero--image {
        padding: 130px 0 95px;
    }
    .hero--image::before {
        background: linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.70) 0%,
            rgba(15, 23, 42, 0.40) 45%,
            rgba(15, 23, 42, 0.12) 100%
        );
    }
    .hero--image picture,
    .hero--image img.hero-bg-img {
        object-position: 50% 50%;
    }
    .hero--inner,
    .hero--service {
        height: 40vh;
        min-height: 300px;
        padding: 60px 0 30px;
        background-position: center 40%;
    }
    .hero--inner .hero__title,
    .hero--service .hero__title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
}
@media (max-width: 480px) {
    .logo {
        font-size: 1.15rem;
    }
    .header__contacts {
        font-size: 12px;
    }
    /* ИСПРАВЛЕНИЕ: убрана двойная точка */
    .phone,
    .email {
        font-size: 0.82rem;
    }
    main {
        padding-top: 112px;
    }
    .hero__title {
        font-size: 1.85rem;
    }
    .hero__subtitle {
        font-size: 0.96rem;
    }
    .section,
    .services,
    .process,
    .benefits,
    .faq,
    .cta {
        padding: 38px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .hero--inner,
    .hero--service {
        height: auto;
        min-height: 250px;
        padding: 50px 0 20px;
    }
    .hero--inner .hero__title,
    .hero--service .hero__title {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    .hero--inner .hero__subtitle,
    .hero--service .hero__subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Mobile navigation overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 900;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 769px) {
    .nav-overlay {
        display: none;
    }
}


/* Additional header optimizations for small screens */
@media (max-width: 768px) {
    .header__top {
        padding: 4px 0;
    }
    .header__bottom {
        padding: 6px 0 8px;
    }
    .header__contacts {
        font-size: 11px;
    }
}
/* ===== Contact form (safe, no btn override) ===== */
.contact-form {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.contact-form__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.9);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--bg-soft);
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.contact-form__textarea { min-height: 130px; resize: vertical; }

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  background: var(--bg-light);
  border-color: rgba(67, 97, 238, 0.85);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.14);
}

@media (min-width: 768px) {
  .contact-form { grid-template-columns: 1fr 1fr; gap: 16px; padding: 26px; }
  .contact-form__label:nth-of-type(4) { grid-column: 1 / -1; } /* Сообщение */
  .contact-form button[type="submit"] { grid-column: 1 / -1; justify-self: start; }
}