/* Grand-IT — professional light theme */

:root {
    --bg: #f6f7f9;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-subtle: #eff6ff;
    --accent-border: #bfdbfe;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #047857;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --error-text: #b91c1c;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.08);
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --header-h: 72px;
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    width: min(var(--max-width), calc(100% - 2.5rem));
    margin-inline: auto;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--text);
}

.logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.nav a:hover {
    color: var(--text);
}

.nav__cta {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff !important;
}

.nav__cta:hover {
    background: var(--accent-hover);
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}

/* Messages */
.messages {
    padding-top: 1rem;
}

.message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.message--success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.message--error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
}

.btn--primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn--ghost:hover {
    background: var(--surface-muted);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn--full {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg, none);
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1.25rem;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0 0 2rem;
    line-height: 1.7;
}

/* Rich text (CKEditor) */
.rich-text > :first-child {
    margin-top: 0;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.rich-text p {
    margin: 0 0 0.75rem;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.rich-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-text blockquote {
    margin: 0 0 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-border);
    color: var(--text-muted);
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.rich-text th,
.rich-text td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

/* Hero panel — abstract architecture visual */
.hero-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-panel__header {
    display: flex;
    gap: 6px;
    padding: 0.875rem 1rem;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.hero-panel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.hero-panel__dot:first-child {
    background: #f87171;
}

.hero-panel__dot:nth-child(2) {
    background: #fbbf24;
}

.hero-panel__dot:nth-child(3) {
    background: #34d399;
}

.hero-panel__body {
    padding: 1.5rem;
}

.hero-panel__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.hero-panel__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.hero-panel__status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.hero-panel__diagram {
    --diagram-gap: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.diagram-tier {
    width: 100%;
    display: flex;
    justify-content: center;
}

.diagram-branch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--diagram-gap);
    row-gap: 0;
    width: 100%;
}

.diagram-node {
    padding: 0.625rem 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    width: 100%;
}

.diagram-tier:not(.diagram-branch) .diagram-node,
.diagram-branch > .diagram-node {
    width: 100%;
}

.diagram-tier:not(.diagram-branch) .diagram-node {
    width: auto;
    min-width: 7rem;
}

.diagram-node--primary {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: var(--accent);
}

.diagram-connector--vertical {
    width: 2px;
    height: 1.25rem;
    background: var(--border-strong);
}

/* Провода: та же сетка 1fr 1fr + gap, что и у Data/Infra */
.diagram-wires {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--diagram-gap);
    grid-template-rows: 0.625rem 2px 0.625rem;
    width: 100%;
}

.diagram-wires__stem {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: 2px;
    height: 100%;
    background: var(--border-strong);
}

.diagram-wires__bar {
    grid-row: 2;
    align-self: center;
    height: 2px;
    background: var(--border-strong);
}

.diagram-wires__bar--left {
    grid-column: 1;
    justify-self: end;
    width: 50%;
}

.diagram-wires__bar--right {
    grid-column: 2;
    justify-self: start;
    width: 50%;
}

.diagram-wires__drop {
    grid-row: 3;
    justify-self: center;
    width: 2px;
    height: 100%;
    background: var(--border-strong);
}

.diagram-wires__drop--left {
    grid-column: 1;
}

.diagram-wires__drop--right {
    grid-column: 2;
}

.hero-panel__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.metric {
    padding: 0.875rem;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-align: center;
}

.metric__value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.metric__label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.section--contacts {
    padding-bottom: 6rem;
}

.section__head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
}

.section__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.625rem;
}

.section__title {
    font-size: clamp(1.75rem, 3.5vw, 2.375rem);
    font-weight: 700;
    margin: 0 0 0.875rem;
    letter-spacing: -0.025em;
}

.section__desc {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.0625rem;
}

/* Cards */
.cards {
    display: grid;
    gap: 1.25rem;
}

.cards--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow);
}

.card__icon {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.625rem;
    letter-spacing: -0.01em;
}

.card__role {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.75rem;
}

.card__text {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.empty-hint {
    text-align: center;
    color: var(--text-muted);
}

/* Team cards */
.team-carousel {
    position: relative;
}

.team-carousel__viewport {
    overflow: visible;
}

.team-carousel__nav {
    display: none;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.team-card {
    flex: 0 0 auto;
    width: min(100%, 300px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-border);
    box-shadow: var(--shadow-lg);
}

.team-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--surface-muted);
    overflow: hidden;
}

.team-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 55%,
        rgba(15, 23, 42, 0.04) 100%
    );
    pointer-events: none;
}

.team-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card__photo {
    transform: scale(1.03);
}

.team-card__photo--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--accent-subtle) 0%, #e0e7ff 100%);
}

.team-card__initials {
    font-size: clamp(3rem, 10vw, 4.5rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    opacity: 0.85;
}

.team-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.375rem 1.5rem 1.5rem;
}

.team-card__name {
    margin: 0 0 0.5rem;
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.team-card__role {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 0.875rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
}

.team-card__bio {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.team-card__social {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.25rem;
    padding-top: 1.125rem;
    border-top: 1px solid var(--border);
}

.team-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.team-card__social-link:hover {
    color: var(--accent);
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    transform: translateY(-2px);
}

.team-card__social-link:has(.fa-telegram-plane):hover {
    color: #0088cc;
    background: rgba(0, 136, 204, 0.08);
    border-color: rgba(0, 136, 204, 0.25);
}

.team-card__social-link:has(.fa-linkedin-in):hover {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.08);
    border-color: rgba(10, 102, 194, 0.25);
}

/* Trust section */
.section--trust {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.trust-highlight {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
}

.trust-highlight__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--accent);
    font-size: 1.25rem;
    border: 1px solid var(--accent-border);
}

.trust-highlight__text {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.trust-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.trust-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow);
}

.trust-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    color: var(--accent);
    font-size: 1.125rem;
    border: 1px solid var(--border);
}

.trust-card__title {
    margin: 0 0 0.625rem;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.trust-card__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Legal section */
.section--legal {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: var(--surface-muted);
    border-top: 1px solid var(--border);
}

.legal-block {
    max-width: 720px;
    margin-inline: auto;
}

.legal-block__title {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    text-align: center;
}

.legal-list {
    margin: 0;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legal-list__row {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 0.75rem 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.legal-list__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-list__row:first-child {
    padding-top: 0;
}

.legal-list dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legal-list dd {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text);
}

.footer__legal-link {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
}

.footer__legal-link a {
    color: var(--text-muted);
}

.footer__legal-link a:hover {
    color: var(--accent);
}

/* Stack */
.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.375rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 110px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s;
}

.stack-item:hover {
    border-color: var(--accent-border);
}

.stack-item__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 0.25rem;
}

.stack-item__name {
    font-weight: 600;
    font-size: 0.875rem;
}

.stack-item__cat {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contacts */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.contacts__info .section__title,
.contacts__info .section__desc,
.contacts__info .section__label {
    text-align: left;
}

.contacts__list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.contacts-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contacts-item:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow);
}

.contacts-item__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: 1rem;
    border: 1px solid var(--accent-border);
}

.contacts-item__icon--telegram {
    color: #0088cc;
    background: rgba(0, 136, 204, 0.08);
    border-color: rgba(0, 136, 204, 0.2);
}

.contacts-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contacts__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.contacts-item__body a,
.contacts-item__value {
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.45;
    word-break: break-word;
}

.contacts-item__body a:hover {
    color: var(--accent);
}

.contacts__form-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.lead-form__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.375rem;
}

.form-input,
.lead-form textarea,
.lead-form input {
    width: 100%;
    padding: 0.6875rem 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9375rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.lead-form textarea:focus,
.lead-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.form-group--error .form-input,
.form-group--error input,
.form-group--error textarea {
    border-color: #ef4444;
}

.form-error {
    display: block;
    color: var(--error-text);
    font-size: 0.8125rem;
    margin-top: 0.3rem;
}

.lead-form__note {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    background: var(--bg-alt);
}

.footer__inner {
    text-align: center;
}

.footer__brand {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.footer__tagline {
    color: var(--text-muted);
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero__visual {
        max-width: 480px;
        margin-inline: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-110%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav a {
        padding: 0.875rem 1rem;
        border-radius: var(--radius-sm);
    }

    .nav a:hover {
        background: var(--surface-muted);
    }

    .nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .contacts__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-panel__diagram {
        --diagram-gap: 0.625rem;
    }

    .hero-panel__metrics {
        grid-template-columns: 1fr;
    }

    /* Team carousel (mobile) */
    .team-carousel__viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-inline: -0.25rem;
        padding-inline: 0.25rem;
    }

    .team-carousel__viewport::-webkit-scrollbar {
        display: none;
    }

    .team-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 1rem;
        padding-inline: 7.5%;
    }

    .team-card {
        flex: 0 0 85%;
        width: 85%;
        max-width: none;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .team-card:hover {
        transform: none;
    }

    .team-carousel__nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.25rem;
    }

    .team-carousel__arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text-muted);
        font-size: 0.875rem;
        cursor: pointer;
        transition: color 0.15s, border-color 0.15s, background 0.15s;
    }

    .team-carousel__arrow:hover:not(:disabled) {
        color: var(--accent);
        border-color: var(--accent-border);
        background: var(--accent-subtle);
    }

    .team-carousel__arrow:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

    .team-carousel__dots {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .team-carousel__dot {
        width: 0.5rem;
        height: 0.5rem;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: var(--border-strong);
        cursor: pointer;
        transition: width 0.2s, background 0.2s;
    }

    .team-carousel__dot.is-active {
        width: 1.25rem;
        background: var(--accent);
    }

    .trust-highlight {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .legal-list__row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
