/* Страница «Наши тарифы» */
.tariffs-modern-page {
    overflow: hidden;
    color: #241d18;
    background: #fff;
}

.tariffs-hero {
    position: relative;
    width: 100vw;
    min-height: clamp(330px, 34vw, 470px);
    margin: 0 calc(50% - 50vw);
    overflow: hidden;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: #2f211b;
}

.tariffs-hero--without-image {
    background: linear-gradient(135deg, #4b1f14, #a83315 55%, #d56e22);
}

.tariffs-hero__image,
.tariffs-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tariffs-hero__image {
    z-index: -3;
    object-fit: cover;
    object-position: center;
}

.tariffs-hero__shade {
    z-index: -2;
    background: linear-gradient(90deg, rgba(21, 13, 10, .72) 0%, rgba(21, 13, 10, .54) 43%, rgba(21, 13, 10, .24) 72%, rgba(21, 13, 10, .18) 100%);
}

.tariffs-hero__inner {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0;
}

.tariffs-hero__content {
    width: min(980px, 76%);
    color: #fff;
}

.tariffs-hero__wysiwyg,
.tariffs-hero__wysiwyg h1,
.tariffs-hero__wysiwyg h2,
.tariffs-hero__wysiwyg h3,
.tariffs-hero__wysiwyg p,
.tariffs-hero__wysiwyg li,
.tariffs-hero__wysiwyg a {
    color: inherit;
}

.tariffs-hero__wysiwyg h1,
.tariffs-hero__wysiwyg h2 {
    margin: 0 0 14px;
    font-size: clamp(31px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

.tariffs-hero__wysiwyg p {
    margin: 0 0 12px;
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.52;
}

.tariffs-hero__wysiwyg > :last-child,
.tariffs-promo-block__content > :last-child,
.tariffs-final-content > :last-child {
    margin-bottom: 0 !important;
}

.tariffs-hero__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.tariffs-hero-feature {
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 15px;
    text-align: center;
    background: rgba(255,255,255,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
    backdrop-filter: blur(7px);
}

.tariffs-hero-feature img {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.tariffs-hero-feature div {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.tariffs-modern-page__body {
    padding-top: 22px;
    padding-bottom: 28px;
}

.tariffs-promo-block {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    overflow: hidden;
    margin: 0 0 25px;
    padding: 20px 22px;
    border: 1px solid rgba(184, 54, 13, .18);
    border-radius: 20px;
    background: linear-gradient(120deg, #fff8f0 0%, #fff 48%, #fff4e7 100%);
    box-shadow: 0 12px 34px rgba(91, 40, 16, .08);
}

.tariffs-promo-block__glow {
    position: absolute;
    width: 210px;
    height: 210px;
    top: -130px;
    right: -50px;
    border-radius: 50%;
    background: rgba(225, 102, 30, .13);
    filter: blur(2px);
}

.tariffs-promo-block__icon {
    position: relative;
    z-index: 1;
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #d85717, #a6260d);
    box-shadow: 0 9px 24px rgba(166, 38, 13, .2);
}

.tariffs-promo-block__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tariffs-promo-block__content {
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 1.55;
}

.tariffs-promo-block__content > :first-child {
    margin-top: 0 !important;
}

.tariffs-modern-section {
    margin: 0 0 30px;
}

.tariffs-modern-title {
    display: grid;
    grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
}

.tariffs-modern-title h2 {
    max-width: 820px;
    margin: 0;
    color: #a83215;
    font-size: clamp(23px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.025em;
    text-align: center;
}

.tariffs-modern-title__line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 50, 21, .42));
}

.tariffs-modern-title__line:last-child {
    background: linear-gradient(90deg, rgba(168, 50, 21, .42), transparent);
}

.tariffs-constructor-shell {
    padding: 0;
}

.tariffs-constructor {
    position: relative;
    padding: 16px !important;
    border-radius: 20px !important;
    background: #fff !important;
}

.tariffs-constructor .accounts-store-tariff__group {
    background: #fcfbfa;
}

.tariffs-constructor .accounts-store-tariff__options {
    padding-bottom: 6px;
}

.tariffs-constructor__summary {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 13px;
    padding: 13px 15px;
    border-radius: 14px;
    color: #5c4137;
    background: linear-gradient(90deg, #fff7f1, #fff);
    border: 1px solid rgba(181, 32, 8, .1);
}

.tariffs-constructor__summary span {
    font-size: 13px;
    font-weight: 650;
}

.tariffs-constructor__summary strong {
    color: #a6260d;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.tariffs-constructor__summary small {
    color: rgba(36, 29, 24, .58);
    font-size: 12px;
    font-weight: 600;
}

.tariffs-why-grid,
.tariffs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tariffs-gallery-grid {
    grid-auto-rows: 220px;
    align-items: stretch;
}

.tariffs-why-card {
    position: relative;
    min-width: 0;
    padding: 19px 15px 17px;
    overflow: hidden;
    border: 1px solid rgba(69, 40, 29, .09);
    border-radius: 19px;
    text-align: center;
    background: linear-gradient(180deg, #fff, #fffaf7);
    box-shadow: 0 8px 28px rgba(61, 37, 27, .06);
}

.tariffs-why-card__icon {
    display: flex;
    width: 68px;
    height: 68px;
    margin: 0 auto 12px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff1e8;
}

.tariffs-why-card__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.tariffs-why-card h3 {
    margin: 0 0 7px;
    color: #3c2119;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.tariffs-why-card p {
    margin: 0;
    color: #6c5a52;
    font-size: 13px;
    line-height: 1.5;
}

.tariffs-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #f3ece7;
    box-shadow: 0 9px 28px rgba(54, 32, 23, .09);
    cursor: zoom-in;
}

.tariffs-gallery-item img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover !important;
    object-position: center;
    transition: transform .28s ease;
}

.tariffs-gallery-item > span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: rgba(39, 25, 19, .66);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
}

.tariffs-gallery-item > span svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.tariffs-gallery-item:hover img,
.tariffs-gallery-item:focus-visible img {
    transform: scale(1.035);
}

.tariffs-gallery-item:hover > span,
.tariffs-gallery-item:focus-visible > span {
    opacity: 1;
    transform: translateY(0);
}



/* Popup галереи тарифов */
.tariffs-gallery-section .handmade-product-lightbox__dialog {
    box-sizing: border-box;
    width: min(1280px, calc(100vw - 40px));
    height: min(82vh, calc(100vh - 40px));
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
}

.tariffs-gallery-section .handmade-product-lightbox__media {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 56px 72px 34px;
}

.tariffs-gallery-section .handmade-product-lightbox__media img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0;
    min-height: 0;
    object-fit: contain !important;
}

.tariffs-final-content {
    margin-top: -2px;
    padding: 20px 22px;
    border: 1px solid rgba(64, 41, 31, .08);
    border-radius: 18px;
    background: #fbfaf9;
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .tariffs-hero__content {
        width: min(720px, 78%);
    }

    .tariffs-why-grid,
    .tariffs-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tariffs-gallery-grid {
        grid-auto-rows: 210px;
    }
}

@media (max-width: 700px) {
    .tariffs-gallery-section .handmade-product-lightbox__dialog {
        width: calc(100vw - 20px);
        height: min(80vh, calc(100vh - 20px));
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 19px;
    }

    .tariffs-gallery-section .handmade-product-lightbox__media {
        padding: 46px 42px 24px;
    }

    .tariffs-hero {
        min-height: 0;
    }

    .tariffs-hero__shade {
        background: rgba(22, 14, 11, .59);
    }

    .tariffs-hero__inner {
        width: min(100% - 26px, 680px);
        padding: 34px 0 30px;
    }

    .tariffs-hero__content {
        width: 100%;
        text-align: center;
    }

    .tariffs-hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 520px;
        margin: 22px auto 0;
    }

    .tariffs-modern-page__body {
        padding-top: 16px;
        padding-bottom: 22px;
    }

    .tariffs-promo-block {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 22px;
        padding: 16px;
        border-radius: 16px;
    }

    .tariffs-promo-block__icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .tariffs-modern-section {
        margin-bottom: 24px;
    }

    .tariffs-modern-title {
        gap: 9px;
        margin-bottom: 12px;
    }

    .tariffs-constructor {
        padding: 10px !important;
    }

    .tariffs-constructor__summary {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .tariffs-gallery-section .handmade-product-lightbox__media {
        padding-right: 34px;
        padding-left: 34px;
    }

    .tariffs-hero__features {
        gap: 8px;
    }

    .tariffs-hero-feature {
        padding: 10px 6px;
    }

    .tariffs-hero-feature img {
        width: 42px;
        height: 42px;
    }

    .tariffs-promo-block {
        display: block;
        text-align: center;
    }

    .tariffs-promo-block__icon {
        margin: 0 auto 11px;
    }

    .tariffs-why-grid,
    .tariffs-gallery-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .tariffs-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 155px;
    }

    .tariffs-gallery-item {
        border-radius: 14px;
    }

    

/* Popup галереи тарифов */
.tariffs-gallery-section .handmade-product-lightbox__dialog {
    box-sizing: border-box;
    width: min(1280px, calc(100vw - 40px));
    height: min(82vh, calc(100vh - 40px));
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
}

.tariffs-gallery-section .handmade-product-lightbox__media {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 56px 72px 34px;
}

.tariffs-gallery-section .handmade-product-lightbox__media img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0;
    min-height: 0;
    object-fit: contain !important;
}

.tariffs-final-content {
        padding: 16px;
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tariffs-gallery-item img,
    .tariffs-gallery-item > span {
        transition: none;
    }
}

/* Кнопка регистрации на странице «Наши тарифы» */
.tariffs-registration-cta {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tariffs-registration-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 28px;
    border: 0;
    border-radius: 14px;
    color: #fff !important;
    background: linear-gradient(135deg, #d85717, #a6260d);
    box-shadow: 0 10px 24px rgba(166, 38, 13, .22);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.tariffs-registration-button:hover,
.tariffs-registration-button:focus-visible {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(166, 38, 13, .28);
    filter: brightness(1.04);
}

.tariffs-registration-cta--hero {
    justify-content: center;
    margin-top: 24px;
}

.tariffs-registration-cta--constructor {
    margin-top: 18px;
}

.tariffs-registration-final {
    padding-bottom: 32px;
}

.tariffs-registration-cta--final {
    margin-top: 0;
}

@media (max-width: 700px) {
    .tariffs-registration-cta--hero {
        justify-content: center;
    }

    .tariffs-registration-button {
        width: min(100%, 360px);
        min-height: 42px;
        padding: 9px 22px;
    }

    .tariffs-registration-final {
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tariffs-registration-button {
        transition: none;
    }
}
