:root {
    --bg: #efeff1;
    --ink: #292a2e;
    --muted: #72737b;

    /* Жёлтая гамма по умолчанию. */
    --accent-highlight: #ffd02c;
    --accent-dot: #eeb800;
    --accent-badge: #ffda47;
    --accent-button-start: #ffdc3e;
    --accent-button-end: #ffc021;
    --accent-button-border: #ffdc63;
    --accent-field-focus: #c2a125;
    --accent-checked: #ffcf2b;
    --accent-checked-border: #e8b91d;
    --accent-focus-ring: #9c7a00;
    --accent-picker-bar: #f6c426;
    --accent-success-start: #ffdf49;
    --accent-success-end: #ffbd14;
    --accent-picker-hover-border: #e8c657;
    --accent-selected-bg: #fff2bd;
    --accent-selected-border: #f1d47c;

    --shadow: 10px 10px 23px #d8d8dc, -10px -10px 23px #fff;
    --inset: inset 4px 4px 9px #d3d3da, inset -4px -4px 9px #fff
}

/* Зелёная гамма включается атрибутом data-theme="green" на <html>. */
html[data-theme="green"] {
    --accent-highlight: #b8d43b;
    --accent-dot: #749815;
    --accent-badge: #c5dc61;
    --accent-button-start: #c5de5a;
    --accent-button-end: #9abd23;
    --accent-button-border: #a9c834;
    --accent-field-focus: #5a7b24;
    --accent-checked: #a8c719;
    --accent-checked-border: #789a1d;
    --accent-focus-ring: #376d2b;
    --accent-picker-bar: #94b929;
    --accent-success-start: #d0e79e;
    --accent-success-end: #8ebf39;
    --accent-picker-hover-border: #a3bf56;
    --accent-selected-bg: #e9f2cf;
    --accent-selected-border: #b8cf78;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased
}

a {
    color: inherit;
    text-decoration: none
}

button, input {
    font: inherit
}

button, a, input {
    -webkit-tap-highlight-color: transparent
}

button, a {
    touch-action: manipulation
}

button {
    cursor: pointer
}

.wrap {
    max-width: 1184px;
    margin: auto;
    padding: 0 32px
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid #dedee3
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center
}

.brand-icon {
    width: 83px;
    height: 83px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 3px 3px 8px #d1d1d7, -3px -3px 8px #fff
}

.brand-icon img {
    width: 100%;
    height: auto;
}

.brand-name {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 29px
}

.brand-sub {
    font-size: 10px;
    letter-spacing: 1.1px;
    margin-top: 3px;
    text-transform: uppercase
}

.location {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px
}

.location svg {
    width: 17px;
    height: 17px
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px
}

.nav {
    font-size: 13px;
    color: #62636a
}

.hero {
    position: relative;
    padding: 59px 0 35px
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #686971
}

.dot {
    width: 7px;
    height: 7px;
    background: var(--accent-dot);
    border-radius: 50%
}

h1 {
    font-size: 64px;
    line-height: 1.07;
    letter-spacing: -2.7px;
    font-weight: 750;
    margin: 20px 0 19px;
    max-width: 800px
}

h1 mark {
    background: none;
    position: relative;
    white-space: nowrap;
    z-index: 0
}

h1 mark:after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -3px;
    right: -7px;
    bottom: 3px;
    height: 19px;
    background: var(--accent-highlight);
    transform: rotate(-1.6deg)
}

.intro {
    color: #73747b;
    font-size: 17px;
    line-height: 1.6;
    margin: 0
}

.hero-stamp {
    position: absolute;
    right: 23px;
    top: 77px;
    transform: rotate(10deg);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 7px solid var(--bg)
}

.hero-stamp strong {
    font-size: 40px;
    letter-spacing: -2px;
    line-height: 1.1
}

.hero-stamp span {
    font-size: 12px;
    margin-top: 7px
}

.plans {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 25px;
    margin: 11px 0 55px
}

.plan {
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 28px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f8f8fa
}

.plan-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.type {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #777881
}

.discount {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 7px;
    background: var(--accent-badge)
}

.plan h2 {
    font-size: 25px;
    letter-spacing: -.6px;
    margin: 0 0 16px
}

.old {
    color: #83848c;
    font-size: 14px;
    text-decoration-thickness: 1px
}

.price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 5px
}

.price strong {
    font-size: 55px;
    letter-spacing: -2px;
    line-height: 1.15
}

.price span {
    font-size: 15px
}

.period {
    font-size: 11px;
    color: #83848c;
    margin-top: 7px
}

.features {
    list-style: none;
    padding: 21px 0;
    margin: 22px 0 0;
    border-top: 1px solid #dcdce2;
    display: grid;
    gap: 17px;
    flex: 1
}

.features li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    line-height: 1.5
}

.feature-icon {
    flex-shrink: 0;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    box-shadow: 3px 3px 6px #d5d5db, -3px -3px 6px white;
    display: grid;
    place-items: center
}

.feature-icon svg {
    width: 17px;
    height: 17px;
    stroke: #666770;
    fill: none;
    stroke-width: 1.5
}

.features b {
    font-weight: 700
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(160deg, var(--accent-button-start), var(--accent-button-end));
    border: 1px solid var(--accent-button-border);
    color: #282921;
    border-radius: 11px;
    box-shadow: 4px 4px 9px #ceced4, -3px -3px 8px #fff;
    font-size: 13px;
    font-weight: 700;
    min-height: 49px;
    padding: 13px 12px;
    transition: transform .2s, box-shadow .2s
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 5px 7px 12px #c9c9d0, -3px -3px 8px #fff
}

.btn:active {
    transform: translateY(1px)
}

.btn span {
    font-size: 18px;
    font-weight: 400
}

.application {
    display: grid;
    grid-template-columns:.85fr 1.15fr;
    gap: 60px;
    padding: 40px 42px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 40px
}

.application h2 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -1.1px;
    margin: 15px 0
}

.application p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 300px
}

.steps-note {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 11px;
    color: #6c6d76
}

.steps-note span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: var(--inset);
    font-size: 13px;
    color: #555
}

.form-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 27px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #6f7077
}

.selected {
    color: #333;
    font-weight: 700
}

.change {
    border: 0;
    padding: 3px;
    background: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 11px;
    color: #74757c
}

.row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px
}

label.field {
    display: block;
    font-size: 11px;
    color: #666770;
    margin-bottom: 16px
}

.field input {
    display: block;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 14px 15px;
    background: var(--bg);
    box-shadow: var(--inset);
    margin-top: 8px;
    min-height: 46px;
    color: #303139;
    font-size: 13px;
    outline: none
}

.field input::placeholder {
    color: #90919a
}

.field input:focus {
    border-color: var(--accent-field-focus)
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 10px;
    color: #72737b;
    line-height: 1.6;
    margin: 2px 0 20px;
    cursor: pointer
}

.consent input {
    appearance: none;
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    border: 1px solid #c3c3ca;
    border-radius: 4px;
    margin: 1px 0 0;
    box-shadow: inset 2px 2px 3px #d4d4db;
    background: var(--bg)
}

.consent input:checked {
    background: var(--accent-checked);
    border-color: var(--accent-checked-border);
    box-shadow: none
}

.consent input:checked:after {
    content: '✓';
    display: block;
    text-align: center;
    color: #333;
    font-size: 13px;
    line-height: 15px
}

.submit {
    width: 100%;
    font-size: 14px
}

.notice {
    font-size: 11px;
    line-height: 1.6;
    color: #74757b;
    margin-top: 13px
}

.notice:empty {
    display: none
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 25px;
    color: #84858c;
    font-size: 11px
}

.footer a {
    font-size: 11px
}

.footer a:hover {
    text-decoration: underline
}

:focus-visible {
    outline: 2px solid var(--accent-focus-ring);
    outline-offset: 5px
}

@media (min-width: 1450px) {
    .hero {
        padding-top: 68px
    }

    .plans {
        margin-bottom: 65px
    }
}

@media (max-width: 1000px) {
    h1 {
        font-size: 52px
    }

    .hero-stamp {
        right: 0;
        width: 105px;
        height: 105px
    }

    .hero-stamp strong {
        font-size: 34px
    }

    .plan {
        padding: 23px 20px
    }

    .plans {
        gap: 18px
    }

    .btn {
        font-size: 11px
    }

    .application {
        gap: 35px;
        padding: 32px
    }

    .application h2 {
        font-size: 31px
    }
}

@media (max-width: 760px) {
    .wrap {
        padding: 0 23px
    }

    .header {
        padding: 19px 0
    }

    .brand-name {
        font-size: 25px
    }

    .brand-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px
    }

    .brand-sub {
        font-size: 8px;
        letter-spacing: .8px
    }

    .header-right {
        gap: 0
    }

    .location {
        font-size: 11px;
        gap: 4px
    }

    .nav {
        display: none
    }

    .hero {
        padding: 38px 0 26px
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.3px
    }

    h1 {
        font-size: 43px;
        letter-spacing: -1.8px;
        margin: 18px 0;
        max-width: 430px
    }

    h1 mark:after {
        height: 13px;
        bottom: 2px
    }

    .hero-stamp {
        display: none
    }

    .intro {
        font-size: 14px;
        max-width: 300px
    }

    .plans {
        grid-template-columns:1fr;
        gap: 23px;
        margin: 8px 0 38px
    }

    .plan {
        padding: 25px;
        border-radius: 22px
    }

    .plan-top {
        margin-bottom: 18px
    }

    .plan h2 {
        font-size: 26px;
        margin-bottom: 13px
    }

    .price strong {
        font-size: 56px
    }

    .features {
        margin-top: 20px;
        padding: 21px 0;
        gap: 16px
    }

    .features li {
        font-size: 14px
    }

    .btn {
        font-size: 13px;
        min-height: 50px
    }

    .application {
        grid-template-columns:1fr;
        gap: 20px;
        padding: 27px 23px;
        margin-bottom: 28px;
        border-radius: 22px
    }

    .application h2 {
        font-size: 31px;
        margin: 13px 0
    }

    .application p {
        font-size: 13px;
        margin: 0;
        max-width: none
    }

    .steps-note {
        display: none
    }

    .form-top {
        margin-bottom: 19px
    }

    .row {
        grid-template-columns:1fr;
        gap: 0
    }

    .field input {
        font-size: 16px;
        min-height: 50px
    }

    .consent {
        font-size: 10px;
        margin-bottom: 20px
    }

    .footer {
        font-size: 10px;
        padding-bottom: 23px;
        gap: 15px
    }

    .footer a {
        font-size: 10px
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .btn {
        transition: none
    }
}

/* Tariff switcher is visually separated from the contact fields. */
.hero h1 {
    font-size: 52px;
    max-width: 940px;
    line-height: 1.13;
    margin-bottom: 0
}

.hero {
    padding-bottom: 38px
}

.application-right {
    min-width: 0
}

.tariff-picker {
    border-left: 4px solid var(--accent-picker-bar);
    padding: 2px 0 17px 18px;
    margin: 0 0 24px;
    border-bottom: 1px solid #d8d8de
}

.tariff-picker > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #53545c
}

.tariff-picker > label span {
    font-size: 10px;
    font-weight: 400;
    color: #777881
}

.tariff-select-wrap {
    position: relative;
    margin-top: 9px
}

.tariff-select-wrap select {
    width: 100%;
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #292a2e;
    font: 700 22px Arial, Helvetica, sans-serif;
    letter-spacing: -.4px;
    padding: 8px 27px 8px 0;
    cursor: pointer
}

.tariff-select-wrap > span {
    position: absolute;
    right: 4px;
    top: 5px;
    font-size: 25px;
    pointer-events: none
}

.tariff-picker #tariff-details {
    font-size: 11px;
    margin: 3px 0 0;
    max-width: none;
    line-height: 1.5
}

.field-error {
    display: block;
    color: #a02b23;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 7px
}

.field-error:empty {
    display: none
}

.field input[aria-invalid="true"] {
    border-color: #b94b40
}

.consent input[aria-invalid="true"] {
    border-color: #b94b40
}

.consent-error {
    margin: -12px 0 17px
}

.notice[data-state="error"] {
    color: #a02b23
}

@media (max-width: 760px) {
    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -1px
    }

    .hero {
        padding-top: 30px;
        padding-bottom: 28px
    }

    .hero h1 mark:after {
        height: 10px
    }

    .tariff-picker {
        padding-left: 13px;
        margin-bottom: 22px
    }

    .tariff-select-wrap select {
        font-size: 20px;
        min-height: 48px
    }

    .tariff-picker > label {
        font-size: 11px
    }

    .application {
        gap: 25px
    }

    .application h2 {
        font-size: 28px
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 28px
    }

    .tariff-select-wrap select {
        font-size: 18px
    }
}

.application h2 {
    margin-top: 0
}

.success-dialog {
    position: fixed;
    inset: 0;
    border: 1px solid #fff;
    border-radius: 24px;
    padding: 38px 32px 30px;
    background: var(--bg);
    color: var(--ink);
    width: calc(100% - 40px);
    max-width: 450px;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    box-shadow: 0 20px 70px #24242d40;
    text-align: center
}

.success-dialog::backdrop {
    background: #24242d65;
    backdrop-filter: blur(4px)
}

.dialog-close {
    position: absolute;
    right: 15px;
    top: 12px;
    border: 0;
    background: transparent;
    color: #63646c;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 8px
}

.success-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 21px;
    background: linear-gradient(145deg, var(--accent-success-start), var(--accent-success-end));
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 4px 4px 10px #d2d2d8, -4px -4px 10px #fff
}

.success-dialog h2 {
    font-size: 27px;
    letter-spacing: -.6px;
    line-height: 1.2;
    margin: 0 0 19px
}

.success-dialog p {
    color: #666770;
    line-height: 1.65;
    font-size: 14px;
    margin: 12px 0
}

.dialog-confirm {
    width: 100%;
    margin-top: 24px
}

body.modal-open {
    overflow: hidden
}

@media (max-width: 760px) {
    .application h2 {
        font-size: 28px
    }

    .success-dialog {
        padding: 35px 23px 25px
    }

    .success-dialog h2 {
        font-size: 25px
    }
}

/* Local custom tariff menu, with keyboard and touch support. */
.picker-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #53545c
}

.picker-label > span {
    font-size: 10px;
    font-weight: 400;
    color: #777881
}

.tariff-select-wrap {
    position: relative;
    margin-top: 12px
}

.tariff-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 62px;
    padding: 13px 15px;
    border: 1px solid #fff;
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    box-shadow: 4px 4px 9px #d5d5dc, -4px -4px 9px #fff;
    text-align: left
}

.trigger-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.4px
}

.trigger-price {
    margin-left: auto;
    white-space: nowrap;
    font-size: 23px;
    font-weight: 700
}

.trigger-price small {
    font-size: 12px;
    font-weight: 400;
    color: #6f7078
}

.picker-chevron {
    flex-shrink: 0;
    transition: transform .18s
}

.tariff-trigger[aria-expanded="true"] .picker-chevron {
    transform: rotate(180deg)
}

.tariff-trigger:hover {
    border-color: var(--accent-picker-hover-border)
}

.tariff-menu {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 9px);
    border: 1px solid #fff;
    border-radius: 15px;
    padding: 6px;
    background: #f6f6f8;
    box-shadow: 0 12px 28px #30303a30
}

.tariff-menu[hidden] {
    display: none
}

.tariff-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 11px;
    min-height: 66px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    text-align: left;
    color: var(--ink)
}

.tariff-option + .tariff-option {
    margin-top: 3px
}

.tariff-option:hover, .tariff-option:focus-visible {
    background: #e9e9ef
}

.tariff-option[aria-checked="true"] {
    background: var(--accent-selected-bg);
    border-color: var(--accent-selected-border)
}

.option-copy {
    display: grid;
    gap: 5px
}

.option-copy strong {
    font-size: 15px
}

.option-copy small {
    color: #73747b;
    font-size: 11px
}

.option-price {
    margin-left: auto;
    white-space: nowrap;
    font-size: 19px;
    font-weight: 700
}

.option-price small {
    font-size: 10px;
    font-weight: 400
}

.option-check {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent-checked);
    display: grid;
    place-items: center;
    font-size: 12px;
    visibility: hidden;
    flex-shrink: 0
}

.tariff-option[aria-checked="true"] .option-check {
    visibility: visible
}

.tariff-picker #tariff-details {
    margin-top: 12px
}

@media (max-width: 760px) {
    .tariff-trigger {
        padding: 12px;
        gap: 9px
    }

    .trigger-name {
        font-size: 18px
    }

    .trigger-price {
        font-size: 21px
    }

    .trigger-price small {
        font-size: 11px
    }

    .picker-label {
        font-size: 11px
    }

    .tariff-menu {
        padding: 5px
    }

    .tariff-option {
        padding: 12px 9px;
        gap: 8px
    }
}

@media (max-width: 360px) {
    .tariff-trigger {
        gap: 6px;
        padding: 11px 9px
    }

    .trigger-name {
        font-size: 16px
    }

    .trigger-price {
        font-size: 19px
    }

    .trigger-price small {
        font-size: 10px
    }
}

/* Quiet decorative artwork only in the two-column application layout. */
.application-decoration {
    display: block;
    width: 100%;
    max-width: 330px;
    height: auto;
    margin: 27px auto 0;
    opacity: 1;
    pointer-events: none;
    user-select: none
}

@media (max-width: 760px) {
    .application-decoration {
        display: none
    }
}
