/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Jost', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #25201f;
    background: #fff;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn--yellow {
    background: #ffba4c;
    color: #25201f;
}
.btn--yellow:hover {
    background: #f0aa38;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,186,76,0.45);
}
.btn--pill {
    border-radius: 50px;
    padding: 13px 32px;
}
.btn--full { width: 100%; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    font-size: 38px;
    font-weight: 700;
    color: #25201f;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-title--left { text-align: left; }
.section-sub {
    text-align: center;
    color: #888;
    font-size: 16px;
    margin-bottom: 44px;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
}

/* Top bar */
.header-top {
    background: #ffffff;
    border-bottom: 1px solid #ebebeb;
}
.header-top__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo__icon {
    width: 210px;
    height: 70px;
    object-fit: contain;
}
.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo__name {
    font-size: 18px;
    font-weight: 500;
    color: #25201f;
}
.logo__name strong {
    font-weight: 800;
    color: #25201f;
}
.logo__sub {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
}

/* Header contacts */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.header-contacts__area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.35;
}
.header-contacts__area svg { flex-shrink: 0; }
.header-contacts__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.header-contacts__num {
    font-size: 22px;
    font-weight: 700;
    color: #25201f;
    line-height: 1;
    white-space: nowrap;
}
.header-contacts__num:hover { color: #ffba4c; }
.header-contacts__hint {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

/* Nav bar */
.header-nav {
    background: transparent;
    padding: 8px 16px;
}
.header-nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}
.header-nav__inner a {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #25201f;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
}
.header-nav__inner a::after {
    content: '';
    position: absolute;
    bottom: 6px; left: 24px; right: 24px;
    height: 2px;
    background: #ffba4c;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.header-nav__inner a:hover { color: #ffba4c; }
.header-nav__inner a:hover::after { transform: scaleX(1); }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    background: #25201f;
    border-radius: 2px;
    transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.mobile-nav.open { max-height: 600px; }
.mobile-nav a {
    padding: 13px 24px;
    font-size: 15px;
    color: #25201f;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.mobile-nav a:hover { background: #fafafa; }
.mobile-nav__phone {
    font-weight: 700;
    font-size: 18px !important;
    color: #ffba4c !important;
    border-bottom: none !important;
}

/* Mobile header row — hidden by default */
.header-mobile-row {
    display: none;
}

/* Header height offset for anchors */
.header-offset { height: 130px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: stretch;
    padding-top: 130px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(3px) brightness(1.05);
    transform: scale(1.05);
}
.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.65);
}

/* Container becomes the grid */
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 320px;
    grid-template-rows: 1fr auto;
    align-items: end;
    gap: 0;
    padding-top: 40px;
    padding-bottom: 0;
    width: 100%;
    min-height: 510px;
}

/* ---- Left: title ---- */
.hero__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    z-index: 2;
    padding-right: 0;
    align-self: center;
    grid-column: 1 / 3;
    grid-row: 1;
    pointer-events: none;
}
.hero__left * { pointer-events: auto; }

.hero__title {
    font-size: 60px;
    font-weight: 800;
    color: #25201f;
    line-height: 1.2;
    max-width: 620px;
}

/* ---- Stat cards — positioned at bottom, overlapping the master ---- */
.hero__stats {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    grid-column: 1 / 3;
    grid-row: 2;
    z-index: 3;
    padding-bottom: 30px;
    padding-top: 10px;
    align-self: end;
    max-width: 640px;
    overflow: visible;
}

.hero__stat-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(37,32,31,0.10);
    padding: 18px 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: visible;
    margin-top: 30px;
}

.hero__stat-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    position: absolute;
    top: -30px;
    right: 8px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10));
}

.hero__stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    flex: 1;
}

.hero__stat-text strong {
    font-size: 20px;
    font-weight: 800;
    color: #25201f;
    font-style: italic;
}

.hero__stat-text span {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

/* ---- Center: master photo — extends behind stat cards ---- */
.hero__master {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    align-self: end;
    justify-self: end;
    z-index: 1;
    position: relative;
    margin-right: 200px;
}

.hero__master img {
    height: 540px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(37,32,31,0.10));
}

/* ---- Right: form card ---- */
.hero__form-card {
    background: linear-gradient(170deg, #88bbff 0%, #4998ff 100%);
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 2px 0 10px 0 rgba(37,32,31,0.12);
    align-self: center;
    z-index: 2;
    margin-left: 12px;
    grid-column: 3;
    grid-row: 1 / 3;
}

.hero__form-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero__form-pct { font-size: 34px; }

.hero__form input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 50px;
    border: none;
    background: rgba(255,255,255,0.92);
    font-size: 15px;
    color: #25201f;
    margin-bottom: 12px;
    outline: none;
    transition: background 0.2s;
}
.hero__form input:focus { background: #fff; }
.hero__form input::placeholder { color: #aaa; }

/* Phone row */
.phone-input {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    border-radius: 50px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: background 0.2s;
}
.phone-input:focus-within { background: #fff; }

.phone-flag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border-right: 1px solid #ddd;
    flex-shrink: 0;
    height: 48px;
}
.phone-code {
    font-size: 15px;
    font-weight: 600;
    color: #25201f;
}

.phone-input input {
    border: none;
    background: transparent;
    margin: 0;
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

.hero__form .btn--yellow {
    font-size: 16px;
    font-weight: 700;
    padding: 16px;
    border-radius: 50px;
}

.form-consent {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}
.form-consent a {
    color: rgba(255,255,255,0.95);
    text-decoration: underline;
}

/* ============================================================
   SERVICES / СТОИМОСТЬ РЕМОНТА
   ============================================================ */
.services {
    padding: 72px 0 80px;
    background: #fff;
}

/* Заголовок: СТОИМОСТЬ (синий) РЕМОНТА (чёрный) */
.services__title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #25201f;
    margin-bottom: 40px;
}
.services__title-blue { color: #4998ff; }

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

/* ---- Price card ---- */
.price-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.price-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.10);
    transform: translateY(-3px);
}

.price-card__img {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}
.price-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}
.price-card:hover .price-card__img img { transform: scale(1.04); }

.price-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.price-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #25201f;
    text-align: center;
    margin-bottom: 16px;
}

.price-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
    flex: 1;
}
.price-card__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}
.price-card__list li span:first-child {
    background: #f4f4f4;
    border-radius: 20px;
    padding: 5px 12px;
    color: #25201f;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.price-card__list li span:last-child {
    font-weight: 700;
    color: #25201f;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
}

.price-card__btns {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.price-card__btns .btn {
    flex: 1;
    font-size: 13px;
    padding: 11px 10px;
}

/* Outline кнопка */
.btn--outline-dark {
    background: transparent;
    color: #25201f;
    border: 2px solid #d0d0d0;
}
.btn--outline-dark:hover {
    border-color: #ffba4c;
    color: #f0aa38;
    transform: translateY(-2px);
    box-shadow: none;
}

/* ============================================================
   CONSULT CTA BANNER
   ============================================================ */
.consult-cta {
    background: linear-gradient(120deg, #3d8ef0 0%, #6dbcff 60%, #90d0ff 100%);
    overflow: hidden;
    position: relative;
}

.consult-cta__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    min-height: 380px;
}

/* Left content */
.consult-cta__left {
    flex: 1;
    padding: 52px 40px 52px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.consult-cta__pretitle {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
    font-weight: 400;
}

.consult-cta__title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.consult-cta__benefits {
    margin-bottom: 28px;
}

.consult-cta__benefits-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-weight: 400;
}

.consult-cta__benefits ul {
    list-style: disc;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.consult-cta__benefits li {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.consult-cta__benefits li strong {
    color: #fff;
    font-weight: 700;
}

/* Form */
.consult-cta__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 600px;
}

.consult-cta__inputs {
    display: flex;
    gap: 12px;
}

.consult-cta__inputs input,
.consult-cta__inputs .phone-input--light {
    flex: 1;
}

.consult-cta__inputs > input {
    padding: 14px 20px;
    border-radius: 50px;
    border: none;
    background: rgba(255,255,255,0.95);
    font-size: 15px;
    color: #25201f;
    outline: none;
    font-family: inherit;
    width: 100%;
}
.consult-cta__inputs > input::placeholder { color: #aaa; }
.consult-cta__inputs > input:focus { background: #fff; }

.phone-input--light {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 50px;
    overflow: hidden;
}
.phone-input--light:focus-within { background: #fff; }
.phone-input--light .phone-flag {
    border-right: 1px solid #ddd;
    height: 48px;
}
.phone-input--light input {
    border: none;
    background: transparent;
    padding: 14px 16px;
    font-size: 15px;
    color: #25201f;
    outline: none;
    font-family: inherit;
    flex: 1;
    min-width: 0;
}
.phone-input--light input::placeholder { color: #aaa; }

.consult-cta__submit {
    display: flex;
    align-items: center;
    gap: 20px;
}

.consult-cta__btn {
    font-size: 16px;
    font-weight: 700;
    padding: 16px 40px;
    flex-shrink: 0;
}

.consult-cta__consent {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}
.consult-cta__consent a {
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
}
.consult-cta__consent a:hover { color: #fff; }

/* Right photo */
.consult-cta__photo {
    flex-shrink: 0;
    width: 340px;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.consult-cta__photo > img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Name badge */
.consult-cta__badge {
    position: absolute;
    bottom: 24px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    max-width: 200px;
}
.consult-cta__badge strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #25201f;
    margin-bottom: 4px;
}
.consult-cta__badge span {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
    .consult-cta__photo { width: 260px; }
    .consult-cta__title { font-size: 22px; }
    .consult-cta__inputs { flex-direction: column; }
}
@media (max-width: 640px) {
    .consult-cta__inner { flex-direction: column; }
    .consult-cta__photo { width: 100%; height: 560px; }
    .consult-cta__photo > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 65% 38%;
    }
    .consult-cta__badge { right: auto; left: 16px; bottom: 16px; }
    .consult-cta__left { padding: 36px 0 24px; }
    .consult-cta__submit { flex-direction: column; align-items: flex-start; }
    .consult-cta__btn { width: 100%; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.howwork {
    padding: 80px 0;
    background: #fff;
}

.howwork__title {
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    color: #25201f;
    line-height: 1.25;
    margin-bottom: 36px;
}
.howwork__title-blue { color: #4998ff; }

/* Cards */
.howwork__card {
    position: relative;
    border-radius: 12px;
    background: linear-gradient(90deg, #88bbff 0%, #4998ff 100%);
    overflow: hidden;
    padding: 30px 30px 30px 36px;
}

.howwork__card--wide {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    min-height: 180px;
}

.howwork__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.howwork__card--half {
    min-height: 220px;
}

.howwork__card--step2 {
    background: linear-gradient(90deg, #88bbff 0%, #4998ff 100%);
    background-image: url('images/rect70.webp'), linear-gradient(90deg, #88bbff 0%, #4998ff 100%);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.howwork__card--step3 {
    background: linear-gradient(90deg, #88bbff 0%, #4998ff 100%);
    background-image: url('images/rect71.webp'), linear-gradient(90deg, #88bbff 0%, #4998ff 100%);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.howwork__card-num {
    position: absolute;
    top: 16px;
    left: 22px;
    font-size: 96px;
    font-weight: 900;
    color: #fff;
    opacity: 0.2;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.howwork__card-text {
    position: relative;
    z-index: 2;
    padding-left: 80px;
    flex: 1;
}

.howwork__card-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.howwork__card-desc {
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
    max-width: 520px;
}

.howwork__card-desc a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.howwork__card-img--wide {
    flex-shrink: 0;
    width: 380px;
    margin-right: -10px;
    position: relative;
    z-index: 2;
}

.howwork__card-img--wide img {
    width: 100%;
    display: block;
}

/* For half cards, title and desc need padding-top because number is at top */
.howwork__card--half .howwork__card-title {
    margin-top: 80px;
    padding-left: 0;
}

.howwork__card--half .howwork__card-desc {
    padding-left: 0;
    max-width: 360px;
}

/* ============================================================
   CASES — КАК МЫ ВОЗВРАЩАЕМ К ЖИЗНИ СТИРАЛЬНЫЕ МАШИНЫ
   ============================================================ */
.cases {
    padding: 80px 0;
    background: #fff;
}

/* Заголовок: КАК МЫ (чёрный) ВОЗВРАЩАЕМ К ЖИЗНИ (синий) СТИРАЛЬНЫЕ МАШИНЫ (чёрный) */
.cases__title {
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
    color: #25201f;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}
.cases__title-blue {
    color: #4998ff;
}

.cases__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Case card ---- */
.case-card {
    display: grid;
    grid-template-columns: 1fr 420px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.case-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* Left: text */
.case-card__content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.case-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #25201f;
    margin-bottom: 4px;
}

.case-card__block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.case-card__block p:not(.case-card__label) {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.case-card__label {
    font-size: 14px;
    font-weight: 700;
    color: #25201f;
}

/* Result list with blue checkmarks */
.case-card__results {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}
.case-card__results li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}
.case-card__results li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%234998ff'/%3E%3Cpath d='M5 9l3 3 5-6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center / contain;
}
.case-card__results li strong {
    font-weight: 700;
    color: #25201f;
}

/* Right: photo */
.case-card__photo {
    overflow: hidden;
}
.case-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.case-card:hover .case-card__photo img {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 900px) {
    .case-card {
        grid-template-columns: 1fr;
    }
    .case-card__photo {
        height: 260px;
        order: -1;
    }
}
@media (max-width: 640px) {
    .cases__title { font-size: 24px; }
    .case-card__content { padding: 20px; }
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews {
    padding: 80px 0;
    background: #f7f7f7;
}

.reviews__title {
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    color: #25201f;
}
.reviews__title-blue { color: #4998ff; }

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

.review-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.review-card__master {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
}

.review-card__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;
    border: 2px solid #e8f0fe;
}

.review-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #25201f;
    line-height: 1.2;
}

.review-card__cert {
    font-size: 12px;
    color: #888;
    line-height: 1.2;
}

.review-card__exp {
    display: inline-block;
    background: #4998ff;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-top: 4px;
    width: fit-content;
}

.review-card__img {
    width: 100%;
    height: auto;
    display: block;
    flex: 1;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
    padding: 80px 0;
    background: #fff;
}

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

.about__content .section-title { margin-bottom: 20px; }

.about__content p {
    font-size: 15px;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about__list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.about__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #25201f;
}
.about__list li::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #ffba4c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5L4.5 8 11 1' stroke='%2325201f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
}

.about__photo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about__photo > img {
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
}
.about__diploma {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f7f7f7;
    border-radius: 10px;
    padding: 14px 18px;
}
.about__diploma img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
}
.about__diploma span {
    font-size: 14px;
    font-weight: 600;
    color: #25201f;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    padding: 80px 0;
    background: #f7f7f7;
}
.faq .section-title { margin-bottom: 44px; }

.faq__list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    cursor: pointer;
    overflow: hidden;
}

.faq-item__q {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #25201f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}
.faq-item__q:hover { color: #f0aa38; }

.faq-item__arr {
    flex-shrink: 0;
    transition: transform 0.3s;
}
.faq-item.open .faq-item__arr { transform: rotate(180deg); }

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    transition: max-height 0.3s ease, padding 0.3s;
    padding: 0 24px;
}
.faq-item.open .faq-item__a {
    max-height: 200px;
    padding: 0 24px 20px;
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts {
    padding: 80px 0;
    background: #fff;
}
.contacts .section-title { margin-bottom: 44px; }

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.contact-row:last-of-type { margin-bottom: 0; }

.contact-row__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff8ec;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-row__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaa;
    margin-bottom: 4px;
}
.contact-row__val {
    font-size: 17px;
    font-weight: 700;
    color: #25201f;
}
a.contact-row__val:hover { color: #ffba4c; }

.contacts__form-card {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.contacts__form-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.contacts__form-card > p {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}
.contacts__form-card input,
.contacts__form-card textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    background: #fff;
    color: #25201f;
    transition: border-color 0.2s;
}
.contacts__form-card input:focus,
.contacts__form-card textarea:focus { border-color: #ffba4c; }
.contacts__form-card textarea { resize: vertical; }
.contacts__form-card .form-consent {
    color: #aaa;
    font-size: 12px;
    margin-top: 12px;
    text-align: center;
}
.contacts__form-card .form-consent a { color: #4998ff; text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: #25201f;
    color: rgba(255,255,255,0.75);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 48px;
    padding: 52px 0 36px;
}

.footer__brand .logo { margin-bottom: 16px; }

.logo__name--white,
.footer .logo__name { color: #fff; }
.logo__name--white strong,
.footer .logo__name strong { color: #ffba4c; }
.logo__sub--white,
.footer .logo__sub { color: rgba(255,255,255,0.5); }

.footer__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    max-width: 280px;
    line-height: 1.6;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.footer__col a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}
.footer__col a:hover { color: #ffba4c; }
.footer__phone {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffba4c !important;
}
.footer__col span {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}
.footer__bottom a {
    color: rgba(255,255,255,0.45);
    text-decoration: underline;
    transition: color 0.2s;
}
.footer__bottom a:hover { color: #ffba4c; }

/* ============================================================
   FLOATING CALL BUTTON
   ============================================================ */
.float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffba4c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255,186,76,0.55);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: floatPulse 2.5s infinite;
}
.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(255,186,76,0.7);
}
@keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(255,186,76,0.55), 0 0 0 0 rgba(255,186,76,0.4); }
    60% { box-shadow: 0 4px 20px rgba(255,186,76,0.55), 0 0 0 14px rgba(255,186,76,0); }
}

/* ============================================================
   RESPONSIVE — 1100px
   ============================================================ */
@media (max-width: 1150px) {
    .hero__inner {
        grid-template-columns: 1fr auto 280px;
    }
    .hero__title { font-size: 34px; max-width: 560px; }
    .hero__master img { height: 440px; }
    .hero__stats { max-width: 540px; }
    .header-nav__inner a { padding: 14px 16px; font-size: 14px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .price-card__list li span:first-child { font-size: 12px; padding: 4px 10px; }
    .reviews__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .hero__inner {
        grid-template-columns: 1fr auto 260px;
    }
    .hero__title { font-size: 30px; max-width: 480px; }
    .hero__master img { height: 380px; }
    .hero__stats { max-width: 460px; }
    .hero__stat-text strong { font-size: 15px; }
    .hero__stat-icon { width: 36px; height: 36px; }
}

/* ============================================================
   RESPONSIVE — 900px (tablet)
   ============================================================ */
@media (max-width: 900px) {
    .burger { display: flex; }
    .mobile-nav { display: flex; }
    .header-top__inner .btn--pill { display: none; }
    .header-contacts__area { display: none; }

    /* Hero: hide master, 2-column layout */
    .hero {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 30px;
    }
    .hero__inner {
        grid-template-columns: 1fr 280px;
        grid-template-rows: auto auto;
    }
    .hero__master { display: none; }
    .hero__left { grid-column: 1; grid-row: 1; gap: 20px; padding-right: 20px; }
    .hero__form-card { grid-column: 2; grid-row: 1 / 3; align-self: center; margin-left: 0; }
    .hero__title { font-size: 26px; max-width: 100%; }
    .hero__stats { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; max-width: 100%; padding-bottom: 0; }
    .hero__stat-card { min-width: 120px; }

    .howwork__row { grid-template-columns: 1fr; }
    .howwork__card--wide { flex-direction: column; }
    .howwork__card-img--wide { width: 100%; margin-right: 0; }
    .howwork__card-text { padding-left: 20px; }
    .howwork__card--half .howwork__card-title { margin-top: 60px; }
    .howwork__card-num { font-size: 64px; }

    .about__inner { grid-template-columns: 1fr; }
    .contacts__inner { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }

    .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 28px; }
}

/* ============================================================
   RESPONSIVE — 640px (mobile)
   ============================================================ */
@media (max-width: 640px) {

    /* --- Header mobile: 2 rows like competitor --- */
    .header-top__inner {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* Row 1: logo + area info */
    .logo { order: 1; }
    .header-contacts { order: 2; margin-left: auto; gap: 0; }
    .header-contacts__area { display: flex !important; font-size: 11px; }
    .header-contacts__phone { display: none !important; }

    /* Hide desktop button and burger */
    .header-top__inner > .btn--pill { display: none !important; }
    .burger { display: none !important; }

    /* Row 2: mobile consult button + phone */
    .header-mobile-row {
        display: flex !important;
        order: 4;
        width: 100%;
        align-items: center;
        gap: 16px;
        padding-top: 6px;
        border-top: 1px solid #f0f0f0;
    }
    .header-mobile-row .btn--mobile-consult {
        padding: 10px 18px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .header-mobile-row .header-mobile-phone {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex: 1;
    }
    .header-mobile-phone__info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex: 1;
    }
    .header-mobile-row .header-contacts__num {
        font-size: 18px;
    }
    .header-mobile-row .header-contacts__hint {
        font-size: 11px;
    }
    .btn--order-call {
        display: inline-flex !important;
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .header-nav { display: none; }
    .mobile-nav { display: flex; }

    /* --- Hero mobile: title → stats → master → form --- */
    .hero {
        padding-top: 180px;
        padding-bottom: 0;
        min-height: auto;
    }
    .hero__inner {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 24px;
        padding-bottom: 0;
    }

    /* 1. Title */
    .hero__left {
        order: 1;
        grid-column: unset;
        grid-row: unset;
        gap: 16px;
        padding-right: 0;
        pointer-events: auto;
        margin-bottom: 24px;
    }
    .hero__title {
        font-size: 34px;
        font-weight: 800;
        max-width: 100%;
        line-height: 1.2;
    }

    /* 2. Stat cards — full width, stacked vertically, large like competitor */
    .hero__stats {
        order: 2;
        grid-column: unset;
        grid-row: unset;
        flex-direction: column;
        gap: 18px;
        max-width: 100%;
        padding-bottom: 0;
        padding-top: 0;
        margin-bottom: 0;
    }
    .hero__stat-card {
        flex: none;
        width: 100%;
        padding: 20px 22px;
        padding-right: 80px;
        margin-top: 0;
        position: relative;
        min-height: 80px;
        border-radius: 14px;
    }
    .hero__stat-icon {
        position: absolute;
        top: -18px;
        right: 10px;
        width: 76px;
        height: 76px;
    }
    .hero__stat-text strong {
        font-size: 24px;
    }
    .hero__stat-text span {
        font-size: 14px;
        margin-top: 4px;
    }

    /* 3. Master — VISIBLE on mobile, full width */
    .hero__master {
        display: block !important;
        order: 3;
        grid-column: unset;
        grid-row: unset;
        justify-self: center;
        align-self: auto;
        margin-right: 0;
        margin-top: 24px;
        width: 100%;
        text-align: center;
    }
    .hero__master img {
        height: auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* 4. Form — overlaps bottom of master, centered */
    .hero__form-card {
        order: 4;
        grid-column: unset;
        grid-row: unset;
        margin: -60px auto 0 auto;
        align-self: center;
        position: relative;
        z-index: 3;
        border-radius: 20px;
        width: 100%;
        max-width: 380px;
    }

    /* Other sections */
    .services__grid { grid-template-columns: 1fr; }
    .price-card__btns { flex-direction: column; }
    .reviews__grid { grid-template-columns: 1fr; }
    .portfolio__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }
    .footer__bottom { flex-direction: column; text-align: center; }

    .float-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

/* ============================================================
   RESPONSIVE — 420px (small mobile)
   ============================================================ */
@media (max-width: 420px) {
    .hero__title { font-size: 34px; }
    .hero__stat-icon { width: 56px; height: 56px; top: -16px; }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.active {
    display: flex;
}
body.modal-open {
    overflow: hidden;
}
.modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn .2s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    transition: color .15s;
}
.modal__close:hover { color: #333; }
.modal__icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
}
.modal__title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 6px;
}
.modal__sub {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}
.modal__form .phone-input {
    margin-bottom: 12px;
}
@media (max-width: 480px) {
    .modal { padding: 32px 20px 24px; }
    .modal__title { font-size: 18px; }
}
