:root {
    --yellow: #ffcc00;
    --dark: #111111;
    --card: #2a2a2a;
    --red: #ef3b3b;
    --green: #39c85a;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: #fff;
    scroll-behavior: smooth;
}

body {
    padding-top: var(--header-height);
}

button, input {
    font-family: 'Montserrat', sans-serif;
}

svg {
    display: block;
}

a {
    color: inherit;
}

/* ================= HEADER ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(20, 20, 20, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 24px;
    column-gap: 28px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
}

.logo span {
    color: var(--yellow);
}

.logo small {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    font-weight: 400;
    color: #fff;
    opacity: .9;
}

.nav-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.nav-desktop > a, .nav-dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-desktop a:hover, .nav-dropdown-toggle:hover {
    color: var(--yellow);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.nav-dropdown.active svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 204, 0, .2);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .25);
    display: none;
    flex-direction: column;
    gap: 4px;
}

.nav-dropdown.active .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-menu a {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: .92rem;
    text-decoration: none;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 204, 0, .08);
    color: var(--yellow);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    white-space: nowrap;
}

.phone-desktop {
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    opacity: .95;
}

.btn-header-max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    background: linear-gradient(180deg, #53d96d, #32b550);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 211, 102, .2);
    white-space: nowrap;
    min-width: 78px;
}

.mobile-logo, .phone-mobile, .burger-icon {
    display: none;
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .56);
    z-index: 1500;
    display: none;
}

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

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(86vw, 360px);
    background: #171717;
    border-right: 1px solid rgba(255, 204, 0, .16);
    padding: 18px 16px 24px;
    box-shadow: 20px 0 40px rgba(0, 0, 0, .25);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 800;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

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

.mobile-nav > a, .mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    background: #212121;
    border: 1px solid rgba(255, 255, 255, .04);
    color: #fff;
}

.mobile-submenu-toggle {
    cursor: pointer;
}

.mobile-submenu-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.mobile-submenu-menu {
    display: none;
    padding-top: 8px;
    gap: 6px;
    flex-direction: column;
}

.mobile-submenu-menu.active {
    display: flex;
}

.mobile-submenu-menu a {
    padding: 10px 12px 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    background: #1c1c1c;
    color: rgba(255, 255, 255, .9);
}

.mobile-menu-phone {
    display: block;
    margin-top: 18px;
    text-align: center;
    padding: 14px 16px;
    background: linear-gradient(180deg, #ff4d4d 0%, #d91d1d 100%);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

/* ================= TYPOGRAPHY & TITLES ================= */
.section-title {
    margin: 10px 0 50px !important; 
    text-align: center;
    font-size: 3rem;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--yellow);
}

.section-subtitle {
    max-width: 760px;
    margin: -20px auto 50px !important;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .68);
}

/* ================= HERO SECTION ================= */
.hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 20px 28px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 82% 24%, rgba(255, 204, 0, .17), transparent 28%), 
                radial-gradient(circle at 14% 78%, rgba(255, 204, 0, .08), transparent 35%), 
                linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px), 
                linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), 
                linear-gradient(180deg, #111 0%, #171717 100%);
    background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

.container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.left {
    max-width: 1080px;
    margin: 0 auto;
    padding-top: 0;
}

.hero-title-styled {
    margin: 0 0 22px;
    font-size: 3.7rem;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.8px;
    text-align: center; 
}

.hero-title-styled span {
    color: var(--yellow);
}

.desc {
    max-width: 1060px;
    margin: 0 auto 28px;
    font-size: 1.02rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
    font-weight: 500;
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 430px;
    padding: 18px 26px;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.red {
    background: linear-gradient(180deg, #ff4d4d 0%, #d91d1d 100%);
    box-shadow: 0 0 30px rgba(255, 0, 0, .28), 0 12px 26px rgba(255, 0, 0, .22);
}

.btn.green {
    background: linear-gradient(180deg, #39c85a 0%, #25a946 100%);
    box-shadow: 0 0 30px rgba(57, 200, 90, 0.35), 0 12px 26px rgba(57, 200, 90, 0.25);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.02;
}

.btn-content small {
    margin-top: 4px;
    font-size: .75rem;
    font-weight: 500;
    opacity: .92;
}

.btn .icon-main {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.features {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature {
    background: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), 
                linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px), 
                linear-gradient(180deg, #2a2a2a 0%, #242424 100%);
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid rgba(255, 204, 0, .28);
    border-left: 4px solid var(--yellow);
    border-radius: 14px;
    padding: 22px 16px 18px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
}

.feature-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    color: var(--yellow);
}

.feature strong {
    display: block;
    color: var(--yellow);
    text-transform: uppercase;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .35px;
    margin-bottom: 8px;
}

.feature p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, .92);
    font-weight: 500;
}

/* ================= BREADCRUMBS ================= */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a {
    text-decoration: none;
    color: #fff;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--yellow);
}

.breadcrumbs .current {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ================= SERVICES SECTION ================= */
.services-section {
    position: relative;
    padding: 30px 20px 86px;
    overflow: hidden;
    background: radial-gradient(circle at 78% 18%, rgba(255, 204, 0, .14), transparent 24%), 
                radial-gradient(circle at 18% 82%, rgba(255, 204, 0, .08), transparent 26%), 
                linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px), 
                linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), 
                linear-gradient(180deg, #101010 0%, #151515 100%);
    background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

.services-container {
    max-width: 1240px;
    margin: 0 auto;
}

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

.spacer { display: none; } /* Отключаем костыли из HTML, так как всё переписали */
.spacer-step { display: none; }

/* КОМПАКТНЫЕ КАРТОЧКИ УСЛУГ */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px 18px 20px !important; /* Уменьшенные и аккуратные поля */
    border-radius: 16px;
    background: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), 
                linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px), 
                linear-gradient(180deg, rgba(54, 54, 54, .92) 0%, rgba(38, 38, 38, .96) 100%);
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid rgba(255, 204, 0, .24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 10px 24px rgba(0, 0, 0, .22);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 3px 0 0 rgba(255, 204, 0, .9);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 204, 0, .4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 16px 28px rgba(0, 0, 0, .28), 0 0 24px rgba(255, 204, 0, .06);
}

.service-icon {
    width: 42px;
    height: 42px;
    color: var(--yellow);
    margin: 0 0 16px !important;
    flex-shrink: 0;
}

.service-card h2, .service-card h3 {
    margin: 0 0 10px !important; 
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}

.service-card p {
    margin: 0 0 20px !important;
    font-size: .85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, .78);
    flex-grow: 1;
}

.service-price {
    margin: 0 0 12px !important;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
    color: var(--yellow);
}

.service-btn {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7d94f 0%, #e2bb30 100%);
    color: #1b1b1b;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 18px rgba(255, 204, 0, .14);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.service-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 20px rgba(255, 204, 0, .18);
}

/* ================= CASES (ДО И ПОСЛЕ) ================= */
.cases-section {
    padding: 80px 20px;
    background: #111;
}

.cases-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 204, 0, 0.15);
}

.case-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--yellow);
}

.case-img-item {
    position: relative;
    aspect-ratio: 1/1;
    background: #222;
}

.case-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-label.after {
    color: var(--yellow);
    border: 1px solid var(--yellow);
}

.case-info {
    padding: 24px;
}

.case-info h4 {
    margin: 0 0 12px !important;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.4;
}

.case-info p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ================= TRUST SECTION & BENEFITS ================= */
.trust-section {
    position: relative;
    padding: 82px 20px 92px;
    overflow: hidden;
    background: radial-gradient(circle at 18% 18%, rgba(255, 204, 0, .10), transparent 20%), 
                radial-gradient(circle at 82% 82%, rgba(255, 204, 0, .08), transparent 22%), 
                linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px), 
                linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), 
                linear-gradient(180deg, #121212 0%, #161616 100%);
    background-size: auto, auto, 48px 48px, 48px 48px, auto;
}

.trust-container {
    max-width: 1240px;
    margin: 0 auto;
}

.brands-wrapper {
    margin-bottom: 48px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), 
                linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px), 
                linear-gradient(180deg, rgba(48, 48, 48, .85) 0%, rgba(32, 32, 32, .95) 100%);
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid rgba(255, 204, 0, .14);
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
    transition: .25s ease;
}

.brand-item:hover {
    color: var(--yellow);
    border-color: rgba(255, 204, 0, .28);
    transform: translateY(-2px);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.benefit-card {
    position: relative;
    padding: 24px 20px 20px !important;
    border-radius: 16px;
    background: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), 
                linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px), 
                linear-gradient(180deg, rgba(54, 54, 54, .88) 0%, rgba(36, 36, 36, .96) 100%);
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid rgba(255, 204, 0, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
    text-align: left;
    transition: .25s ease;
}

.benefit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 3px 0 0 rgba(255, 204, 0, .85);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 204, 0, .28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 14px 26px rgba(0, 0, 0, .24);
}

.benefit-icon {
    width: 42px;
    height: 42px;
    color: var(--yellow);
    margin: 0 0 16px !important;
}

.benefit-card h4 {
    margin: 0 0 12px !important;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
}

.benefit-card p {
    margin: 0;
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .7);
}

/* ================= SEO SECTION ================= */
.seo-section {
    padding: 84px 20px 100px;
    background: linear-gradient(180deg, #141414 0%, #101010 100%);
}

.seo-container {
    max-width: 1040px;
    margin: 0 auto;
}

.seo-content {
    background: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), 
                linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px), 
                linear-gradient(180deg, rgba(46, 46, 46, .88) 0%, rgba(30, 30, 30, .96) 100%);
    background-size: 32px 32px, 32px 32px, auto;
    border: 1px solid rgba(255, 204, 0, .14);
    border-left: 4px solid var(--yellow);
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
}

.seo-content p {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, .82);
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* ================= MODAL ================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
    border: 1px solid rgba(255, 204, 0, .18);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .55);
    padding: 28px 24px 24px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: .85;
}

.modal-title {
    margin: 0 0 10px;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 800;
}

.modal-title span {
    color: var(--yellow);
}

.modal-text {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.45;
    font-size: .98rem;
}

.modal-form {
    display: grid;
    gap: 12px;
}

.modal-form input {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 1rem;
    color: #111;
    background: #fff;
    outline: none;
}

.modal-form input::placeholder {
    color: #777;
}

.modal-submit {
    height: 56px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff4d4d 0%, #d91d1d 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 0, 0, .22), 0 12px 26px rgba(255, 0, 0, .18);
}

.form-message {
    display: none;
    margin-top: 10px;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
}

.form-message.success {
    color: #7CFF97;
}

.form-message.error {
    color: #ff8f8f;
}

/* ================= COMMON SECTIONS (STEPS, REVIEWS, FAQ) ================= */
.steps-section, .masters-section, .reviews-section, .faq-section, .contacts-section {
    padding: 70px 20px;
    background: var(--dark);
}

.steps-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: linear-gradient(180deg, rgba(42, 42, 42, .8) 0%, rgba(28, 28, 28, .9) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 34px 20px 20px !important;
    position: relative;
}

.step-num {
    position: absolute;
    top: -16px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--yellow);
    color: #111;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.step-card h4 {
    margin: 0 0 12px !important;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
}

.step-card p {
    margin: 0;
    font-size: .85rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5;
}

.masters-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.master-card {
    background: linear-gradient(180deg, rgba(42, 42, 42, .8) 0%, rgba(28, 28, 28, .9) 100%);
    border: 1px solid rgba(255, 204, 0, .16);
    border-radius: 16px;
    overflow: hidden;
}

.master-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
}

.master-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.master-info {
    padding: 20px;
}

.master-info h4 {
    margin: 0 0 12px !important;
    font-size: 1.1rem;
    color: var(--yellow);
    font-weight: 800;
}

.master-info p {
    margin: 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.55;
}

.reviews-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background: linear-gradient(180deg, rgba(42, 42, 42, .8) 0%, rgba(28, 28, 28, .9) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 24px 20px;
}

.review-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.review-author {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.review-stars {
    color: var(--yellow);
    font-size: 1.2rem;
}

.review-text {
    margin: 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: linear-gradient(180deg, rgba(42, 42, 42, .8) 0%, rgba(28, 28, 28, .9) 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    color: var(--yellow);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    padding: 0 24px 20px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.6;
}

.contacts-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(42, 42, 42, .8) 0%, rgba(28, 28, 28, .9) 100%);
    border: 1px solid rgba(255, 204, 0, .2);
    border-radius: 18px;
    padding: 34px 30px;
}

.contact-line {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .9);
}

.contact-line a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 700;
}

.contact-messengers {
    margin-top: 24px;
}

/* ================= FOOTER ================= */
.site-footer {
    background: #080808;
    border-top: 1px solid rgba(255, 204, 0, 0.15);
    padding: 60px 20px 50px;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.footer-logo span {
    color: var(--yellow);
}

.copyright {
    margin: 0 0 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.privacy-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--yellow);
}

.footer-title {
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 22px;
    font-weight: 800;
}

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

.footer-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.footer-nav a:hover {
    color: var(--yellow);
    transform: translateX(4px);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: var(--yellow);
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.btn-footer-max {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: linear-gradient(180deg, #53d96d, #32b550);
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-footer-max:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* ================= BLOG STYLES ================= */
.blog-main-grid > .blog-card:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 992px) {
    .blog-section > .container { flex-direction: column-reverse; }
    .blog-sidebar { width: 100% !important; }
}

@media (max-width: 768px) {
    .blog-section { padding: 0 14px 60px !important; }
    .blog-main-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* ================= MEDIA QUERIES (АДАПТИВ) ================= */
@media (min-width: 769px) {
    .container { order: 1; }
    .features { order: 2; }
}

@media (max-width: 1200px) {
    .header-container { grid-template-columns: auto auto auto; }
    .nav-desktop { gap: 24px; }
    .features { grid-template-columns: repeat(2, 1fr); max-width: 900px; gap: 20px; }
    .btn { min-width: 360px; }
    .services-grid, .steps-grid, .masters-grid, .reviews-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .services-title, .section-title { font-size: 2.45rem; }
    .brands-grid { grid-template-columns: repeat(4, 1fr); }
    .cases-grid { grid-template-columns: 1fr; max-width: 600px; }
}

@media (max-width: 992px) {
    :root { --header-height: 72px; }
    .header-container { display: flex; justify-content: space-between; }
    .nav-desktop, .phone-desktop { display: none; }
    .burger-icon { display: block; font-size: 1.35rem; color: #fff; background: none; border: none; padding: 0; cursor: pointer; }
}

@media (max-width: 768px) {
    :root { --header-height: 58px; }
    body { padding-top: 58px; }
    .site-header { height: 58px; }
    .header-container { display: grid; grid-template-columns: 24px 42px 1fr auto; align-items: center; padding: 0 10px; column-gap: 8px; }
    .logo, .phone-desktop { display: none; }
    .mobile-logo { display: block; font-size: 1.75rem; font-weight: 900; color: var(--yellow); line-height: 1; text-align: center; text-decoration: none; }
    .header-right { display: contents; }
    .phone-mobile { display: flex; justify-content: center; align-items: center; text-align: center; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 800; white-space: nowrap; min-width: 0; }
    .btn-header-max { padding: 7px 10px; font-size: .84rem; border-radius: 10px; min-width: 58px; justify-content: center; }
    .burger-icon { display: flex; flex-direction: column; justify-content: center; gap: 4px; background: none; border: none; padding: 0; cursor: pointer; }
    .burger-icon span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
    .hero { min-height: calc(100vh - 58px); min-height: calc(100svh - 58px); padding: 22px 10px 18px; justify-content: flex-start; }
    .features { order: 1; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 10px 0; margin: 0 auto 22px; }
    .container { order: 2; flex: none; }
    .left { padding-top: 8px; }
    
    .hero-title-styled {
        font-size: 1.8rem;
        line-height: 1.2;
        letter-spacing: -0.5px;
        margin-bottom: 18px;
        text-align: center;
    }

    .desc { font-size: .82rem; line-height: 1.28; margin-bottom: 20px; max-width: 100%; }
    .buttons { gap: 0; margin-bottom: 18px; }
    .btn { width: 100%; min-width: 0; padding: 14px 14px; font-size: .98rem; border-radius: 14px; gap: 10px; animation: mobilePulse 2.8s ease-in-out infinite; }
    .btn.green { animation: mobilePulseGreen 2.8s ease-in-out infinite; }
    .btn .icon-main { width: 19px; height: 19px; }
    .btn-content { align-items: center; text-align: center; }
    .btn-content small { margin-top: 3px; font-size: .72rem; line-height: 1.08; }
    .feature { padding: 12px 8px 10px; border-radius: 12px; }
    .feature-icon { width: 28px; height: 28px; margin-bottom: 8px; }
    .feature strong { font-size: .7rem; margin-bottom: 4px; }
    .feature p { font-size: .72rem; line-height: 1.12; }
    
    .breadcrumbs {
        padding: 20px 10px; 
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .services-section { padding: 30px 14px 60px; } 
    
    .section-title {
        font-size: 1.9rem;
        margin: 10px 0 40px !important; 
    }

    .section-subtitle { font-size: .88rem; line-height: 1.5; margin: -10px auto 40px !important; }
    
    /* ИСПРАВЛЕНИЕ: ЖЕСТКОЕ ПРАВИЛО 2 В РЯД НА МОБИЛЬНОМ */
    .services-grid, .benefits-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
    }
    
    /* ИСПРАВЛЕНИЕ: СУПЕР КОМПАКТНЫЕ КАРТОЧКИ НА МОБИЛЬНОМ */
    .service-card, .benefit-card { 
        padding: 14px 10px !important; 
        border-radius: 14px; 
    }
    .service-card::before, .benefit-card::before { border-radius: 14px; }
    
    .service-icon, .benefit-icon { 
        margin-bottom: 10px !important; 
        width: 32px; 
        height: 32px; 
    }
    
    .service-card h2, .service-card h3, .benefit-card h4 { 
        font-size: 0.85rem !important; 
        margin-bottom: 8px !important; 
        line-height: 1.25;
    }
    
    .service-card p, .benefit-card p { 
        font-size: 0.7rem !important; 
        line-height: 1.35; 
        margin-bottom: 12px !important;
    }
    
    .service-price { 
        font-size: 1.15rem !important; 
        margin-bottom: 10px !important; 
    }
    
    .service-btn { 
        height: 36px !important; 
        font-size: 0.85rem !important; 
        border-radius: 8px;
    }

    /* Карточки шагов (не меняем в ряд, они остаются 1 в ряд или как было) */
    .step-card { padding: 34px 16px 20px !important; }
    .step-card h4 { margin: 0 0 12px !important; font-size: 1rem; }
    .step-card p { font-size: .8rem; line-height: 1.5; margin-bottom: 0 !important; }
    
    .trust-section { padding: 56px 14px 62px; }
    .brands-wrapper { margin-bottom: 28px; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brand-item { min-height: 46px; font-size: .78rem; letter-spacing: .8px; border-radius: 12px; padding: 10px; }
    .seo-section { padding: 56px 14px 64px; }
    .seo-content { padding: 20px 16px; border-radius: 16px; }
    .seo-content p { font-size: .86rem; line-height: 1.55; margin-bottom: 14px; }
    .modal-dialog { padding: 22px 16px 18px; border-radius: 16px; }
    .modal-title { font-size: 1.28rem; }
    .modal-text { font-size: .88rem; }
    .modal-form input, .modal-submit { height: 48px; }
    .steps-section, .masters-section, .reviews-section, .faq-section, .contacts-section { padding: 54px 14px; }
    .steps-grid, .masters-grid, .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
    .faq-question { font-size: .95rem; padding: 16px; }
    .contacts-wrapper { padding: 24px 16px; }

    .footer-container { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .footer-menu-col { display: none; }
    .footer-contact-item { justify-content: center; text-align: center; }
    .footer-logo { margin-bottom: 12px; }
}

@keyframes mobilePulse {
    0% { transform: scale(1); box-shadow: 0 0 22px rgba(255, 0, 0, .20), 0 10px 22px rgba(255, 0, 0, .16); }
    50% { transform: scale(1.015); box-shadow: 0 0 28px rgba(255, 0, 0, .28), 0 12px 26px rgba(255, 0, 0, .20); }
    100% { transform: scale(1); box-shadow: 0 0 22px rgba(255, 0, 0, .20), 0 10px 22px rgba(255, 0, 0, .16); }
}

@keyframes mobilePulseGreen {
    0% { transform: scale(1); box-shadow: 0 0 22px rgba(57, 200, 90, .25), 0 10px 22px rgba(57, 200, 90, .20); }
    50% { transform: scale(1.015); box-shadow: 0 0 28px rgba(57, 200, 90, .40), 0 12px 26px rgba(57, 200, 90, .30); }
    100% { transform: scale(1); box-shadow: 0 0 22px rgba(57, 200, 90, .25), 0 10px 22px rgba(57, 200, 90, .20); }
}

@media (max-width: 400px) {
    .header-container { grid-template-columns: 22px 40px 1fr auto; padding: 0 8px; column-gap: 6px; }
    .phone-mobile { font-size: .95rem; }
    .hero-title-styled { font-size: 1.56rem; }
    .desc { font-size: .78rem; }
    .btn { font-size: .92rem; padding: 13px 12px; }
    .btn-content small { font-size: .68rem; }
    .feature p { font-size: .66rem; }
    
    .service-card h2, .service-card h3, .benefit-card h4 { font-size: .8rem !important; margin-bottom: 6px !important; }
    .service-card p, .benefit-card p { font-size: .65rem !important; margin-bottom: 10px !important; }
    
    .service-price { font-size: 1rem !important; }
    .service-btn { font-size: .75rem !important; padding: 8px !important; }
    .brand-item { font-size: .72rem; }
    .step-card h4 { font-size: .9rem !important; }
    .breadcrumbs { font-size: 0.8rem; padding: 15px 5px; }
}