/* ==========================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ
   ========================================== */

:root {
    --black: #111111;
    --white: #ffffff;

    --gray-light: #f4f4f5;
    --gray-border: #e5e7eb;
    --gray-text: #6b7280;

    --accent: #007bff;

    --font-head: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
}


/* ==========================================
   RESET
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}
/* ==========================================
   HONEYPOT
   ========================================== */

.honeypot {
    display: none;
}

/* ==========================================
   ОСНОВНЫЕ КОНТЕЙНЕРЫ
   ========================================== */

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

.section-padding {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--gray-light);
}

.section-title {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}


/* ==========================================
   КНОПКИ
   ========================================== */

.btn {
    display: inline-block;
    padding: 16px 32px;

    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    border: none;
    border-radius: 2px;

    transition: all 0.3s ease;
}

.btn-solid {
    background-color: var(--black);
    color: var(--white);
    border: 1px solid var(--black);
}

.btn-solid:hover {
    background-color: transparent;
    color: var(--black);
}

.btn-outline {
    background-color: transparent;
    color: var(--black);
    border: 1px solid var(--gray-border);
}

.btn-outline:hover {
    border-color: var(--black);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: 1px solid var(--accent);

    padding: 15px 35px;
    border-radius: 8px;

    font-weight: 600;

    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.w-100 {
    width: 100%;
}


/* ==========================================
   HEADER
   ========================================== */

.header {
    position: sticky;
    top: 0;

    padding: 24px 0;

    background: rgba(255, 255, 255, 0.95);

    border-bottom: 1px solid var(--gray-border);

    backdrop-filter: blur(8px);

    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: var(--black);

    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;

    text-decoration: none;

    letter-spacing: -0.04em;
}

.nav a {
    color: var(--black);

    margin: 0 20px;

    font-size: 0.95rem;
    text-decoration: none;

    transition: color 0.2s ease;
}

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


/* ==========================================
   HERO
   ========================================== */

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.hero-content {
    flex: 1 1 0;

    min-width: 0;
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-head);

    font-size: 4.5rem;
    font-weight: 800;

    line-height: 1.1;
    letter-spacing: -0.03em;

    margin-bottom: 24px;
}

.hero p {
    max-width: 600px;

    margin-bottom: 48px;

    color: var(--gray-text);

    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}


/* ==========================================
   HERO TERMINAL
   ========================================== */

.hero-terminal {
    flex: 0 1 460px;

    width: 460px;
    max-width: 100%;

    overflow: hidden;

    background: #0d1117;

    border: 1px solid #2a2f36;
    border-radius: 14px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.terminal-bar {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 13px 16px;

    background: #161b22;

    border-bottom: 1px solid #2a2f36;
}

.dot {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ff5f56;
}

.dot:nth-child(2) {
    background: #ffbd2e;
}

.dot:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    margin-left: 8px;

    color: #8b949e;

    font-size: 0.75rem;
}

.terminal-body {
    min-height: 260px;

    margin: 0;
    padding: 24px;

    overflow-x: auto;

    color: #b8f7c5;

    font-size: 0.9rem;
    line-height: 1.8;

    white-space: pre-wrap;
}

.cursor {
    color: #00c853;

    animation: terminalBlink 1s step-end infinite;
}

@keyframes terminalBlink {
    50% {
        opacity: 0;
    }
}


/* ==========================================
   СЕТКИ
   ========================================== */

.grid-2 {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;
}

.grid-3 {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 40px;
}


/* ==========================================
   КАРТОЧКИ УСЛУГ
   ========================================== */

.service-card {
    padding: 40px;

    background: var(--white);

    border: 1px solid var(--gray-border);
    border-radius: 12px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-color: var(--accent);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    margin-bottom: 16px;

    font-family: var(--font-head);
    font-size: 1.5rem;
}

.service-card p {
    color: var(--gray-text);
}


/* ==========================================
   PORTFOLIO
   ========================================== */

.portfolio-header {
    max-width: 850px;

    margin-bottom: 70px;
}

.portfolio-eyebrow {
    display: block;

    margin-bottom: 20px;

    color: var(--gray-text);

    font-size: 0.8rem;
    font-weight: 600;

    letter-spacing: 0.12em;
}

.portfolio-header .section-title {
    margin-bottom: 25px;
}

.portfolio-intro {
    max-width: 650px;

    color: var(--gray-text);

    font-size: 1.15rem;
}


/* ==========================================
   СЕТКА ПРОЕКТОВ
   ========================================== */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 60px 40px;
}


/* ==========================================
   КАРТОЧКА ПРОЕКТА
   ========================================== */

.project-card {
    display: block;

    color: inherit;

    text-decoration: none;
}

.project-cover {
    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    margin-bottom: 22px;

    background-color: #e5e5e5;

    border-radius: 10px;
}

.project-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-cover img {
    transform: scale(1.04);
}

.project-info {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.project-info-main {
    min-width: 0;
}

.project-title {
    margin-bottom: 6px;

    color: var(--black);

    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 700;
}

.project-desc {
    color: var(--gray-text);

    font-size: 0.95rem;
    line-height: 1.5;
}

.project-tags {
    flex-shrink: 0;

    max-width: 220px;

    color: var(--gray-text);

    font-family: monospace;
    font-size: 0.75rem;

    text-align: right;
}


/* ==========================================
   ПУСТОЕ ПОРТФОЛИО
   ========================================== */

.portfolio-empty {
    grid-column: 1 / -1;

    padding: 80px 40px;

    border: 1px solid var(--gray-border);

    text-align: center;
}

.portfolio-empty h2 {
    margin-bottom: 15px;

    font-family: var(--font-head);
    font-size: 2rem;
}

.portfolio-empty p {
    max-width: 500px;

    margin: 0 auto 30px;

    color: var(--gray-text);
}


/* ==========================================
   СТАРЫЕ WORK CARD
   ========================================== */

.work-card {
    display: flex;

    flex-direction: column;

    color: inherit;

    text-decoration: none;
}

.work-img {
    height: 350px;

    margin-bottom: 24px;

    background-color: #e5e5e5;

    transition: opacity 0.3s ease;
}

.work-card:hover .work-img {
    opacity: 0.9;
}

.dark-img {
    background-color: #222;
}

.light-img {
    background-color: #d1d5db;
}

.work-info h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
}

.work-info p {
    margin-bottom: 8px;

    color: var(--gray-text);

    font-size: 0.95rem;
}

.tag {
    font-size: 0.8rem;

    font-weight: 500;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}


/* ==========================================
   PROJECT CASE
   ========================================== */

.case-hero {
    background-color: var(--gray-light);
}

.case-header {
    max-width: 900px;
}

.case-tags {
    display: block;

    margin-bottom: 25px;

    color: var(--gray-text);

    font-family: monospace;
    font-size: 0.8rem;
}

.case-header h1 {
    margin-bottom: 25px;

    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.case-header p {
    max-width: 700px;

    color: var(--gray-text);

    font-size: 1.3rem;
}


/* ==========================================
   ГЛАВНАЯ ОБЛОЖКА CASE
   ========================================== */

.case-cover {
    width: 100%;

    background-color: #e5e5e5;
}

.case-cover img {
    display: block;

    width: 100%;

    max-height: 75vh;

    object-fit: cover;
}


/* ==========================================
   КОНТЕНТ CASE
   ========================================== */

.case-content {
    background-color: var(--white);
}

.case-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 300px;

    gap: 100px;

    align-items: start;
}

.case-main {
    max-width: 760px;
}

.case-section {
    margin-bottom: 80px;
}

.case-section h2 {
    margin-bottom: 25px;

    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
}

.case-text {
    color: #333;

    font-size: 1.1rem;
    line-height: 1.8;
}

.case-text p {
    margin-bottom: 20px;
}

.case-text p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   ФУНКЦИОНАЛ CASE
   ========================================== */

.case-features {
    padding: 0;
    margin: 0;

    list-style: none;

    border-top: 1px solid var(--gray-border);
}

.case-features li {
    padding: 18px 0;

    border-bottom: 1px solid var(--gray-border);

    font-size: 1.05rem;
}

.case-features li::before {
    content: "→";

    margin-right: 15px;

    color: var(--gray-text);
}


/* ==========================================
   ГАЛЕРЕЯ CASE
   ========================================== */

.case-gallery-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.case-gallery-item {
    margin: 0;
}

.case-gallery-item:first-child {
    grid-column: 1 / -1;
}

.case-gallery-item img {
    display: block;

    width: 100%;
    height: auto;

    border-radius: 8px;
}

.case-gallery-item figcaption {
    margin-top: 10px;

    color: var(--gray-text);

    font-size: 0.85rem;
}

.case-gallery-empty {
    color: var(--gray-text);
}


/* ==========================================
   SIDEBAR CASE
   ========================================== */

.case-sidebar {
    position: sticky;

    top: 110px;
}

.case-sidebar-inner {
    padding: 30px;

    border: 1px solid var(--gray-border);
}

.case-sidebar-inner h3 {
    margin-bottom: 30px;

    font-family: var(--font-head);
    font-size: 1.25rem;
}

.case-sidebar-block {
    padding-top: 25px;
    margin-bottom: 25px;

    border-top: 1px solid var(--gray-border);
}

.case-sidebar-label {
    display: block;

    margin-bottom: 12px;

    color: var(--gray-text);

    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.1em;
}

.case-stack {
    font-family: monospace;

    font-size: 0.85rem;

    line-height: 1.7;
}


/* ==========================================
   CTA CASE
   ========================================== */

.case-cta-inner {
    max-width: 700px;
}

.case-cta-inner h2 {
    margin-bottom: 20px;

    font-family: var(--font-head);
    font-size: 3rem;
}

.case-cta-inner p {
    margin-bottom: 30px;

    color: var(--gray-text);

    font-size: 1.1rem;
}


/* ==========================================
   ПРАЙС-ЛИСТ
   ========================================== */

.price-row {
    display: flex;

    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px dashed #333;

    font-size: 0.95rem;
}

.price-row:last-child {
    border-bottom: none;
}


/* ==========================================
   КАЛЬКУЛЯТОР
   ========================================== */

.calc-wrapper {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 50px;
}

.calc-controls {
    flex: 1;
}

.calc-summary {
    position: sticky;
    top: 100px;

    width: 350px;
    min-width: 350px;

    padding: 40px 30px;

    background: var(--black);
    color: var(--white);

    border-radius: 16px;
}

.calc-group {
    margin-bottom: 40px;
}

.calc-group-title {
    margin-bottom: 15px;

    font-size: 1.2rem;
    font-weight: 600;
}

.calc-grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );

    gap: 15px;
}

.calc-tile {
    position: relative;

    display: block;

    cursor: pointer;
}

.calc-tile input {
    position: absolute;

    width: 0;
    height: 0;

    margin: 0;

    opacity: 0;

    appearance: none;
    -webkit-appearance: none;
}

.calc-tile span {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 100%;

    padding: 15px;

    background: #f8f9fa;

    border: 2px solid var(--gray-border);
    border-radius: 10px;

    font-size: 0.95rem;
    font-weight: 500;

    text-align: center;

    user-select: none;

    transition: all 0.2s;
}

.calc-tile:hover span {
    background: #f0f0f0;

    border-color: #ddd;
}

.calc-tile input:checked ~ span {
    background: rgba(0, 123, 255, 0.1);

    border-color: var(--accent);

    color: var(--accent);
}

.calc-total {
    margin-bottom: 30px;

    color: var(--accent);

    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
}


/* ==========================================
   CTA / ФОРМА
   ========================================== */

.cta-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;
}

.cta-text p {
    margin-bottom: 40px;

    color: var(--gray-text);

    font-size: 1.125rem;
}

.contact-direct p {
    margin-bottom: 10px;

    color: var(--black);

    font-size: 0.9rem;
    font-weight: 600;
}

.contact-link {
    display: block;

    margin-bottom: 8px;

    color: var(--black);

    font-family: var(--font-head);
    font-size: 1.25rem;

    text-decoration: underline;
}

.contact-link:hover {
    color: var(--gray-text);
}

.contact-form {
    padding: 40px;

    background: var(--white);

    border: 1px solid var(--gray-border);
}

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

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--black);

    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;

    padding: 16px;

    background: var(--white);

    border: 1px solid var(--gray-border);
    border-radius: 0;

    font-family: var(--font-body);
    font-size: 1rem;

    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;

    border-color: var(--black);

    box-shadow: 0 0 0 1px var(--black);
}


/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: 60px 0 24px;

    background-color: var(--black);

    color: var(--white);
}

.footer-inner {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 40px;
}

.footer-col {
    min-width: 140px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: block;

    margin-bottom: 15px;

    color: var(--white);

    font-size: 1.5rem;
    font-weight: 800;
}

.footer-col p {
    margin: 0;

    color: #888;

    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    margin: 0 0 20px;

    color: var(--white);

    font-size: 1.1rem;
}

.footer-col ul {
    padding: 0;
    margin: 0;

    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col li:last-child {
    margin-bottom: 0;
}

.footer-col a {
    color: #aaa;

    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 40px;

    padding-top: 20px;

    border-top: 1px solid #333;

    color: #666;

    font-size: 0.8rem;

    text-align: center;
}


/* ==========================================
   PROJECT CONTACT BUTTON
   ========================================== */

.project-contact-btn {
    position: relative;

    overflow: hidden;
}

.project-contact-default,
.project-contact-hover {
    display: block;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.project-contact-hover {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    opacity: 0;

    transform: translateY(8px);
}

.project-contact-btn:hover .project-contact-default {
    opacity: 0;

    transform: translateY(-8px);
}

.project-contact-btn:hover .project-contact-hover {
    opacity: 1;

    transform: translateY(0);
}


/* ==========================================
   МОДАЛЬНОЕ ОКНО
   ========================================== */

.modal-overlay {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(4px);

    z-index: 1000;

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;

    visibility: visible;
}

.modal-content {
    position: relative;

    width: 100%;
    max-width: 900px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 40px;

    background: var(--white);

    border-radius: 2px;

    transform: translateY(20px);

    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;

    top: 20px;
    right: 24px;

    background: none;

    border: none;

    color: var(--gray-text);

    font-size: 2rem;

    line-height: 1;

    cursor: pointer;

    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--black);
}


/* ==========================================
   COOKIE BANNER
   ========================================== */

.cookie-banner {
    position: fixed;

    left: 20px;
    bottom: -450px;

    max-width: 350px;

    padding: 24px;

    background: var(--white);

    border: 1px solid #eee;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);

    z-index: 9999;

    transition:
        bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content p {
    margin-bottom: 15px;

    color: var(--gray-text);

    font-size: 0.85rem;

    line-height: 1.5;
}


/* ==========================================
   TOAST УВЕДОМЛЕНИЯ
   ========================================== */

.messages-container {
    position: fixed;

    top: 20px;
    right: 20px;

    display: flex;

    flex-direction: column;

    gap: 10px;

    z-index: 9999;
}

.toast-message {
    padding: 16px 24px;

    background: var(--black);

    color: var(--white);

    border-left: 4px solid #00C853;
    border-radius: 4px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

    font-size: 0.95rem;

    animation: slideInRight 0.4s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);

        opacity: 0;
    }

    to {
        transform: translateX(0);

        opacity: 1;
    }
}


/* ==========================================
   TELEGRAM
   ========================================== */

.tg-float-btn {
    position: fixed;

    right: 30px;
    bottom: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 60px;
    height: 60px;

    background-color: #2AABEE;

    border-radius: 50%;

    box-shadow: 0 4px 15px rgba(42, 171, 238, 0.4);

    z-index: 999;

    transition:
        transform 0.3s cubic-bezier(
            0.175,
            0.885,
            0.32,
            1.275
        ),
        box-shadow 0.3s ease;
}

.tg-float-btn:hover {
    transform: translateY(-5px) scale(1.05);

    box-shadow: 0 8px 25px rgba(42, 171, 238, 0.6);
}


/* ==========================================
   ABOUT
   ========================================== */

.about-intro {
    max-width: 850px;

    margin-bottom: 140px;
}

.about-eyebrow {
    display: block;

    margin-bottom: 22px;

    color: var(--gray-text);

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.about-lead {
    max-width: 720px;

    margin-top: 32px;

    color: var(--gray-text);

    font-size: 1.2rem;

    line-height: 1.7;
}


/* ==========================================
   ABOUT — STORY
   ========================================== */

.about-story {
    padding-bottom: 120px;

    border-bottom: 1px solid var(--gray-border);
}

.about-section-title {
    margin: 0;

    font-family: var(--font-head);

    font-size: 2rem;

    line-height: 1.2;
}

.about-text {
    max-width: 650px;
}

.about-text p {
    margin: 0 0 24px;

    font-size: 1.05rem;

    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}


/* ==========================================
   ABOUT — APPROACH
   ========================================== */

.about-approach {
    padding: 120px 0;
}

.about-section-heading {
    margin-bottom: 60px;
}

.about-steps {
    border-top: 1px solid var(--gray-border);
}

.about-step {
    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 40px;

    padding: 34px 0;

    border-bottom: 1px solid var(--gray-border);
}

.about-step-number {
    color: var(--gray-text);

    font-size: 0.8rem;
    font-weight: 600;
}

.about-step h3 {
    margin: 0 0 10px;

    font-family: var(--font-head);

    font-size: 1.25rem;
}

.about-step p {
    max-width: 620px;

    margin: 0;

    color: var(--gray-text);

    line-height: 1.7;
}


/* ==========================================
   ABOUT — PRINCIPLES
   ========================================== */

.about-principles {
    padding: 120px 0;

    border-top: 1px solid var(--gray-border);
}

.principles-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.principle-card {
    padding: 36px;

    border: 1px solid var(--gray-border);
    border-radius: 10px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-4px);

    border-color: #c7cbd1;
}

.principle-number {
    display: block;

    margin-bottom: 70px;

    color: var(--gray-text);

    font-size: 0.75rem;
    font-weight: 600;
}

.principle-card h3 {
    margin: 0 0 14px;

    font-family: var(--font-head);

    font-size: 1.3rem;
}

.principle-card p {
    margin: 0;

    color: var(--gray-text);

    line-height: 1.7;
}


/* ==========================================
   ABOUT — STACK
   ========================================== */

.about-stack {
    padding-top: 120px;
}

.about-stack-header {
    max-width: 650px;
}

.about-stack-header p {
    margin-top: 24px;

    color: var(--gray-text);

    line-height: 1.7;
}

.stack-list {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 45px;
}

.stack-list span {
    display: inline-flex;

    align-items: center;

    padding: 11px 16px;

    border: 1px solid var(--gray-border);
    border-radius: 6px;

    font-size: 0.85rem;
    font-weight: 600;
}

/* Контейнер слайдера */
#project-slider {
    position: relative;
    padding: 0 10px; /* Небольшие отступы, чтобы стрелки не прилипали вплотную к краям */
}

/* Стрелки управления */
.splide__arrow {
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный фон */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

.splide__arrow svg {
    fill: #ffffff; /* Белая стрелка */
    width: 16px;
    height: 16px;
}

.splide__arrow:hover {
    background: #000000;
    transform: scale(1.05);
}

/* Аккуратное расположение стрелок внутри */
.splide__arrow--prev {
    left: 10px; 
}
.splide__arrow--next {
    right: 10px;
}

/* Точки пагинации */
.splide__pagination {
    bottom: -30px; 
}

.splide__pagination__page {
    background: #cccccc;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.splide__pagination__page.is-active {
    background: #000000;
    transform: scale(1.3);
    opacity: 1;
}
/* ==========================================
   АДАПТИВ — ДО 992PX
   ========================================== */

@media (max-width: 992px) {

    /* HERO */

    .hero .container {
        flex-direction: column;

        align-items: stretch;

        gap: 50px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-terminal {
        width: 100%;

        max-width: 600px;

        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3.5rem;
    }


    /* GRID */

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }


    /* CALCULATOR */

    .calc-wrapper {
        flex-direction: column;
    }

    .calc-summary {
        position: static;

        width: 100%;
        min-width: 0;

        margin-top: 30px;
    }


    /* CTA */

    .cta-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    /* CASE */

    .case-header h1 {
        font-size: 3.8rem;
    }

    .case-layout {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .case-main {
        max-width: none;
    }

    .case-sidebar {
        position: static;
    }

    .case-sidebar-inner {
        max-width: 500px;
    }
}


/* ==========================================
   АДАПТИВ — ДО 768PX
   ========================================== */

@media (max-width: 768px) {

    /* GENERAL */

    .section-title {
        font-size: 2.4rem;
    }


    /* HEADER */

    .header-inner {
        flex-direction: column;

        gap: 16px;
    }


    /* HERO */

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-terminal {
        border-radius: 10px;
    }

    .terminal-body {
        min-height: 220px;

        padding: 18px;

        font-size: 0.78rem;
    }


    /* GRID */

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }


    /* PORTFOLIO */

    .projects-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .portfolio-header {
        margin-bottom: 45px;
    }

    .project-info {
        flex-direction: column;

        gap: 10px;
    }

    .project-tags {
        max-width: none;

        text-align: left;
    }


    /* CASE */

    .case-header h1 {
        font-size: 2.8rem;
    }

    .case-header p {
        font-size: 1.1rem;
    }

    .case-cover img {
        min-height: 300px;

        object-fit: cover;
    }

    .case-section {
        margin-bottom: 55px;
    }

    .case-section h2 {
        font-size: 1.6rem;
    }

    .case-text {
        font-size: 1rem;
    }

    .case-gallery-grid {
        grid-template-columns: 1fr;
    }

    .case-gallery-item:first-child {
        grid-column: auto;
    }

    .case-cta-inner h2 {
        font-size: 2.2rem;
    }


    /* FOOTER */

    .footer-inner {
        flex-direction: column;

        align-items: center;

        gap: 32px;

        text-align: center;
    }

    .footer-brand {
        max-width: 400px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-bottom {
        margin-top: 40px;
    }


    /* MODAL */

    .modal-content {
        width: 100%;
        height: 100vh;

        max-height: 100vh;

        padding: 24px;

        border-radius: 0;
    }


    /* COOKIE */

    .cookie-banner {
        left: 15px;
        right: 15px;

        max-width: none;
    }


    /* TELEGRAM */

    .tg-float-btn {
        right: 20px;
        bottom: 20px;

        width: 50px;
        height: 50px;
    }

    .tg-float-btn svg {
        width: 24px;
        height: 24px;
    }


    /* ABOUT */

    .about-intro {
        margin-bottom: 90px;
    }

    .about-lead {
        font-size: 1.05rem;
    }

    .about-story {
        grid-template-columns: 1fr;

        gap: 40px;

        padding-bottom: 80px;
    }

    .about-approach,
    .about-principles {
        padding: 80px 0;
    }

    .about-section-heading {
        margin-bottom: 40px;
    }

    .about-step {
        grid-template-columns: 45px 1fr;

        gap: 15px;

        padding: 28px 0;
    }

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

    .principle-card {
        padding: 28px;
    }

    .principle-number {
        margin-bottom: 45px;
    }

    .about-stack {
        padding-top: 80px;
    }
}
