@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-gray: #f4f4f5;
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --text-main: #09090b;
    --text-muted: #71717a;
    --border-light: #e4e4e7;
    --border-dark: #27272a;
    --accent: #000000;
}

html {
    background-color: var(--bg-main);
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: #ffffff;
}

main { flex: 1; }

h1, h2, h3, .nav-links a {
    font-family: 'Space Grotesk', sans-serif;
}

/* === СБРОС СИНЕЙ АНИМАЦИИ, ПОДСВЕТКИ И ФОКУСА === */
*, *::before, *::after {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    box-sizing: border-box;
}

a, a:visited, a:active, a:focus, a:hover,
button, button:focus, button:active, button:visited,
input, textarea, select {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: inherit;
}

.btn, .nav-links a, .logo-block, .phone-link, .slider-arrow, .dot {
    user-select: none;
    -webkit-user-select: none;
}

/* === ШАПКА === */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #ffffff;
    border-bottom: 2px solid var(--accent);
}

.logo-block {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.logo-block img {
    max-height: 48px;
    display: block;
    border: 0;
}

.header-contacts { display: flex; align-items: center; gap: 20px; }

.phone-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent) !important;
    letter-spacing: 0.5px;
}

.phone-link:hover { color: var(--text-muted) !important; }

.header-buttons { display: flex; gap: 10px; }

/* === НАВИГАЦИЯ === */
.navbar {
    background: var(--bg-dark);
    padding: 16px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links { display: flex; gap: 25px; }

.nav-links a {
    color: #a1a1aa !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a:active, .nav-links a:focus { color: #ffffff !important; }

/* === КНОПКИ === */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn:hover, .btn:active, .btn:focus {
    background: #ffffff;
    color: var(--accent) !important;
}

.btn-dark {
    background: #27272a;
    border-color: #27272a;
    color: #ffffff !important;
}

.btn-dark:hover, .btn-dark:active, .btn-dark:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000 !important;
}

.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
}

.btn-outline:hover, .btn-outline:active, .btn-outline:focus {
    background: var(--accent);
    color: #ffffff !important;
}

.btn-full { width: 100%; text-align: center; }

/* === HERO SLIDER === */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero-slider { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }

.hero-slide {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0;
    background-size: cover; background-position: center;
    opacity: 0; filter: grayscale(100%) contrast(110%);
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active { opacity: 0.45; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding: 0 10%; box-sizing: border-box;
    color: #ffffff;
    pointer-events: none;
}

.hero-overlay * { pointer-events: auto; }

.hero-tag {
    background: #ffffff;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-overlay h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 15px;
    max-width: 800px;
    line-height: 1.1;
}

.hero-overlay p {
    font-size: 15px;
    color: #a1a1aa;
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
    border: 1px solid var(--border-dark);
    font-size: 24px;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-arrow:hover { background: #ffffff; color: #000000 !important; }
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.dot {
    width: 10px; height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active { background: #ffffff; transform: scale(1.3); }

/* === СЕКЦИИ И КАРТОЧКИ ВНУТРЕННИХ СТРАНИЦ === */
.section { padding: 70px 8%; }
.section-gray { background: var(--bg-gray); }
.section-dark { background: var(--bg-dark); color: #ffffff; }

.section-compact { padding: 40px 8%; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 15px;
}

.section-compact .section-header { margin-bottom: 20px; }
.section-dark .section-header { border-color: var(--border-dark); }

.section-title {
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ddb-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.section-dark .ddb-card {
    background: var(--bg-card);
    border-color: var(--border-dark);
}

.ddb-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.ddb-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
    background-color: var(--bg-gray);
    display: block;
}

.ddb-card:hover .ddb-card-img { filter: grayscale(0%); }

.ddb-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.ddb-card-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.ddb-card h3 {
    font-size: 20px;
    margin: 0 0 15px;
    font-weight: 700;
}

.ddb-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 25px;
}

.section-dark .ddb-card p { color: #a1a1aa; }

/* === ОФОРМЛЕНИЕ СПИСКОВ И ТЕКСТА ВО ВНУТРЕННИХ СТРАНИЦАХ === */
.text-page-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.text-page-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-page-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* === МЕТРИКИ КЛИЕНТОВ === */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.metric-box {
    background: #ffffff;
    border: 1px solid var(--border-light);
    padding: 30px;
    text-align: left;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* === ПОДВАЛ === */
.footer {
    background: var(--bg-dark);
    color: #71717a;
    padding: 50px 8%;
    border-top: 1px solid var(--border-dark);
    font-size: 13px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links a {
    color: #a1a1aa !important;
    text-decoration: none !important;
    margin-left: 20px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.footer-links a:hover, .footer-links a:active { color: #ffffff !important; }

/* === МОДАЛКИ === */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(5px);
    justify-content: center; align-items: center;
}

.modal-content {
    background: #ffffff;
    padding: 40px;
    width: 100%; max-width: 460px;
    position: relative;
}

.close-btn {
    position: absolute; right: 20px; top: 20px;
    font-size: 24px; cursor: pointer; color: var(--text-muted);
}

.modal input, .modal textarea {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid var(--border-light); font-size: 14px;
}

/* === ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ === */
.lang-switcher {
    padding: 6px 12px;
    border: 1px solid var(--border-light);
    background: #ffffff;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    color: #000000;
}

.lang-block { display: none; }
.lang-block.active { display: block; }

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .header-top { flex-direction: column; gap: 15px; text-align: center; }
    .header-contacts { flex-direction: column; width: 100%; }
    .header-buttons { flex-direction: column; width: 100%; }
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero-overlay h1 { font-size: 32px; }
    .section { padding: 50px 5%; }
    .section-compact { padding: 30px 5%; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}