@font-face {
    font-family: "Standard";
    src: url("../../standard.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --color-bg: #fafafa;
    --color-fg: #1a1a1a;
    --color-accent: #1a1a1a;
    --color-accent-contrast: #fafafa;
    --color-muted: rgba(26, 26, 26, 0.6);
    --color-border: rgba(26, 26, 26, 0.12);
    --color-surface: rgba(255, 255, 255, 0.75);
    --shadow-elevated: 0 24px 60px rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] {
    --color-bg: #1a1a1a;
    --color-fg: #fafafa;
    --color-accent: #fafafa;
    --color-accent-contrast: #1a1a1a;
    --color-muted: rgba(250, 250, 250, 0.65);
    --color-border: rgba(250, 250, 250, 0.15);
    --color-surface: rgba(26, 26, 26, 0.85);
    --shadow-elevated: 0 20px 50px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Helvetica", "Arial", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-fg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover,
a:focus {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 12px 16px;
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

.wrapper {
    width: min(1120px, 100vw);
    margin: 0 auto;
    padding: 0 max(16px, 4vw);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    font-family: "Standard", "Helvetica", "Arial", sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    color: var(--color-fg);
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 3px;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-nav {
    justify-self: center;
}

.site-nav__list {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.site-nav__list a {
    position: relative;
    padding-bottom: 6px;
    text-decoration: none;
}

.site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 160ms ease;
}

.site-nav__list a:hover::after,
.site-nav__list a:focus::after {
    transform: scaleX(1);
}

.site-nav__list a:hover,
.site-nav__list a:focus {
    text-decoration: none;
}

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


.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    position: relative;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease;
    color: var(--color-fg);
}

.theme-toggle:hover {
    transform: none;
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle__icon {
    font-size: 1.45rem;
    line-height: 1;
    position: absolute;
    transition: opacity 160ms ease, transform 160ms ease;
}

.theme-toggle__icon--sun {
    font-size: 1.65rem;
}

.theme-toggle__icon--moon {
    opacity: 0;
    transform: scale(0.8);
}

.theme-toggle.theme-toggle--dark .theme-toggle__icon--sun {
    opacity: 0;
    transform: scale(0.8);
}

.theme-toggle.theme-toggle--dark .theme-toggle__icon--moon {
    opacity: 1;
    transform: scale(1);
}

.btn {
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 22px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--color-accent);
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover,
.link-button:focus {
    text-decoration: none;
}

.link-button:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

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

.btn--ghost {
    border-color: var(--color-border);
    background: transparent;
    color: inherit;
}

.btn--ghost:hover {
    background-color: rgba(26, 26, 26, 0.04);
}

.btn--outline {
    border-color: var(--color-border);
    background-color: transparent;
    color: inherit;
}

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(120deg, rgba(26, 26, 26, 0.05), transparent 60%);
    overflow: hidden;
    width: 100%;
}

:root[data-theme="dark"] .hero {
    background: linear-gradient(120deg, rgba(250, 250, 250, 0.08), transparent 60%);
}

.hero__content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
    max-width: 100%;
}

.hero__eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-bottom: 16px;
}

.hero__lead {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 100%;
}

.hero__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-muted);
    max-width: 100%;
}

.hero__media {
    margin: 0;
    background-color: rgba(26, 26, 26, 0.06);
    padding: 18px;
    border-radius: 18px;
    box-shadow: var(--shadow-elevated);
    max-width: 100%;
    width: 100%;
}

.hero__media figcaption {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 12px;
}

/* Калькулятор ремонта */
.calculator {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calculator__card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.04), rgba(26, 26, 26, 0.08));
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 480px;
    min-height: 600px;
    position: relative;
}

:root[data-theme="dark"] .calculator__card {
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.06), rgba(250, 250, 250, 0.12));
}

.calculator__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--color-fg);
    text-align: center;
}

.calculator__subtitle {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0 0 32px;
    line-height: 1.5;
    text-align: center;
}

/* Управление шагами калькулятора */
.calculator-step {
    display: none;
    min-height: 560px;
    max-height: 560px;
    position: relative;
    padding-top: 20px;
    overflow: hidden;
}

.calculator-step--active {
    display: flex;
    flex-direction: column;
}

.calculator-step:first-child {
    padding-top: 0;
}

.calculator-step:not(:first-child) .calculator__title {
    margin-top: 8px;
}

/* Третий шаг (форма) - меньший отступ сверху */
#calc-step-3 {
    padding-top: 8px;
}

#calc-step-3 .calculator__title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

#calc-step-3 .calculator__subtitle {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.calculator__form-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-fg);
    text-align: center;
}

.calculator__form-subtitle {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0 0 20px;
    line-height: 1.4;
    text-align: center;
}

.calculator__actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    justify-content: center;
}

.calculator__actions .btn {
    width: 100%;
    max-width: 280px;
}

.calculator__actions .btn--primary {
    box-shadow: none !important;
}

.calculator__actions .btn--primary:hover {
    box-shadow: none !important;
    transform: none !important;
}

.calculator__edit-btn {
    position: absolute;
    top: 24px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-fg);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator__edit-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
    border-color: var(--color-accent);
    transform: translateY(-1px);
}

.calculator__back--center {
    margin-top: auto;
    padding-top: 16px;
    width: auto;
    align-self: center;
}

.calculator__next {
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    box-shadow: none;
}

.calculator__contact-form {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calculator__contact-form .form__field {
    margin-bottom: 0;
}

.calculator__contact-form .form__field input,
.calculator__contact-form .form__field textarea {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.calculator__contact-form .form__field textarea {
    min-height: 60px;
    resize: none;
}

.calculator__contact-form .form__submit {
    margin-top: 8px;
    margin-bottom: 8px;
}

.calculator__contact-form .form__note {
    font-size: 0.75rem;
    line-height: 1.3;
    margin: 0;
}

.calculator__submit-full {
    width: 100% !important;
}

/* Модальное окно калькулятора - удалено, так как теперь все в карточке */

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

.calculator-modal__next {
    width: 100%;
    margin-top: 8px;
}

.calculator-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.calculator-modal__actions .btn {
    flex: 1;
}

.calculator-modal__back--center {
    margin-top: 16px;
    width: auto;
    align-self: center;
}

.calculator-result__summary {
    background-color: rgba(26, 26, 26, 0.04);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

:root[data-theme="dark"] .calculator-result__summary {
    background-color: rgba(250, 250, 250, 0.08);
}

.calculator-result__params {
    display: grid;
    gap: 8px;
}

.calculator-result__params p {
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calculator-result__params strong {
    color: var(--color-muted);
    font-weight: 500;
}

.calculator-result__params span {
    color: var(--color-fg);
    font-weight: 600;
}

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

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

.calculator__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-fg);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calculator__select,
.calculator__input {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1.5px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-fg);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.calculator__input {
    background-image: none;
    padding-right: 18px;
}

.calculator__select:hover {
    border-color: var(--color-accent);
    background-color: var(--color-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .calculator__select,
:root[data-theme="dark"] .calculator__input {
    background-color: var(--color-surface);
    border-color: var(--color-border);
}

:root[data-theme="dark"] .calculator__select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d1d5db' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.calculator__select:focus,
.calculator__input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

:root[data-theme="dark"] .calculator__select:focus,
:root[data-theme="dark"] .calculator__input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Стилизация опций селекта */
.calculator__select option {
    padding: 12px;
    background-color: var(--color-bg);
    color: var(--color-fg);
    border: none;
}

:root[data-theme="dark"] .calculator__select option {
    background-color: var(--color-surface);
    color: var(--color-fg);
}

.calculator__result {
    background-color: rgba(26, 26, 26, 0.04);
    border-radius: 16px;
    padding: 24px;
    margin: 8px 0;
}

:root[data-theme="dark"] .calculator__result {
    background-color: rgba(250, 250, 250, 0.08);
}

.calculator__price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.calculator__price-label {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 500;
}

.calculator__price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.calculator__note {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.4;
    font-style: italic;
}

.calculator__warning {
    margin-top: 16px;
    padding: 12px;
    background-color: var(--color-warning-bg, rgba(255, 193, 7, 0.1));
    border: 1px solid var(--color-warning, #ffc107);
    border-radius: 8px;
}

.calculator__warning .calculator__note {
    color: var(--color-warning-text, #856404);
    font-style: normal;
    font-weight: 500;
    text-align: center;
}

.calculator__cta {
    margin-top: 8px;
    width: 100%;
    justify-self: stretch;
}

.section {
    padding: 90px 0;
}

.section__header {
    margin-bottom: 40px;
    max-width: 720px;
}

.section__header h2 {
    margin-bottom: 12px;
    font-size: 2rem;
}

.section__header p {
    margin: 0;
    color: var(--color-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.about-card {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .about-card {
    background-color: rgba(0, 0, 0, 0.35);
}

.section--steps {
    background-color: rgba(26, 26, 26, 0.02);
}

:root[data-theme="dark"] .section--steps {
    background-color: rgba(250, 250, 250, 0.04);
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.3);
}

:root[data-theme="dark"] .steps-list li {
    background-color: rgba(0, 0, 0, 0.3);
}

.section--pricing {
    background-color: rgba(26, 26, 26, 0.04);
}

:root[data-theme="dark"] .section--pricing {
    background-color: rgba(250, 250, 250, 0.06);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pricing-card {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 28px;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

:root[data-theme="dark"] .pricing-card {
    background-color: rgba(0, 0, 0, 0.35);
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 20px -20px auto -40px;
    height: 72px;
    border-radius: 999px;
    transform: rotate(-3deg);
    opacity: 0.18;
    filter: blur(0.8px) saturate(1.1);
    pointer-events: none;
    background-size: 220% 100%;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    z-index: 0;
}

:root[data-theme="dark"] .pricing-card::before {
    opacity: 0.35;
    mix-blend-mode: screen;
}

.pricing-card--basic::before {
    background-image: linear-gradient(100deg, #ffcf99 0%, #f7a76c 55%, #f9e3c6 100%);
}

.pricing-card--standard::before {
    background-image: linear-gradient(105deg, #8dbbff 0%, #5f9dff 48%, #c2dbff 100%);
}

.pricing-card--premium::before {
    background-image: linear-gradient(110deg, #f3a5ff 0%, #d787ff 50%, #f9d6ff 100%);
}

.pricing-card > * {
    position: relative;
    z-index: 1;
}

.pricing-card ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.pricing-card li {
    position: relative;
    padding-left: 28px;
    color: var(--color-muted);
    line-height: 1.35;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    top: 0.22em;
    left: 0;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(87, 189, 108, 0.7);
    color: #57bd6c;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(87, 189, 108, 0.08);
}

.pricing-card__price {
    font-size: 1.4rem;
    font-weight: 600;
}

.pricing-card--featured {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-elevated);
}

.pricing-card--featured li::before {
    border-color: rgba(87, 189, 108, 0.7);
    color: #57bd6c;
    background: rgba(87, 189, 108, 0.12);
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

.section--cta {
    background: linear-gradient(105deg, rgba(26, 26, 26, 0.08), transparent 70%);
}

:root[data-theme="dark"] .section--cta {
    background: linear-gradient(105deg, rgba(250, 250, 250, 0.12), transparent 70%);
}

.section__inner--cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.section__inner--cta .btn {
    white-space: nowrap;
}

.section__inner--cta p {
    margin-bottom: 0;
}

.site-footer {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(26, 26, 26, 0.03) 100%);
    border-top: 1px solid var(--color-border);
    padding: 80px 0 0;
    color: var(--color-fg);
}

:root[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(250, 250, 250, 0.04) 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-family: "Standard", "Helvetica", "Arial", sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 220px;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 16px;
    color: var(--color-fg);
    opacity: 0.7;
}

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: var(--color-fg);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-link--phone {
    font-weight: 600;
    font-size: 1.05rem;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin: 0 0 8px;
}

.footer-note {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 12px 0 0;
    font-style: italic;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 32px;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-surface);
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.back-to-top:hover {
    transform: translateY(-2px);
    text-decoration: none;
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: var(--color-accent-contrast);
}

address {
    font-style: normal;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(480px, 94vw);
    max-height: 90vh;
    background-color: var(--color-bg);
    color: var(--color-fg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-elevated);
    margin: 0 16px;
    overflow-y: auto;
}

.modal__dialog--policy {
    max-height: 82vh;
    overflow-y: auto;
    padding: 40px;
}

.modal__dialog--policy h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.modal__dialog--policy h3 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.modal__dialog--notification {
    width: min(400px, 90vw);
    text-align: center;
    padding: 30px;
}

.modal__dialog--notification h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.modal__dialog--notification p {
    margin: 0;
    color: var(--color-muted);
}

.modal__content {
    display: grid;
    gap: 14px;
    font-size: 0.95rem;
}

.modal__content p {
    margin: 0;
    color: var(--color-muted);
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
}

.modal__dialog--wide {
    width: min(480px, 94vw);
}

.form {
    display: grid;
    gap: 18px;
}

.form__field {
    display: grid;
    gap: 8px;
}

.form__field input,
.form__field textarea {
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .form__field input,
:root[data-theme="dark"] .form__field textarea {
    background-color: rgba(0, 0, 0, 0.4);
    color: inherit;
}

.form__submit {
    width: 100%;
}

.form__note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.form__status {
    min-height: 20px;
    font-size: 0.9rem;
}

.form__status.is-success {
    color: #0f9d58;
}

.form__status.is-error {
    color: #d93025;
}

.cookie-consent {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: min(360px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 16px;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--color-border);
    display: none;
    gap: 16px;
    z-index: 30;
}

.cookie-consent.is-visible {
    display: grid;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-muted);
}

@media (max-width: 960px) {
    .header-grid {
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        gap: 16px;
    }

    .site-nav {
        grid-column: 1/-1;
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions {
        justify-self: flex-end;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 100%;
    }
    
    .hero__text {
        max-width: 100%;
    }
    
    .calculator__card {
        padding: 32px 24px;
        max-width: 100%;
        min-height: 520px;
    }
    
    .calculator-step {
        min-height: 480px;
        max-height: none;
    }
    
    .calculator__title {
        font-size: 1.3rem;
    }
    
    .calculator__price-value {
        font-size: 1.6rem;
    }

    .calculator {
        order: -1;
    }

    .about-grid,
    .steps-list,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section__inner--cta {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* Планшеты */
@media (min-width: 721px) and (max-width: 960px) {
    .wrapper {
        padding: 0 max(24px, 6vw);
    }
    
    .hero {
        padding: 100px 0 70px;
    }
    
    .hero__content {
        gap: 40px;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-grid .about-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section__header h2 {
        font-size: 1.8rem;
    }
    
    .modal__dialog {
        width: min(480px, 90vw);
        padding: 40px;
    }
    
    .modal__dialog--wide {
        width: min(480px, 90vw);
    }
}

/* Планшеты 601-720px */
@media (min-width: 601px) and (max-width: 720px) {
    .header-grid {
        grid-template-columns: auto 1fr auto;
    }
}

/* Большие планшеты и маленькие ноутбуки */
@media (min-width: 961px) and (max-width: 1200px) {
    .wrapper {
        padding: 0 max(20px, 4vw);
    }
    
    .hero {
        padding: 110px 0 75px;
    }
    
    .hero__content {
        gap: 44px;
    }
    
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .pricing-grid {
        gap: 20px;
    }
    
    .section {
        padding: 85px 0;
    }
}

@media (max-width: 720px) {
    .wrapper {
        padding: 0 max(16px, 5vw);
    }
    
    .hero {
        padding: 90px 0 60px;
        overflow: hidden;
    }
    
    .hero__content {
        gap: 28px;
    }

    .hero__lead {
        font-size: 1.05rem;
    }

    .section {
        padding: 70px 0;
    }

    .section__header h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .site-header {
        backdrop-filter: blur(14px);
    }

    .header-grid {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "menu logo theme"
            "nav nav nav";
        row-gap: 12px;
        align-items: center;
        padding: 8px 0;
    }

    .menu-toggle {
        grid-area: menu;
        justify-self: start;
    }

    .logo {
        grid-area: logo;
        justify-self: center;
    }

    .header-actions {
        display: contents;
    }

    .theme-toggle {
        grid-area: theme;
        justify-self: end;
    }

    .header-actions .btn--primary {
        display: none;
    }

    .site-nav {
        grid-area: nav;
        display: none;
        background-color: var(--color-bg);
        border-radius: 12px;
        padding: 16px;
        box-shadow: var(--shadow-elevated);
        justify-self: stretch;
        width: 100%;
    }

    .site-nav.is-open {
        display: block;
    }

    .hero__eyebrow {
        font-size: 0.7rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section__inner--cta .btn {
        font-size: 0.9rem;
        padding-inline: 18px;
    }

    .hero__benefits {
        font-size: 0.9rem;
    }

    .hero__media {
        padding: 16px;
    }

    .hero__media figcaption {
        font-size: 0.8rem;
    }

    .pricing-card {
        padding: 24px;
    }

    .modal__dialog--policy {
        padding: 28px;
        max-height: 82vh;
    }

    .modal__dialog--wide {
        padding: 40px;
    }
    
    .footer-main {
        gap: 28px;
        padding-bottom: 32px;
    }
    
    .footer-logo {
        font-size: 1.2rem;
    }
    
    .footer-heading {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .footer-link--phone {
        font-size: 1rem;
    }
    
    .footer-text {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding: 20px 0 28px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 max(12px, 3vw);
    }
    
    .hero {
        padding-top: 80px;
        overflow: hidden;
    }

    .hero__content {
        gap: 24px;
    }

    .hero__lead {
        font-size: 1rem;
    }
    
    .logo {
        font-size: 1.35rem;
        letter-spacing: 0.08em;
    }

    .theme-toggle {
        width: 44px;
        height: 44px;
    }

    .btn {
        padding: 11px 20px;
        font-size: 0.9rem;
    }

    .section__inner--cta .btn {
        padding-inline: 18px;
    }

    .modal__dialog--wide {
        padding: 40px;
    }

    .hero {
        padding-top: 80px;
    }

    .hero__lead {
        font-size: 1rem;
    }

    .hero__media {
        padding: 14px;
    }

    .hero__media figcaption {
        font-size: 0.75rem;
    }

    .about-card,
    .steps-list li {
        padding: 20px;
    }

    .cookie-consent {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 96px; /* Поднимаем выше мобильной кнопки */
    }
    
    .footer-logo {
        font-size: 1.1rem;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .footer-heading {
        font-size: 0.7rem;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-link--phone {
        font-size: 0.95rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .footer-note {
        font-size: 0.75rem;
    }
    
    .footer-bottom {
        padding: 16px 0 24px;
    }
    
    .back-to-top {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .calculator__card {
        padding: 28px 20px;
        min-height: 480px;
    }
    
    .calculator-step {
        min-height: 440px;
        max-height: none;
    }
    
    .calculator__title {
        font-size: 1.2rem;
    }
    
    .calculator__price-value {
        font-size: 1.4rem;
    }
}

/* Фиксированная кнопка внизу экрана */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    padding: 16px;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: none;
}

.mobile-cta .btn {
    width: 100%;
    font-size: 1rem;
    padding: 16px 20px;
}

@media (max-width: 600px) {
    .mobile-cta {
        display: block;
    }
    
    /* Добавляем отступ снизу для основного контента */
    body {
        padding-bottom: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Smart CAPTCHA Styling */
.smart-captcha {
    margin: 12px auto;
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.85);
    transform-origin: center;
}

/* Кастомное уведомление о CAPTCHA */
.form__captcha-notice {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-align: center;
    margin-top: 8px;
    line-height: 1.3;
}

.form__captcha-notice a {
    color: var(--color-accent);
    text-decoration: none;
}

.form__captcha-notice a:hover {
    text-decoration: underline;
}

/* Индикатор CAPTCHA в процессе */
.form__submit[data-captcha-loading] {
    position: relative;
    color: transparent !important;
}

.form__submit[data-captcha-loading]::after {
    content: "🛡️ Проверка безопасности...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-accent-contrast);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Успешная проверка CAPTCHA */
.form__submit[data-captcha-verified] {
    background-color: var(--color-success, #10b981) !important;
    border-color: var(--color-success, #10b981) !important;
}

.form__submit[data-captcha-verified]::before {
    content: "✅ ";
}
