/* ENOT DETAILS — стили, цветовая схема по логотипу */
:root {
    --color-bg: #0d0d0d;
    --color-bg-alt: #1a1a1a;
    --color-surface: #1e1e1e;
    --color-border: #2d2d2d;
    --color-accent: #4facc4;
    --color-accent-hover: #5fb8d0;
    --color-accent-dim: rgba(79, 172, 196, 0.15);
    --color-text: #f5f5f5;
    --color-text-muted: #9a9a9a;
    --color-white: #ffffff;
    --font: 'Montserrat', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --header-h: 72px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}
body.nav-open {
    overflow: hidden;
}

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

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: var(--header-h);
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.site-header.hidden {
    transform: translateY(-100%);
}
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    flex-shrink: 0;
}
.logo-img {
    height: 58px;
    width: auto;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}
.nav-list a {
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.nav-list a:hover::after {
    width: 100%;
}
.nav-list a.nav-phone {
    color: var(--color-accent);
}

.btn-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border: 1px solid rgba(79, 172, 196, 0.4);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-user:hover {
    background: rgba(79, 172, 196, 0.25);
    color: var(--color-white);
    border-color: var(--color-accent);
}
.icon-user {
    flex-shrink: 0;
}
.btn-user-text {
    display: none;
}

/* --- Main content offset --- */
.main-content {
    padding-top: var(--header-h);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform 0.2s ease, box-shadow var(--transition);
}
.btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.btn-primary {
    background: linear-gradient(130deg, #4facc4, #326d7a);
    color: #fff;
}
.btn-primary:hover {
    background: linear-gradient(130deg, #5ab5cc, #3d7a88);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 172, 196, 0.35);
}
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}
.btn-outline:hover {
    background: var(--color-accent-dim);
    color: var(--color-white);
}
.btn-block {
    width: 100%;
}
.link-accent {
    color: var(--color-accent);
    font-weight: 500;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(13, 13, 13, 0.75) 0%, rgba(13, 13, 13, 0.5) 40%, rgba(13, 13, 13, 0.85) 100%),
        url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    text-align: center;
}

.hero-title {
    margin: 0 0 20px;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.hero-title-main {
    display: block;
    color: var(--color-text);
}
.hero-title-accent {
    display: block;
    color: var(--color-accent);
    text-shadow: 0 0 40px rgba(79, 172, 196, 0.3);
}

.hero-utp {
    margin: 0 0 32px;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.hero-scroll-icon {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.6; }
}

/* --- Sections --- */
.section {
    padding: 80px 24px;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    color: var(--color-white);
}
.section-subtitle {
    margin: 0 0 48px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.0625rem;
}

/* --- Services --- */
.services {
    background: var(--color-bg-alt);
}

.services-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    text-align: center;
}
.service-card:hover {
    border-color: rgba(79, 172, 196, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-dim);
    border: 1px solid rgba(79, 172, 196, 0.3);
}
.service-icon-polish { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='m12 6 2 4 4 2-2 4 2 4-4 2-2-4-4 2 2-4z'/%3E%3C/svg%3E"); background-size: 28px; background-position: center; background-repeat: no-repeat; }
.service-icon-ceramic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Cpath d='M12 2 4 6v6l8 4 8-4V6l-8-4z'/%3E%3Cpath d='m4 12 8 4 8-4'/%3E%3Cpath d='m4 16 8 4 8-4'/%3E%3C/svg%3E"); background-size: 28px; background-position: center; background-repeat: no-repeat; }
.service-icon-interior { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E"); background-size: 28px; background-position: center; background-repeat: no-repeat; }
.service-icon-wash { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M5 8l3 3'/%3E%3Cpath d='M19 8l-3 3'/%3E%3Cpath d='M6 14h12'/%3E%3Cpath d='M8 18h8'/%3E%3Cpath d='M7 22h10'/%3E%3C/svg%3E"); background-size: 28px; background-position: center; background-repeat: no-repeat; }

.service-card-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}
.service-card-desc {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.service-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    background: transparent;
    border: 1px solid rgba(79, 172, 196, 0.5);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.service-card-btn:hover {
    background: var(--color-accent-dim);
    color: var(--color-white);
}

.services-extra-title {
    margin: 0 0 24px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
}

.services-extra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card-extra .service-card-title {
    font-size: 1.0625rem;
}

/* --- Страница услуги --- */
.service-detail {
    padding: 48px 24px 80px;
    background: var(--color-bg-alt);
}
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
}
.service-detail-back {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}
.service-detail-article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px 40px 48px;
}
.service-detail-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    background: var(--color-accent-dim);
    border: 1px solid rgba(79, 172, 196, 0.3);
}
.service-detail-icon.service-icon-polish { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='m12 6 2 4 4 2-2 4 2 4-4 2-2-4-4 2 2-4z'/%3E%3C/svg%3E"); background-size: 32px; background-position: center; background-repeat: no-repeat; }
.service-detail-icon.service-icon-ceramic { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Cpath d='M12 2 4 6v6l8 4 8-4V6l-8-4z'/%3E%3Cpath d='m4 12 8 4 8-4'/%3E%3Cpath d='m4 16 8 4 8-4'/%3E%3C/svg%3E"); background-size: 32px; background-position: center; background-repeat: no-repeat; }
.service-detail-icon.service-icon-interior { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E"); background-size: 32px; background-position: center; background-repeat: no-repeat; }
.service-detail-icon.service-icon-wash { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234facc4' stroke-width='2'%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M5 8l3 3'/%3E%3Cpath d='M19 8l-3 3'/%3E%3Cpath d='M6 14h12'/%3E%3Cpath d='M8 18h8'/%3E%3Cpath d='M7 22h10'/%3E%3C/svg%3E"); background-size: 32px; background-position: center; background-repeat: no-repeat; }
.service-detail-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
}
.service-detail-lead {
    margin: 0 0 28px;
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.service-detail-body {
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}
.service-detail-body p {
    margin: 0 0 1em;
}
.service-detail-body p:last-child {
    margin-bottom: 0;
}
.service-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.service-detail-actions .btn {
    flex-shrink: 0;
}
.section-error {
    padding: 80px 24px;
    text-align: center;
}
.section-error h1 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    color: var(--color-text);
}
@media (max-width: 768px) {
    .service-detail-article {
        padding: 28px 24px 32px;
    }
    .service-detail-actions {
        flex-direction: column;
    }
    .service-detail-actions .btn {
        width: 100%;
    }
}

/* --- Внутренние страницы (О нас, Контакты) --- */
.page-intro {
    padding: 48px 24px 32px;
    background: var(--color-bg-alt);
}
.page-title {
    margin: 0 0 16px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
}
.page-lead {
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.about-page {
    background: var(--color-bg);
}
.about-page-text {
    max-width: 720px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}
.about-page-text p {
    margin: 0;
}
.contacts-page {
    padding-top: 0;
    background: var(--color-bg);
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 32px;
    margin-bottom: 48px;
}
.contacts-block {
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.contacts-block-title {
    margin: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contacts-block-value {
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-text);
}
.contacts-block-value a {
    color: var(--color-accent);
}
.contacts-page .map-section {
    padding-top: 0;
}
.contacts-cta {
    margin-top: 48px;
    text-align: center;
}
.contacts-cta p {
    margin: 0 0 16px;
    color: var(--color-text-muted);
}
@media (max-width: 768px) {
    .page-intro {
        padding: 32px 20px 24px;
    }
    .page-title {
        font-size: 1.5rem;
    }
}

/* --- About --- */
.about {
    background: var(--color-bg);
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}
.about-item {
    padding: 32px 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}
.about-item:hover {
    border-color: rgba(79, 172, 196, 0.3);
    transform: translateY(-2px);
}
.about-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.8;
    margin-bottom: 12px;
}
.about-item h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
}
.about-item p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* --- CTA --- */
.cta {
    position: relative;
    padding: 80px 24px;
    background-image:
        linear-gradient(180deg, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.7) 100%),
        url('../assets/cta-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cta-box {
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
}
.cta-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
}
.cta-text {
    margin: 0 0 28px;
    color: var(--color-text-muted);
    font-size: 1rem;
}
.cta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cta-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}
.cta-input::placeholder {
    color: var(--color-text-muted);
}
.cta-input:focus {
    outline: none;
    border-color: var(--color-accent);
}
.cta-form-message {
    margin-top: 16px;
    font-size: 14px;
    min-height: 20px;
}
.cta-form-message.success { color: #22c55e; }
.cta-form-message.error { color: #ef4444; }

/* --- Карта --- */
.map-section {
    padding: 80px 24px;
    background: var(--color-bg);
}
.map-section .section-title {
    margin-bottom: 12px;
}
.map-address {
    margin: 0 0 24px;
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-accent);
    font-weight: 500;
}
.map-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.map-yandex {
    width: 100%;
    height: 400px;
    background: var(--color-surface);
}
/* Тёмный фильтр карты под стиль сайта — применяется к обёртке */
.map-wrapper {
    filter: brightness(0.82) contrast(1.15) saturate(0.9);
}
@media (max-width: 768px) {
    .map-section {
        padding: 56px 20px;
    }
    .map-yandex {
        height: 320px;
    }
}

/* --- Footer --- */
.site-footer {
    padding: 48px 24px 24px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 12px;
}
.footer-tagline {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
.footer-heading {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-contacts p,
.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-contacts a,
.footer-nav a {
    color: var(--color-text-muted);
    font-size: 14px;
}
.footer-contacts a:hover,
.footer-nav a:hover {
    color: var(--color-accent);
}
.footer-contacts p + p {
    margin-top: 8px;
}
.footer-nav li + li {
    margin-top: 8px;
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* --- Modals --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal[hidden] {
    display: none !important;
}
.modal.is-open {
    opacity: 1;
    visibility: visible;
}
.modal.is-open .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--color-white);
}

.modal-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}
.modal-service-name {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--color-accent);
}
.modal-user-placeholder {
    margin: 0 0 20px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.modal-form label {
    display: block;
    margin-bottom: 16px;
}
.modal-form input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}
.modal-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}
.modal-form .btn {
    margin-top: 8px;
}
.modal-message {
    margin-top: 16px;
    font-size: 14px;
    min-height: 20px;
}
.modal-message.success { color: #22c55e; }
.modal-message.error { color: #ef4444; }

/* Модалка авторизации */
.modal-auth .auth-panel {
    margin-bottom: 16px;
}
.modal-auth .auth-forgot {
    margin: 12px 0 0;
    font-size: 14px;
    text-align: center;
}
.modal-auth .auth-forgot button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-accent);
}
.modal-auth .auth-switch {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--color-text-muted);
}
.modal-auth .auth-switch button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.modal-auth .auth-verify-text {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}
.modal-auth .auth-verify-text strong {
    color: var(--color-text);
}
.modal-auth .js-verify-code-input {
    font-size: 20px;
    letter-spacing: 0.3em;
    text-align: center;
}

/* Страница кабинета */
.cabinet-section {
    padding: 48px 24px 80px;
    background: var(--color-bg-alt);
}
.cabinet-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 40px;
}
.cabinet-greeting {
    margin: 0 0 4px;
    font-size: 1.25rem;
    color: var(--color-text);
}
.cabinet-email {
    margin: 0 0 24px;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}
.cabinet-info {
    margin-bottom: 24px;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}
.cabinet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
@media (max-width: 768px) {
    .cabinet-card {
        padding: 24px 24px;
    }
}

/* --- Scroll animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: calc(100vh - var(--header-h));
        z-index: 9999;
        background: var(--color-bg);
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-left: 1px solid var(--color-border);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
    }
    .main-nav.is-open {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        gap: 0;
        font-size: 1.25rem;
    }
    .nav-list li {
        border-bottom: 1px solid var(--color-border);
    }
    .nav-list a {
        display: block;
        padding: 16px 0;
    }
    .btn-user-text {
        display: inline;
    }
    .section {
        padding: 56px 20px;
    }
    .services-main {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 32px 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 16px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .btn-user span.btn-user-text {
        display: none;
    }
}
