/* =========================================================
   Smart Home OS — premium smart-home landing
   Brand colors:
   Primary   #6C3A82 50%
   Secondary #98408B 25%
   Accent    #C6FF3D 15%
   Background #EDEAF0 10%
   Text      #111
   Font: Montserrat
   ========================================================= */

:root {
    --color-primary: #6C3A82;
    --color-secondary: #98408B;
    --color-accent: #C6FF3D;
    --color-bg: #EDEAF0;
    --color-white: #FFFFFF;
    --color-black: #111111;
    --color-text: #111111;
    --color-text-muted: rgba(17, 17, 17, 0.6);
    --color-border: rgba(108, 58, 130, 0.25);
    --color-glass: rgba(237, 234, 240, 0.72);
    --shadow-sm: 0 4px 20px rgba(108, 58, 130, 0.08);
    --shadow-md: 0 12px 40px rgba(108, 58, 130, 0.14);
    --shadow-lg: 0 24px 80px rgba(108, 58, 130, 0.22);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1280px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background: var(--color-accent);
    color: var(--color-black);
    border-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(198, 255, 61, 0.35);
}

.btn--outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
}

.btn--large {
    padding: 18px 36px;
    font-size: 16px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.header.is-scrolled {
    background: rgba(237, 234, 240, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--color-white);
    transition: var(--transition);
}

.logo__img {
    height: 38px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.header.is-scrolled .logo__img {
    filter: none;
}

.logo__mark,
.logo__text {
    display: none;
}

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

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    transition: var(--transition);
}

.header.is-scrolled .nav__link {
    color: var(--color-text);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link:hover::after {
    width: 100%;
}

.header__cta {
    padding: 12px 24px;
    font-size: 14px;
}

.burger {
    display: none;
    width: 32px;
    height: 24px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.header.is-scrolled .burger span {
    background: var(--color-black);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

.burger.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
.burger.is-open span { background: var(--color-black); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-black);
    color: var(--color-white);
    overflow: hidden;
    padding: 120px 0 100px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero__plan-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(circle at 85% 45%, rgba(152, 64, 139, 0.55) 0%, transparent 55%),
        linear-gradient(135deg, rgba(17, 17, 17, 0.85) 0%, rgba(108, 58, 130, 0.35) 100%);
    background-size: cover;
}

.hero__plan-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(198, 255, 61, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(198, 255, 61, 0.08) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 85% 45%, black 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle at 85% 45%, black 0%, transparent 65%);
}

.hero__inner {
    position: relative;
    z-index: 4;
}

.hero__content {
    max-width: 760px;
}

.hero__eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(30px, 4.8vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero__accent {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    max-width: 580px;
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.7); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Section headers */
.section-header {
    margin-bottom: 40px;
    max-width: 720px;
}

.section-header--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-black);
    margin-bottom: 20px;
    white-space: nowrap;
}

.section-title--dark {
    color: var(--color-black);
}

.section-subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* Platforms */
.platforms {
    padding: 80px 0;
    background: var(--color-bg);
}

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

.platform-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.platform-card:hover::before {
    height: 6px;
    background: var(--color-accent);
}

.platform-card__header {
    margin-bottom: 20px;
}

.platform-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(108, 58, 130, 0.08);
    padding: 6px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.platform-card__title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-black);
}

.platform-card__desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.platform-card__list {
    list-style: none;
    margin-bottom: 28px;
}

.platform-card__list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 12px;
}

.platform-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.platform-card__driver {
    font-family: 'Montserrat', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-secondary);
    padding: 10px 14px;
    background: rgba(108, 58, 130, 0.06);
    border-radius: var(--radius-xs);
    border-left: 3px solid var(--color-accent);
}

/* Features */
.features {
    padding: 60px 0 80px;
    background: var(--color-bg);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--color-white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.feature-item__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--color-primary);
    color: var(--color-accent);
    margin-bottom: 22px;
}

.feature-item__icon svg {
    width: 28px;
    height: 28px;
}

.feature-item__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-black);
}

.feature-item__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* Calculator */
.calculator {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, rgba(108, 58, 130, 0.06) 100%);
}

.calculator__panel {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: stretch;
    background: var(--color-glass);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.calculator__sliders {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.calculator__metrics {
    flex: 0 0 340px;
}

.slider-group {
    margin-bottom: 24px;
}

.slider-group:last-child {
    margin-bottom: 0;
}

.slider-group__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 14px;
}

.slider-group__value {
    font-weight: 700;
    color: var(--color-primary);
}

.slider-group__hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    border-radius: 100px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.slider__track {
    position: relative;
    height: 6px;
    margin-top: -6px;
    background: rgba(108, 58, 130, 0.12);
    border-radius: 100px;
    overflow: hidden;
}

.slider__fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 100px;
    transition: width 0.1s linear;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 14px rgba(108, 58, 130, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(198, 255, 61, 0.5);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 14px rgba(108, 58, 130, 0.3);
    cursor: pointer;
}

.calculator__metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--color-border);
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.metric:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.metric__label {
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.metric__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-black);
}

.metric--large {
    padding: 22px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-sm);
    color: var(--color-white);
}

.metric--large .metric__label {
    color: rgba(255, 255, 255, 0.75);
}

.metric__value--budget {
    font-size: clamp(26px, 3vw, 34px);
    color: var(--color-accent);
}

/* Gallery */
.gallery {
    padding: 120px 0;
    background: var(--color-bg);
    overflow: hidden;
}

.gallery__canvas-wrap {
    position: relative;
    min-height: 980px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.gallery__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gallery__nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.gallery__node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
}

.gallery__node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.gallery__node:hover img {
    transform: scale(1.1);
    border-color: var(--color-accent);
    box-shadow: 0 12px 40px rgba(198, 255, 61, 0.25);
    z-index: 10;
}

.gallery__node--large { width: 320px; height: 220px; }
.gallery__node--medium { width: 240px; height: 170px; }
.gallery__node--small { width: 180px; height: 130px; }

.gallery__node-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-black);
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    max-width: 90%;
    text-align: center;
    transition: var(--transition);
}

.gallery__node:hover .gallery__node-label {
    background: var(--color-accent);
    color: var(--color-black);
}

/* CTA */
.cta {
    padding: 0 0 80px;
    background: var(--color-bg);
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: var(--radius);
    padding: 36px 40px;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
}

.cta__title {
    font-size: clamp(17px, 2.2vw, 24px);
    font-weight: 800;
    line-height: 1.35;
    max-width: 100%;
    white-space: nowrap;
}

/* Contacts */
.contacts {
    padding: 80px 0;
    background: var(--color-white);
}

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

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100%;
}

.contacts__map {
    flex: 1;
    min-height: 360px;
}

.contacts__item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contacts__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(108, 58, 130, 0.08);
    color: var(--color-primary);
}

.contacts__icon svg {
    width: 22px;
    height: 22px;
}

.contacts__data {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacts__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contacts__value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
    transition: var(--transition);
}

.contacts__value--empty {
    color: var(--color-text-muted);
}

a.contacts__value:hover {
    color: var(--color-secondary);
}

.contacts__value--address {
    font-style: normal;
    line-height: 1.5;
}

.contacts__map {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-top: 4px;
    flex: 1;
    min-height: 420px;
}

.contacts__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    filter: grayscale(20%);
}

.contacts__form-wrapper {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--color-border);
}

.contacts__form-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-black);
}

.contacts__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-black);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    background: var(--color-white);
    font-size: 15px;
    font-family: inherit;
    color: var(--color-black);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(108, 58, 130, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-honeypot,
.form-captcha {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.form-note {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.form-link {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.5);
    padding: 28px 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer__copy {
    font-size: 13px;
}

.footer__up {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    transition: var(--transition);
}

.footer__up:hover {
    color: var(--color-white);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(6px);
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transform: translateY(20px) scale(0.98);
    transition: var(--transition);
}

.modal.is-open .modal__content {
    transform: translateY(0) scale(1);
}

.modal__content--narrow {
    max-width: 520px;
    padding: 40px;
}

.modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--color-bg);
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: var(--color-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: var(--transition);
}

.modal__close:hover {
    background: var(--color-accent);
    color: var(--color-black);
}

.modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

.modal__text {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal__text h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-black);
}

.modal__text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.modal__text ul {
    list-style: none;
}

.modal__text li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.modal__text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.modal__media {
    position: relative;
    min-height: 100%;
}

.modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal__title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-black);
}

.modal__subtitle {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1100px) {
    .platforms__grid,
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator__panel {
        flex-direction: column;
    }

    .calculator__metrics {
        flex: auto;
        position: static;
    }
}

@media (max-width: 900px) {
    .header__cta,
    .nav {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg);
        padding: 100px 24px 40px;
        z-index: 999;
        gap: 24px;
        align-items: flex-start;
    }

    .nav.is-open .nav__link {
        color: var(--color-black);
        font-size: 24px;
        font-weight: 700;
    }

    .contacts__inner,
    .cta__inner {
        grid-template-columns: 1fr;
    }

    .cta__actions {
        justify-content: flex-start;
    }

    .modal__body {
        grid-template-columns: 1fr;
    }

    .modal__media {
        min-height: 280px;
        order: -1;
    }
}

@media (max-width: 680px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .platforms__grid,
    .features__grid {
        grid-template-columns: 1fr;
    }

    .platform-card,
    .feature-item {
        padding: 28px;
    }

    .calculator__panel {
        padding: 28px;
    }

    .gallery__canvas-wrap {
        min-height: 720px;
    }

    .gallery__node,
    .gallery__node--large,
    .gallery__node--medium,
    .gallery__node--small {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }

    .gallery__node img {
        height: 200px;
    }

    .cta__inner {
        padding: 30px 24px;
    }

    .contacts__form-wrapper,
    .modal__content--narrow {
        padding: 24px;
    }

    .modal__text {
        padding: 24px;
    }
}

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

/* Consent checkbox (152-FZ) */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 16px;
}
.form-consent__input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary, #6c3a82);
    cursor: pointer;
}
.form-consent__label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text, #4a4a4a);
    cursor: pointer;
}

/* Yandex Maps JS API map (replaces iframe widget) */
.contacts__map .ymap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    filter: grayscale(25%);
    overflow: hidden;
}
