/* Размеры, отступы и цвета сняты с макета «NEW SHABLON Dekstop.svg» (ширина 1920, контейнер 1320) */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
    --yellow: #FFC501;
    --dark: #535353;
    --text: #3D3D3D;
    --muted: #9A9A9A;
    --gray-bg: #EAEAEA;
    --gray-btn: #E5E5E5;
    --gray-light: #F6F6F6;
    --radius: 26px;
    --divider: radial-gradient(ellipse at center, #9A9A9A 0%, rgba(52, 52, 52, 0) 70%);
}

/* ===================== БАЗА ===================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.2;
    color: #000;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure, fieldset {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img, video {
    display: block;
    max-width: 100%;
}

button, input, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1320px, 100% - 40px);
    margin-inline: auto;
}

.section__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* ===================== КНОПКИ ===================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .2s, background-color .2s;
}

.btn:hover {
    opacity: .85;
}

.btn--primary { background: var(--yellow); color: #000; }
.btn--dark    { background: #000; color: #fff; }
.btn--light   { background: #fff; color: #000; }
.btn--gray    { background: var(--gray-btn); color: #000; }
.btn--outline { background: transparent; color: #000; border: 1.5px solid var(--dark); }

/* ===================== 1. ШАПКА ===================== */

.header {
    padding: 47px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo img {
    width: 135px;
    height: auto;
}

.header__logo {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.header__menu {
    display: flex;
    gap: 44px;
}

.header__menu a {
    font-size: 15px;
    font-weight: 500;
}

.header__menu a:hover {
    color: var(--muted);
}

.header__actions {
    display: flex;
    gap: 16px;
}

.header__actions .btn {
    height: 40px;
    border-radius: 20px;
}

.header__actions .btn--outline {
    padding: 0 12px;
}

.header__actions .btn--primary {
    min-width: 172px;
    background: var(--dark);
    color: #fff;
}

.header__burger {
    display: none;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    border: 0;
    background: none;
    flex-direction: column;
    justify-content: space-between;
}

.header__burger span {
    display: block;
    height: 2px;
    background: #000;
    border-radius: 2px;
}

/* ===================== 2. ГЛАВНЫЙ ЭКРАН ===================== */

.hero {
    padding: 148px 0 100px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 675px 1fr;
    align-items: center;
    gap: 94px;
}

.hero__media {
    order: -1;
    margin-left: -30px;
}

.hero__image {
    width: 675px;
    height: 528px;
    object-fit: cover;
    object-position: 48% 66%;
}

.hero__title {
    max-width: 590px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    max-width: 490px;
    margin-top: 26px;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: var(--text);
}

/* ===================== 3. ПРОГРАММА ПРИВИЛЕГИЙ ===================== */

.privileges {
    padding: 100px 0;
}

.privileges__inner {
    display: grid;
    grid-template-columns: 845fr 445fr;
    gap: 30px;
}

.privileges__content {
    display: flex;
    flex-direction: column;
    min-height: 790px;
    padding: 50px 50px 65px;
    background: var(--yellow);
    border-radius: var(--radius);
}

.privileges__label {
    font-size: 20px;
    color: var(--text);
}

.privileges__title {
    max-width: 740px;
    margin-top: 40px;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.privileges__text {
    max-width: 530px;
    margin-top: 22px;
    font-size: 20px;
    line-height: 1;
    color: var(--text);
}

.privileges__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 40px;
}

.privileges__stats {
    position: relative;
    display: flex;
    gap: 60px;
    margin-top: auto;
    padding-top: 55px;
}

.privileges__stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--divider);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat__value {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 20px;
    color: var(--text);
}

.privileges__media {
    overflow: hidden;
    border-radius: var(--radius);
    background: #1c1c1c;
}

.privileges__video {
    width: 100%;
    height: 100%;
    min-height: 790px;
    object-fit: cover;
}

/* ===================== КАК РАБОТАЕТ ===================== */

.how-it-works {
    padding: 100px 0 200px;
}

.how-it-works .section__title {
    margin-bottom: 27px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step {
    min-height: 250px;
    padding: 30px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    color: var(--text);
}

.step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--yellow);
    border-radius: 14px;
    font-size: 40px;
    font-weight: 700;
    color: #000;
}

.step__title {
    margin-top: 44px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.05;
}

.step__text {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.1;
}

/* ===================== 4. КАЛЬКУЛЯТОР ===================== */

.calculator {
    padding: 200px 0 100px;
    background: var(--gray-bg);
}

.calculator__inner {
    display: grid;
    grid-template-columns: 1fr 490px;
    gap: 40px;
    min-height: 450px;
    padding: 50px;
    background: #fff;
    border-radius: var(--radius);
}

.calculator__form .section__title {
    max-width: 540px;
    line-height: 1;
}

.calculator__group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    border: 0;
}

.calculator__group--amount {
    display: block;
    margin-top: 50px;
}

.calculator__group--amount .calculator__legend {
    float: none;
    display: block;
    margin-bottom: 12px;
}

.calculator__legend {
    float: left;
    width: 100%;
    margin-bottom: -2px;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
}

.chip {
    cursor: pointer;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    height: 38px;
    padding: 0 20px;
    border: 1.5px solid var(--dark);
    border-radius: 19px;
    font-size: 15px;
    transition: background-color .2s;
}

/* ползунок суммы (макет: серая линия 4px, жёлтый кружок 16px, сумма над кружком) */
.range {
    position: relative;
    max-width: 610px;
    padding-top: 30px;
}

.range__value {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

.range__input {
    display: block;
    width: 100%;
    height: 16px;
    margin: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.range__input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: var(--muted);
}

.range__input::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--muted);
}

.range__input::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    -webkit-appearance: none;
    appearance: none;
    transition: transform .15s;
}

.range__input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 50%;
    background: var(--yellow);
    transition: transform .15s;
}

.range__input:hover::-webkit-slider-thumb,
.range__input:active::-webkit-slider-thumb {
    transform: scale(1.25);
}

.range__input:hover::-moz-range-thumb,
.range__input:active::-moz-range-thumb {
    transform: scale(1.25);
}

.range__input:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
    border-radius: 4px;
}

.chip input:checked + span {
    background: var(--yellow);
    border-color: var(--yellow);
    font-weight: 700;
}

.chip input:focus-visible + span {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.calculator__result {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: var(--dark);
    border-radius: var(--radius);
    color: #fff;
}

.calculator__result-label {
    font-size: 18px;
}

.calculator__result-value {
    margin: 6px 0 16px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.calculator__result-value--accent {
    color: var(--yellow);
}

.calculator__btn {
    height: 69px;
    margin-top: auto;
    border-radius: 16px;
    font-size: 24px;
}

/* ===================== ПРЕДЛОЖЕНИЯ МЕСЯЦА ===================== */

.offer {
    padding: 100px 0 200px;
    margin-bottom: 100px;
    background: var(--gray-bg);
}

.offer .section__title {
    margin-bottom: 44px;
}

.offer__grid {
    display: grid;
    grid-template-columns: 375fr 442fr 442fr;
    grid-template-rows: 264px 264px;
    gap: 30px;
}

.offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #2a2a2a;
    color: #fff;
}

.offer-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* затемнение снизу под текст */
.offer-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
}

.offer-card > *:not(.offer-card__image) {
    position: relative;
    z-index: 1;
}

.offer-card__category {
    margin-bottom: auto;
    font-size: 15px;
}

.offer-card__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.offer-card__text {
    margin-top: 6px;
    font-size: 15px;
}

/* большая карточка */
.offer-card--big {
    grid-row: span 2;
}

.offer-card--big .offer-card__image {
    object-position: 18% 50%;
}

.offer-card--big::after {
    height: 70%;
}

.offer-card--big .offer-card__category {
    margin-bottom: 8px;
}

.offer-card--big .offer-card__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
}

.offer-card__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    height: 45px;
    margin-top: 18px;
    padding: 0 20px;
    background: var(--yellow);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

/* жёлтая карточка с анонсами */
.offer-card--news {
    grid-column: span 2;
    background: var(--yellow);
    color: #000;
}

.offer-card--news::after {
    display: none;
}

.offer-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: auto;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    height: 30px;
    padding: 0 12px;
    border: 1.5px solid #000;
    border-radius: 15px;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.tag:hover:not(.tag--active) {
    background: rgba(0, 0, 0, .08);
}

.tag--active {
    background: #000;
    color: #fff;
    font-weight: 600;
}

.offer-card--news .offer-card__title {
    font-size: 48px;
    font-weight: 700;
}

.offer-card--news .offer-card__text {
    margin-top: 10px;
    font-size: 20px;
}

/* ===================== 5. НАШИ ПАРТНЁРЫ ===================== */

.partners {
    padding: 100px 0;
}

.partners__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.partners__controls {
    display: flex;
    gap: 31px;
}

.partners__search input {
    width: 304px;
    height: 50px;
    padding: 0 16px 0 52px;
    border: 1.5px solid var(--dark);
    border-radius: 16px;
    outline: none;
    font-size: 15px;
    background: #fff url("img/icons/search.svg") no-repeat 16px center / 22px 22px;
}

.partners__search input::placeholder {
    color: var(--muted);
}

.partners__sort {
    height: 50px;
    padding: 0 32px;
    border: 1.5px solid var(--dark);
    border-radius: 16px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
}

.partners__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 16px;
    margin-top: 45px;
}

.filter {
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--dark);
    border-radius: 20px;
    background: #fff;
    font-size: 15px;
    transition: background-color .2s;
}

.filter:hover {
    background: var(--gray-light);
}

.filter.is-active {
    background: var(--yellow);
    border-color: var(--yellow);
    font-weight: 700;
}

.partners__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 100px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gray-btn);
    border-radius: var(--radius);
    background: #fff;
}

.partner-card__media {
    position: relative;
    height: 173px;
    background: var(--gray-bg);
}

.partner-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-card__badge {
    position: absolute;
    left: 21px;
    bottom: 15px;
    display: inline-flex;
    align-items: center;
    height: 33px;
    padding: 0 10px;
    background: var(--yellow);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.partner-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px 20px 19px;
}

.partner-card__category {
    font-size: 13px;
}

.partner-card__name {
    margin-top: 4px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.partner-card__desc {
    margin-top: 10px;
    font-size: 13px;
}

.partner-card__info {
    margin-top: 18px;
    font-size: 13px;
}

.partner-card__actions {
    display: flex;
    gap: 4px;
    margin-top: auto;
    padding-top: 26px;
}

.partner-card__actions .btn {
    height: 37px;
    padding: 0 16px;
    border-radius: 11px;
}

.partner-card__actions .btn--primary {
    flex: 1;
}

.partners__more {
    display: flex;
    width: max-content;
    min-width: 239px;
    height: 50px;
    margin: 51px auto 0;
    border: 0;
    border-radius: 11px;
    background: var(--gray-btn);
    font-size: 16px;
}

/* ===================== 6. ПАРТНЁРЫ РЯДОМ С ВАМИ ===================== */

.nearby {
    margin-top: 100px;
    padding: 200px 0 50px;
    background: var(--gray-bg);
}

.nearby__inner {
    display: grid;
    grid-template-columns: 1fr 730px;
    min-height: 466px;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius);
}

.nearby__content {
    padding: 50px;
}

.nearby__content .section__title {
    max-width: 340px;
}

.nearby__text {
    max-width: 340px;
    margin-top: 30px;
    font-size: 18px;
    line-height: 1;
}

.nearby__districts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 50px;
}

.nearby__districts .filter {
    font-size: 18px;
}

.nearby__map {
    min-height: 466px;
    background: #e7ece6;
}

.nearby__map-image {
    width: 100%;
    height: 100%;
    min-height: 466px;
    object-fit: cover;
}

/* ===================== СОЦСЕТИ ===================== */

.social {
    padding: 50px 0 200px;
    margin-bottom: 100px;
    background: var(--gray-bg);
}

.social__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 361px;
    padding: 50px;
    background: #fff;
    border-radius: var(--radius);
}

.social-card__title {
    max-width: 520px;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.social-card__text {
    max-width: 460px;
    margin-top: 30px;
    font-size: 18px;
    line-height: 1;
}

.social-card--telegram {
    background: var(--dark);
    color: #fff;
}

.social-card--telegram .btn {
    height: 45px;
    margin-top: 48px;
    padding: 0 20px;
    border-radius: 15px;
}

.social-card__posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 28px;
}

.social-card__post {
    display: block;
    height: 150px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-bg);
}

.social-card__post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================== 7. СТАТЬ ПАРТНЁРОМ ===================== */

.become-partner {
    padding: 100px 0;
}

.become-partner__inner {
    display: grid;
    grid-template-columns: 1fr 655px;
    gap: 40px;
    min-height: 482px;
    padding: 50px;
    background: var(--yellow);
    border-radius: var(--radius);
}

.become-partner__content {
    display: flex;
    flex-direction: column;
}

.become-partner__content .section__title {
    max-width: 340px;
}

.become-partner__text {
    max-width: 400px;
    margin-top: 30px;
    font-size: 18px;
    line-height: 1;
}

.become-partner__benefits {
    margin-top: auto;
    padding-top: 40px;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.become-partner__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 30px 20px;
    background: #fff;
    border-radius: var(--radius);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field__label {
    font-size: 15px;
    font-weight: 500;
}

.form-field input {
    height: 50px;
    padding: 0 15px;
    border: 1.5px solid var(--dark);
    border-radius: 16px;
    outline: none;
    font-size: 15px;
}

.form-field input::placeholder {
    color: var(--muted);
}

.form-field input:focus {
    border-color: #000;
}

.become-partner__form .btn {
    height: 50px;
    margin-top: 20px;
    border-radius: 17px;
    font-size: 20px;
}

/* ===================== ЧАСТЫЕ ВОПРОСЫ ===================== */

.faq {
    padding: 100px 0;
}

.faq__inner {
    display: grid;
    grid-template-columns: 323px 1fr;
}

.faq__head .section__title {
    line-height: 1;
}

.faq__text {
    max-width: 240px;
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.2;
}

.faq__text a:hover {
    text-decoration: underline;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq__item {
    background: var(--gray-light);
    border-radius: 11px;
}

.faq__question {
    position: relative;
    display: block;
    padding: 18px 60px 18px 20px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

/* стрелка: > закрыто, v открыто */
.faq__question::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    width: 11px;
    height: 11px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform .2s;
}

.faq__item[open] .faq__question::after {
    transform: translateY(-75%) rotate(45deg);
}

.faq__answer {
    padding: 12px 20px 16px;
    font-size: 18px;
}

.faq__answer:empty {
    display: none;
}

/* ===================== 8. ПОДВАЛ ===================== */

.footer {
    position: relative;
    padding: 200px 0 190px;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1320px, 100% - 40px);
    height: 1px;
    transform: translateX(-50%);
    background: var(--divider);
}

.footer__inner {
    display: grid;
    grid-template-columns: 500px 296px 1fr auto;
    color: var(--text);
}

.footer__col--about {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.footer__logo img {
    width: 135px;
    height: 30px;
    object-fit: contain;
}

.footer__about {
    max-width: 300px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
    color: #595959;
}

.footer__title {
    margin-bottom: 29px;
    font-size: 15px;
    font-weight: 600;
}

.footer__col ul:not(.footer__social) {
    display: flex;
    flex-direction: column;
    gap: 29px;
}

.footer__col a:hover {
    color: #000;
}

.footer__phone {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.footer__social {
    display: flex;
    gap: 50px;
    margin-top: 64px;
}

.footer__social a {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__social img {
    width: 27px;
    height: 27px;
}

/* ===================== АДАПТИВ ===================== */

@media (max-width: 1280px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero__media {
        margin-left: 0;
    }

    .hero__image {
        width: 100%;
        height: auto;
    }

    .header__menu {
        gap: 24px;
    }

    .calculator__inner {
        grid-template-columns: 1fr 420px;
    }

    .nearby__inner {
        grid-template-columns: 1fr 1fr;
    }

    .become-partner__inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer__inner {
        grid-template-columns: repeat(4, auto);
        justify-content: space-between;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .privileges__inner,
    .calculator__inner,
    .nearby__inner,
    .social__inner,
    .become-partner__inner,
    .faq__inner {
        grid-template-columns: 1fr;
    }

    .privileges__media {
        height: 600px;
    }

    .privileges__video {
        min-height: 0;
    }

    .steps,
    .partners__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .offer-card {
        min-height: 264px;
    }

    .offer-card--big {
        grid-row: auto;
        grid-column: span 2;
        min-height: 450px;
    }

    .partners__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq__list {
        margin-top: 40px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section__title,
    .hero__title,
    .social-card__title,
    .offer-card--big .offer-card__title,
    .offer-card--news .offer-card__title {
        font-size: 34px;
    }

    .privileges__title {
        font-size: 40px;
    }

    .header {
        padding: 20px 0;
    }

    /* на телефоне: язык и кабинет остаются, у кабинета только иконка */
    .header__actions {
        gap: 8px;
        margin-left: auto;
        margin-right: 12px;
    }

    .header__actions .btn--primary {
        min-width: 0;
        width: 40px;
        padding: 0;
    }

    .header__cabinet span {
        display: none;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .privileges,
    .partners,
    .become-partner,
    .faq {
        padding: 60px 0;
    }

    .how-it-works {
        padding: 60px 0 100px;
    }

    .calculator {
        padding: 100px 0 60px;
    }

    .offer {
        padding: 60px 0 100px;
        margin-bottom: 60px;
    }

    .nearby {
        margin-top: 60px;
        padding: 100px 0 30px;
    }

    .social {
        padding: 30px 0 100px;
        margin-bottom: 60px;
    }

    .privileges__content,
    .calculator__inner,
    .nearby__content,
    .social-card,
    .become-partner__inner {
        padding: 30px 20px;
    }

    .privileges__content {
        min-height: 0;
    }

    .privileges__stats {
        flex-wrap: wrap;
        gap: 30px;
        margin-top: 50px;
    }

    .steps,
    .partners__list,
    .offer__grid,
    .social-card__posts {
        grid-template-columns: 1fr;
    }

    .offer-card--big,
    .offer-card--news {
        grid-column: auto;
    }

    .partners__controls {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .partners__search input {
        width: 100%;
    }

    .partners__list {
        margin-top: 40px;
    }

    .calculator__result-value {
        font-size: 36px;
    }

    .footer {
        padding: 80px 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }
}

/* ===================== СОСТОЯНИЯ ДЛЯ script.js ===================== */

[hidden] {
    display: none !important;
}

body.no-scroll {
    overflow: hidden;
}

.partners__empty {
    margin-top: 60px;
    font-size: 18px;
    text-align: center;
    color: var(--muted);
}

.form-field input.is-error {
    border-color: #E5484D;
}

.form-message {
    font-size: 15px;
}

.form-message--success { color: #1F8A3B; }
.form-message--error   { color: #E5484D; }

.btn:disabled {
    opacity: .6;
    cursor: default;
}

/* мобильное меню, открытое бургером */
@media (max-width: 1024px) {
    .header.is-menu-open .header__nav {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 100;
        padding: 100px 20px 40px;
        background: #fff;
        overflow-y: auto;
    }

    .header.is-menu-open .header__menu {
        flex-direction: column;
        gap: 24px;
    }

    .header.is-menu-open .header__menu a {
        font-size: 24px;
        font-weight: 600;
    }

    .header.is-menu-open .header__burger {
        position: relative;
        z-index: 101;
    }

    .header__burger span {
        transition: transform .2s, opacity .2s;
    }

    .header.is-menu-open .header__burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .header.is-menu-open .header__burger span:nth-child(2) { opacity: 0; }
    .header.is-menu-open .header__burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ===================== КАРТОЧКИ ПАРТНЁРОВ ИЗ ДАННЫХ ===================== */

.partner-card__badge {
    max-width: calc(100% - 42px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.partner-card__actions .btn--gray {
    flex: 0 0 91px;
}

/* ===================== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА RU / UZ ===================== */

.lang-switch {
    gap: 2px;
    color: var(--muted);
}

.lang-switch [data-lang].is-active {
    color: #000;
}

/* ===================== ЛИЧНЫЙ КАБИНЕТ В ШАПКЕ ===================== */

.header__cabinet {
    gap: 8px;
}

.header__cabinet img {
    width: 20px;
    height: 20px;
}

/* ===================== ВХОД И РЕГИСТРАЦИЯ (auth.html) ===================== */

.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 510px);
    justify-content: center;
    align-content: center;
    padding: 40px 20px 134px; /* снизу — высота шапки, чтобы карточка стояла по центру экрана */
}

.auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: min(510px, 100%);
    min-height: 275px;
    padding: 45px 50px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    text-align: center;
}

.auth-card[hidden] {
    display: none;
}

.auth-card__title {
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    margin-top: -22px;
    font-size: 20px;
    color: var(--muted);
}

.auth-card__bot {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-card__input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: #fff;
    outline: none;
    font-size: 20px;
}

.auth-card__input::placeholder {
    color: var(--muted);
}

.auth-card__input:focus {
    border-color: var(--dark);
}

.auth-card__submit {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-size: 18px;
}

/* «Получить код» во входе и регистрации */
form.auth-card .auth-card__submit {
    background: #535353;
    color: #fff;
}

.auth-code {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.auth-code input {
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: #fff;
    outline: none;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
}

.auth-code input:focus {
    border-color: var(--dark);
}

.auth-card__resend {
    font-size: 20px;
    color: var(--muted);
}

.auth-card__resend-btn,
.auth-card__back {
    padding: 0;
    border: 0;
    background: none;
    font-size: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-card__resend-btn {
    color: #000;
    font-weight: 600;
}

.auth-card__message {
    font-size: 15px;
    color: #E5484D;
}

.auth-card__switch {
    margin-top: auto;
    font-size: 15px;
    color: var(--text);
}

.auth-card__switch a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .auth-card {
        padding: 35px 20px;
    }

    .auth-code {
        gap: 8px;
    }

    .auth-code input {
        width: 44px;
        height: 50px;
        font-size: 26px;
    }
}

/* ===================== АВТОЗАПОЛНЕНИЕ БРАУЗЕРА ===================== */
/* Chrome красит автозаполненные поля в голубой — оставляем белый фон */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #000;
    caret-color: #000;
    transition: background-color 9999s ease-in-out 0s;
}

/* ===================== СТРАНИЦА ПАРТНЁРА (partner.html) ===================== */

.partner-page {
    padding: 21px 0 160px; /* «Назад» на 155px от верха страницы, как в макете */
}

/* кнопка «Назад»: 100×35, скругление 14, рамка 1px */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 19px;
    width: 100px;
    height: 35px;
    margin-bottom: 51px;
    padding: 0 12px; /* + рамка 1px = стрелка в 13px от края */
    border: 1px solid var(--dark);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: 14px;
    transition: background-color .2s;
}

.back-btn:hover {
    background: var(--gray-light);
}

.back-btn__arrow {
    flex: 0 0 11px;
    width: 11px;
    height: 18px;
}

.partner-page__inner {
    display: grid;
    grid-template-columns: 540px 1fr;
    gap: 105px;
}

.partner-page__inner[hidden],
.partner-page__empty[hidden] {
    display: none;
}

.partner-page__photo {
    height: 680px;
    overflow: hidden;
    border-radius: 45px;
    background: var(--gray-bg);
}

.partner-page__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-page__info {
    display: flex;
    flex-direction: column;
}

.partner-page__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.partner-page__about {
    margin-top: 34px;
    font-size: 18px;
    line-height: 22px;
    color: var(--text);
}

.partner-page__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 50px;
    margin-top: auto;
    padding-top: 40px;
}

.partner-page__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.partner-page__links a:hover {
    color: #000;
}

.partner-page__links img {
    width: 28px;
    height: 28px;
}

.partner-page__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

@media (max-width: 1280px) {
    .partner-page__inner {
        grid-template-columns: 420px 1fr;
        gap: 60px;
    }

    .partner-page__photo {
        height: 530px;
    }
}

@media (max-width: 1024px) {
    .partner-page {
        padding: 20px 0 80px;
    }

    .back-btn {
        margin-bottom: 24px;
    }

    .partner-page__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partner-page__photo {
        width: min(540px, 100%);
        height: auto;
        aspect-ratio: 540 / 680;
        border-radius: 30px;
    }

    .partner-page__title {
        font-size: 36px;
    }

    .partner-page__about {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.4;
    }

    .partner-page__links {
        justify-content: flex-start;
    }
}

/* ===================== КАРТА ПАРТНЁРОВ (map.js, Яндекс Карты) ===================== */

.nearby__map {
    position: relative;
    z-index: 0; /* слои карты не перекрывают мобильное меню */
    height: 100%;
    min-height: 466px;
    background: #e7ece6;
}

/* флажок 44×54: круг с логотипом и хвостик вниз; кончик хвостика — в точке на карте */
.map-flag {
    position: absolute;
    left: -22px;
    top: -54px;
    width: 44px;
    height: 54px;
    cursor: pointer;
}

.map-flag__logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 5px;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transition: transform .15s;
}

.map-flag__logo::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top: 8px solid var(--yellow);
    border-bottom: 0;
}

.map-flag__logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.map-flag:hover .map-flag__logo {
    transform: scale(1.12);
}

/* содержимое подсказки по клику на флажок */
.map-popup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 2px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    color: #000;
}

.map-popup__category {
    color: var(--text);
}

.map-popup__name {
    font-size: 17px;
    font-weight: 700;
}

.map-popup__badge {
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--yellow);
    font-weight: 700;
}

.map-popup__more {
    margin-top: 4px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
}


/* ===================== ДУГА У СЕРЫХ ПОЛОС ПРИ ПРОКРУТКЕ (как у Uzum) ===================== */
/* Фон переехал с секций на обёртку .stretch-group. Верхний край — дуга-купол:
   скругление 50% по ширине и --arc-top по высоте. script.js (initStretch) уменьшает
   --arc-top при прокрутке, и край выпрямляется; на выходе так же работает --arc-bottom. */

.stretch-group {
    --arc-top: 0px;
    --arc-bottom: 0px;
    background: var(--gray-bg);
    border-radius: 50% 50% 50% 50% / var(--arc-top) var(--arc-top) var(--arc-bottom) var(--arc-bottom);
}

.stretch-group > section {
    margin-top: 0;
    margin-bottom: 0;
    background: transparent;
}

.stretch-group--calc {
    margin-bottom: 100px;
}

.stretch-group--nearby {
    margin: 100px 0;
}

@media (max-width: 768px) {
    .stretch-group--calc {
        margin-bottom: 60px;
    }

    .stretch-group--nearby {
        margin: 60px 0;
    }
}

/* ===================== «КАК РАБОТАЕТ»: АНИМАЦИЯ ПРИ НАВЕДЕНИИ ===================== */

.step {
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-color .3s ease;
}

.step__number {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

/* карточка приподнимается и светлеет, цифра «подпрыгивает» с лёгким поворотом */
.step:hover {
    transform: translateY(-8px);
    background: #F2F2F2;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .08);
}

.step:hover .step__number {
    transform: scale(1.12) rotate(-8deg);
}

@media (prefers-reduced-motion: reduce) {
    .step,
    .step__number {
        transition: none;
    }

    .step:hover,
    .step:hover .step__number {
        transform: none;
    }
}
