/* ==========================================================================
   Custom Fonts
   ========================================================================== */
@font-face {
    font-family: 'Artifakt Element';
    src: url("") format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Artifakt Element';
    src: url("") format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Colors */
    --color-bg-dark: #121214;
    --color-bg-card: #1E1E22;
    --color-bg-card-hover: #26262B;

    --color-text-main: #FFFFFF;
    --color-text-muted: #A1A1AA;

    --color-primary: #3B8A85;
    /* Monolit Teal */
    --color-primary-hover: #4CA39D;

    --color-screed-accent: #3B8A85;
    --color-plaster-accent: #1A5276;

    /* Typography */
    --font-heading: 'Artifakt Element', 'Artifakt';
    --font-body: 'Artifakt Element', 'Artifakt';

    /* Spacing & Sizes */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --container-width: 1200px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
    /* clip работает как hidden, но НЕ ломает sticky! */
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
    background-image: radial-gradient(circle at 50% 0%, #1e1e24 0%, transparent 50%);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, #3B8A85 0%, #6CCEC7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Hub Layout
   ========================================================================== */
.hub-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.bg-blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.bg-circle-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    left: -200px;
}

.bg-circle-2 {
    width: 500px;
    height: 500px;
    background: var(--color-plaster-accent);
    bottom: -100px;
    right: -100px;
}

.bg-circle-3 {
    width: 450px;
    height: 450px;
    background: var(--color-primary);
    top: 40%;
    right: -100px;
}

.bg-circle-4 {
    width: 550px;
    height: 550px;
    background: var(--color-plaster-accent);
    bottom: 30%;
    left: -200px;
}

.hub-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
}

.hub-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--color-primary);
}

.hub-hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease forwards;
}

.main-title {
    font-size: clamp(1.7rem, 6vw, 4rem);
    margin-bottom: 1rem;
    word-break: break-word;
    hyphens: auto;
}

.subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Choice Cards
   ========================================================================== */
.choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.choice-card {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(40px);
}

.choice-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.choice-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 138, 133, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 138, 133, 0.1);
}

.card-image-wrapper {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.card-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-card) 0%, transparent 100%);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 138, 133, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -52px;
    margin-bottom: 1.5rem;
    z-index: 2;
    border: 2px solid var(--color-bg-card);
    transition: var(--transition-smooth);
}

.card-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    flex: 1;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
}


/* ==========================================================================
   Service Page (Screed/Plaster)
   ========================================================================== */
.page-container {
    padding: 6rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.trust-section-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-bg-image {
    position: absolute;
    inset: -20px;
    /* Slight overflow to hide blur edges */
    background: url("") center/cover no-repeat;
    filter: blur(10px) brightness(0.4);
    z-index: 1;
}

.trust-section-wrapper .page-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
    margin-bottom: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

@media (max-width: 600px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.trust-item {
    background: #1a1a1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(59, 138, 133, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(40px);
}

.trust-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.trust-item:hover {
    background: #1f1f24;
    border-color: var(--color-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 138, 133, 0.2);
}

.trust-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(59, 138, 133, 0.3);
    transform: translateZ(20px);
    white-space: nowrap;
}

.trust-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transform: translateZ(10px);
}

/* --- Materials Section --- */
.materials-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.material-card {
    background: #1a1a1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 1.5rem 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 138, 133, 0.2);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: center;
}

.material-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 138, 133, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(59, 138, 133, 0.2);
}

.material-card:hover::before {
    transform: scaleX(1);
}

.material-image-container {
    width: 100%;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.material-card:hover .material-image-container {
    box-shadow: 0 10px 25px rgba(59, 138, 133, 0.2);
    transform: translateY(-5px);
    border-color: rgba(59, 138, 133, 0.3);
}

.material-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.material-card:hover .material-image {
    transform: scale(1.08);
}

.material-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.8rem;
}

.material-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    width: 100%;
}

.pricing-card {
    background: var(--color-bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
}

.pricing-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    background: linear-gradient(180deg, var(--color-bg-card) 0%, rgba(59, 138, 133, 0.05) 100%);
    z-index: 2;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-features li::before {
    content: "?";
    color: var(--color-primary);
    font-weight: bold;
}

.cta-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1A5276 100%);
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    margin-top: 4rem;
}

.btn-white {
    background: white;
    color: var(--color-primary);
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-white:hover {
    background: #f8f9fa;
}

/* ==========================================================================
   Footer & Animations
   ========================================================================== */
.hub-footer {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.footer-contacts a {
    color: white;
    font-weight: 500;
    margin-top: 0.5rem;
    display: inline-block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* ==========================================================================
   Calculator Styles
   ========================================================================== */
.calculator-container {
    background: #1a1a1e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    gap: 4rem;
    margin-bottom: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.calculator-container::before {
    display: none;
}

.calc-inputs {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.num-input {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(59, 138, 133, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
    padding: 0.6rem 0.8rem;
    width: 100px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
    box-shadow: 0 0 15px rgba(59, 138, 133, 0.1);
}

.num-input:focus {
    border-color: var(--color-primary);
    background: rgba(59, 138, 133, 0.15);
    box-shadow: 0 0 20px rgba(59, 138, 133, 0.3);
}

/* Hide spin buttons */
.num-input::-webkit-inner-spin-button,
.num-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quick-select {
    display: grid !important;
    gap: 0.5rem !important;
    margin-top: 0.8rem !important;
    width: 100% !important;
}

.thickness-select {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
}

.distance-select {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 0.6rem 0.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    text-align: center;
    width: 100%;
    min-width: 0;
    /* Important for grid shrinking */
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    /* Ensure it behaves as a block in the grid cell */
}

@media (max-width: 768px) {

    /* Keep 5 columns if possible, buttons are small */
    .distance-select,
    .thickness-select {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 576px) {

    /* Break down to 2 columns of 5 rows for very small screens for perfect symmetry */
    .thickness-select {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .distance-select {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.chip:hover {
    background: rgba(59, 138, 133, 0.1);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.chip.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Custom Range Input */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--color-bg-card);
    box-shadow: 0 0 10px rgba(59, 138, 133, 0.5);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: var(--color-primary-hover);
}

.calc-result {
    flex: 0.8;
    background: #1a1a1e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 2px solid rgba(59, 138, 133, 0.3);
    min-height: 400px;
    z-index: 1;
}

.result-main {
    margin: auto 0;
}

.result-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.result-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(59, 138, 133, 0.4);
    animation: neon-pulse 3s infinite ease-in-out;
}

@keyframes neon-pulse {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(59, 138, 133, 0.4), 0 0 30px rgba(59, 138, 133, 0.1);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 25px rgba(59, 138, 133, 0.7), 0 0 45px rgba(59, 138, 133, 0.3);
        transform: scale(1.02);
    }
}

.result-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.result-validity {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
    opacity: 0.8;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .calculator-container {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem;
    }

    .calc-inputs,
    .calc-result {
        flex: none;
        width: 100%;
    }
}

/* ==========================================================================
   New Header & Hero (Monolit Unique)
   ========================================================================== */

/* Top Navigation */
.top-nav {
    background: var(--color-bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0;
    color: var(--color-text-muted);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(59, 138, 133, 0.1);
}

/* === Burger Menu === */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.burger-menu:hover {
    border-color: var(--color-primary);
}

.burger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        background 0.2s ease;
    transform-origin: center;
}

.burger-menu:hover span {
    background: var(--color-primary);
}

/* Open state → X */
.burger-menu.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
@media (max-width: 768px) {

    /* Схлопываем top-nav в ноль — НЕ display:none, иначе дропдаун не покажется */
    .top-nav {
        height: 0;
        padding: 0;
        border: none;
        overflow: visible;
    }

    .nav-container {
        height: 0;
        overflow: visible;
    }

    /* Бургер теперь в хедере - позиционируем его жестко в правый верхний угол */
    .header-container {
        position: relative;
    }

    .burger-menu {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 10px;
        /* Идеальное выравнивание по центру логотипа */
        margin-left: 0 !important;
        /* переопределяем инлайн-стиль */
    }

    /* Дропдаун — фиксированный, top выставляется через JS */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 130px;
        /* запасное значение, JS пересчитает */
        left: 0;
        right: 0;
        background: rgba(18, 18, 20, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(59, 138, 133, 0.2);
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.3s ease;
        z-index: 1000;
    }

    .nav-links.is-open {
        max-height: 360px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border: none;
        border-radius: 0;
        background: transparent;
        text-align: left;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(59, 138, 133, 0.12);
        color: var(--color-primary);
        border: none;
        border-radius: 0;
    }

    /* Кнопки в одну строку на мобилке */
    .header-logo {
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        /* возвращаем логотип по центру */
    }

    .header-descriptor {
        flex: 0 0 100%;
    }

    .header-contact,
    .header-action {
        flex: 1;
        /* Кнопки делят ширину 50/50 */
        display: flex;
        align-self: stretch;
        /* Растягиваем обе на высоту самой высокой */
    }

    .header-contact a,
    .header-action a {
        width: 100%;
        height: 100%;
        /* Заполняем весь контейнер */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.25rem !important;
        /* меньше отступ по бокам, чтобы текст лучше влезал */
        font-size: 0.8rem !important;
        text-align: center;
    }

    .header-action a span {
        font-size: 0.8rem !important;
        line-height: 1.2;
    }
}

/* Main Header */
.main-header {
    background: var(--color-bg-dark);
    padding: 1.5rem 0;
    color: var(--color-text-main);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-logo a {
    font-size: 2rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--color-text-main);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header-logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(59, 138, 133, 0.4);
}

.header-descriptor {
    font-size: 0.95rem;
    font-weight: 600;
    border-left: 2px solid var(--color-primary);
    padding-left: 1rem;
    line-height: 1.3;
}

.header-contact {
    text-align: right;
}

.phone-number {
    text-decoration: none;
    color: white;
    font-weight: 800;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: inherit;
}

.phone-number:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.work-hours {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ==========================================================================
   Modals & Forms
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 450px;
    padding: 3rem 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #888;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: white;
}

#modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

#modal-subtitle {
    color: #888;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #CCCCCC;
}

.modal-form input {
    width: 100%;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-note {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(71, 169, 137, 0.4);
}

/* Hero Section */
.screed-hero {
    background: #E5E7EB;
    position: relative;
    padding: 0;
    min-height: 550px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: -20px;
    background-color: #121214;
    /* Двойной фон: сначала градиент, который растворяет левый край картинки, затем сама картинка */
    background-image:
        linear-gradient(to left, transparent 0%, transparent 30%, #121214 55%),
        url("hero-bg-final.jpeg");
    background-position: left center, right center;
    background-size: 100% 100%, auto 110%;
    background-repeat: no-repeat, no-repeat;
    z-index: 0;
}

/* Layer to create blurred edges and center focus */
.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(84px);
    /* Вернул 84px для максимального размытия */

    /* Растворяем размытие к правой части, чтобы машина оставалась четкой */
    mask-image: linear-gradient(90deg, black 0%, black 35%, transparent 70%);
    -webkit-mask-image: linear-gradient(90deg, black 0%, black 35%, transparent 70%);

    /* Градиент затемнения от левого края (где текст) к правому */
    background: linear-gradient(90deg, #121214 0%, rgba(18, 18, 20, 0.9) 30%, rgba(18, 18, 20, 0.3) 55%, transparent 75%);
}

.screed-hero .hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
}

/* The striking shapes */
.hero-title-box {
    position: relative;
    padding: 2.5rem 5rem 2.5rem 0;
    margin-top: 2rem;
    z-index: 2;
    /* Neon glow that traces the clip-path shape of the ::before element */
    filter: drop-shadow(0 0 15px rgba(59, 138, 133, 0.6)) drop-shadow(0 0 3px rgba(59, 138, 133, 0.8));
}

.hero-title-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: -60px;
    bottom: 0;
    left: -50vw;
    /* Tinted turquoise gradient: darker/more opaque on left, lighter/more transparent on the right (angled cut) */
    background: linear-gradient(to right, rgba(26, 82, 118, 0.95) 0%, rgba(59, 138, 133, 0.85) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    /* Soft fade on the right edge — no sharp border line */
    -webkit-mask-image: linear-gradient(to right, black 0%, black 60%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 60%, transparent 100%);
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    color: white;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    /* Neon outline effect - 1.5px preserves letter clarity while providing the glow */
    -webkit-text-stroke: 1.5px var(--color-primary);
    text-shadow:
        0 0 10px rgba(59, 138, 133, 0.8),
        0 0 20px rgba(59, 138, 133, 0.6),
        0 0 30px rgba(59, 138, 133, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-benefits-box {
    position: relative;
    padding: 1.5rem 4rem 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
    z-index: 1;
    margin-top: -10px;
}

.hero-benefits-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: -50vw;
    /* Slightly darker tinted turquoise gradient for contrast */
    background: linear-gradient(to right, rgba(18, 18, 20, 0.95) 0%, rgba(26, 82, 118, 0.85) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
    /* Soft fade on the right edge — no sharp border line */
    -webkit-mask-image: linear-gradient(to right, black 0%, black 45%, transparent 80%);
    mask-image: linear-gradient(to right, black 0%, black 45%, transparent 80%);
}

.hero-benefits-box .benefit-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 2;

    /* Override general .benefit-item */
    flex-direction: row;
    border-radius: 0;
    background: rgba(18, 18, 20, 0.88);
    border: none;
    border-left: 2px solid rgba(108, 206, 199, 0.7);
    padding: 0.75rem 2rem 0.75rem 1rem;
    box-shadow: none;
    cursor: default;
    overflow: visible;

    /* Soft fade on the right side */
    -webkit-mask-image: linear-gradient(to right, black 0%, black 65%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 65%, transparent 100%);

    /* Neon outline — drop-shadow follows the visible area contour */
    filter:
        drop-shadow(0 0 4px rgba(59, 138, 133, 1)) drop-shadow(0 0 10px rgba(59, 138, 133, 0.7)) drop-shadow(0 0 18px rgba(59, 138, 133, 0.4));

    transition: filter 0.3s ease;
}

.hero-benefits-box .benefit-item:hover {
    filter:
        drop-shadow(0 0 6px rgba(108, 206, 199, 1)) drop-shadow(0 0 16px rgba(59, 138, 133, 0.9)) drop-shadow(0 0 28px rgba(59, 138, 133, 0.6));
}

.hero-benefits-box .check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 4px;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.hero-bottom {
    margin-top: 2rem;
    color: #111827;
}

.hero-bottom .hero-price {
    margin-bottom: 1.5rem;
    color: #2EA39B;
    /* Toned down Turquoise */
}

.hero-bottom .price-from {
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.hero-bottom .price-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.hero-image {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.hero-machine-img {
    height: 100%;
    width: 100%;
    min-height: 400px;
    background: url("") center/cover no-repeat;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .screed-hero .hero-container {
        flex-direction: column;
    }

    .hero-image {
        width: 100%;
        margin-top: 3rem;
        justify-content: center;
    }

    .hero-title-box,
    .hero-benefits-box {
        padding-right: 2rem;
    }

    .main-header .header-container {
        justify-content: center;
        text-align: center;
    }

    .header-descriptor {
        border-left: none;
        border-top: 2px solid var(--color-primary);
        padding-left: 0;
        padding-top: 0.5rem;
    }

    /* На планшетах — машина целиком, немного уменьшена */
    .hero-bg-image {
        background-size: 100% 100%, auto 75%;
        background-position: left center, right -20px center;
    }
}

@media (max-width: 600px) {

    /* На мобильных — обрезанное фото, машина целиком в кадре */
    .hero-bg-image {
        background: #121214 url("hero-bg-mobile.jpeg") 15% center / auto 100% no-repeat;
    }

    .hero-bg-image::after {
        display: none;
        /* Убираем черный градиент и размытие на мобилке */
    }
}

/* ==========================================================================
   Tactile Feedback (Ripple)
   ========================================================================== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   Attention Grabber (Heartbeat)
   ========================================================================== */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.08);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.btn-heartbeat {
    animation: heartbeat 1.5s infinite ease-in-out;
    transform-origin: center;
}

.btn-heartbeat:hover {
    animation-play-state: paused;
    /* User control on interaction */
}

/* ==========================================================================
   Showcase Animations
   ========================================================================== */

/* 1. Neon Glow Pulse */
.btn-neon {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 5px var(--color-primary), inset 0 0 5px var(--color-primary);
    transition: all 0.3s ease;
    animation: neon-border-pulse 3s infinite ease-in-out;
}

.btn-neon.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.btn-neon.btn-icon svg {
    display: block;
}

.btn-neon:hover {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px var(--color-primary), 0 0 30px var(--color-primary);
    text-shadow: 0 0 10px white;
    animation-play-state: paused;
}

@keyframes neon-border-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(59, 138, 133, 0.4), inset 0 0 5px rgba(59, 138, 133, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(59, 138, 133, 0.8), inset 0 0 10px rgba(59, 138, 133, 0.6);
        border-color: var(--color-primary-hover);
        color: var(--color-primary-hover);
    }
}

@keyframes neon-border-pulse-white {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(59, 138, 133, 0.4), inset 0 0 5px rgba(59, 138, 133, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(59, 138, 133, 0.8), inset 0 0 10px rgba(59, 138, 133, 0.6);
        border-color: var(--color-primary-hover);
    }
}

/* 2. Border Trace (Snake) */
.btn-snake {
    position: relative;
    background: #1a1a1e;
    overflow: hidden;
}

.btn-snake .snake-segment {
    position: absolute;
    display: block;
}

.btn-snake .snake-segment:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary));
    animation: snake-1 2s linear infinite;
}

@keyframes snake-1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.btn-snake .snake-segment:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--color-primary));
    animation: snake-2 2s linear infinite;
    animation-delay: 0.5s;
}

@keyframes snake-2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.btn-snake .snake-segment:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, var(--color-primary));
    animation: snake-3 2s linear infinite;
    animation-delay: 1s;
}

@keyframes snake-3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}

.btn-snake .snake-segment:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--color-primary));
    animation: snake-4 2s linear infinite;
    animation-delay: 1.5s;
}

@keyframes snake-4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}

/* 4. Text Slide */
.btn-text-slide {
    overflow: hidden;
}

.btn-text-slide .text-container {
    display: flex;
    flex-direction: column;
    height: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-text-slide:hover .text-container {
    transform: translateY(-100%);
}

.btn-text-slide .text-item {
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 5. Showcase Section Layout */
.showcase-section {
    padding: 6rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    margin: 4rem 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.demo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.demo-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.btn-magnetic {
    transition: transform 0.1s linear;
}

/* Helper for Hero Button sizing */
.hero-btn.btn-neon {
    padding: 1.25rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #1a1a1e;
    color: #ffffff;
    white-space: nowrap;
    animation: neon-border-pulse-white 3s infinite ease-in-out;
}

.hero-btn.btn-neon:hover {
    background: var(--color-primary);
    color: white;
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */

.portfolio-section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a1a1e;
    aspect-ratio: 4 / 3;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.portfolio-info {
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.portfolio-info p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Hover States */
.portfolio-item:hover .portfolio-img-wrapper img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Project Detail Page
   ========================================================================== */

.project-detail-page {
    background: #0d0d0f;
}

.project-hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.back-link:hover {
    transform: translateX(-5px);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.project-title-large {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 3rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.4rem;
    color: white;
    font-weight: 800;
}

.project-gallery-section {
    padding: 6rem 0;
    background: #0d0d0f;
}

.gallery-heading {
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 800;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #1a1a1e;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-cta {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(to bottom, #0d0d0f, #1a1a1e);
}

.project-cta h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.project-cta p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* Horizontal Timeline (Technology Section) */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    padding: 3rem 0.5rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: calc(3rem + 25px);
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 0;
    margin-bottom: 0;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.timeline-dot {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1a1e;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(59, 138, 133, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-item:hover .timeline-dot {
    background: var(--color-primary);
    color: #1a1a1e;
    box-shadow: 0 0 25px rgba(59, 138, 133, 0.6);
    transform: scale(1.1);
}

.timeline-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
    box-shadow: none;
    width: 100%;
}

.timeline-item:hover .timeline-content {
    border-color: transparent;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.timeline-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0 5px;
}

@media (max-width: 1024px) {
    .timeline-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem 1rem;
    }

    .timeline-item {
        flex: 0 0 calc(33.33% - 1rem);
    }

    .timeline-container::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .timeline-item {
        flex: 0 0 100%;
        max-width: 300px;
    }
}

/* Technology Advantages Tab */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: #1a1a1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(59, 138, 133, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background: #1f1f24;
    border-color: rgba(59, 138, 133, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 138, 133, 0.1);
}

.advantage-icon {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(59, 138, 133, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: var(--color-primary);
    color: #fff;
    transform: rotateY(10deg);
}

.advantage-card h3 {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Us Section */
.why-us-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-info,
.cooperation-stages {
    flex: 1;
}

/* Chevron Flow (Cooperation Tab - Variant 3) */
.cooperation-flow {
    display: flex;
    gap: 0.5rem;
    padding: 2rem 0;
}

.flow-step {
    flex: 1;
    background: rgba(59, 138, 133, 0.05);
    padding: 1.5rem 1rem 1.5rem 2.5rem;
    position: relative;
    border: 1px solid rgba(59, 138, 133, 0.1);
    border-right: none;
    clip-path: polygon(calc(100% - 20px) 0%,
            100% 50%,
            calc(100% - 20px) 100%,
            0% 100%,
            20px 50%,
            0% 0%);
    transition: all 0.3s ease;
    cursor: default;
    overflow: hidden;
}

/* Shimmer Flow Animation */
.flow-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 138, 133, 0.12),
            transparent);
    transition: none;
    animation: flowShimmer 5s infinite;
}

.flow-step:nth-child(2)::after {
    animation-delay: 1s;
}

.flow-step:nth-child(3)::after {
    animation-delay: 2s;
}

.flow-step:nth-child(4)::after {
    animation-delay: 3s;
}

.flow-step:nth-child(5)::after {
    animation-delay: 4s;
}

@keyframes flowShimmer {
    0% {
        left: -150%;
    }

    25% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.flow-step:first-child {
    clip-path: polygon(calc(100% - 20px) 0%,
            100% 50%,
            calc(100% - 20px) 100%,
            0% 100%,
            0% 0%);
    padding-left: 1.5rem;
    border-radius: 8px 0 0 8px;
}

.flow-step:last-child {
    clip-path: polygon(100% 0%,
            100% 100%,
            0% 100%,
            20px 50%,
            0% 0%);
    border-right: 1px solid rgba(59, 138, 133, 0.1);
    border-radius: 0 8px 8px 0;
}

.flow-step:hover {
    background: rgba(59, 138, 133, 0.15);
    transform: translateY(-2px);
    z-index: 5;
}

.flow-step .step-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.flow-step h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.flow-step p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

@media (max-width: 992px) {
    .cooperation-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .flow-step,
    .flow-step:first-child,
    .flow-step:last-child {
        clip-path: none;
        padding: 1.5rem;
        border: 1px solid rgba(59, 138, 133, 0.1);
        border-radius: 12px;
    }
}

/* Why Us Interactive Grid */
.benefits-grid-asymmetric {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

.benefit-item {
    background: #1a1a1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(59, 138, 133, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 138, 133, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 138, 133, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 138, 133, 0.2);
}

.benefit-item:hover::before {
    opacity: 1;
}

.benefit-item.active {
    background: #1f1f24;
    border-color: var(--color-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(59, 138, 133, 0.3);
}


.benefit-icon {
    width: 54px;
    height: 54px;
    background: rgba(59, 138, 133, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.benefit-item:hover .benefit-icon,
.benefit-item.active .benefit-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 15px rgba(59, 138, 133, 0.5);
}

.benefit-header {
    display: flex;
    flex-direction: column;
}

.benefit-text h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
}

.benefit-body {
    display: none;
}

.benefit-short-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    transition: opacity 0.3s ease;
}

.benefit-item.active .benefit-short-desc {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.expand-indicator {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    color: rgba(59, 138, 133, 0.5);
    transition: all 0.3s ease;
}

.benefit-item:hover .expand-indicator {
    color: var(--color-primary);
}

.benefit-item.active .expand-indicator {
    transform: rotate(180deg);
    color: var(--color-primary);
}

/* Creative Click Hint */
.click-hint {
    position: absolute;
    top: -40px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-primary);
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease 1s;
}

/* Creative Click Hint - Advanced Animation */
.click-hint.persistent {
    position: relative;
    top: 0;
    right: 0;
    margin: -1.5rem auto 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--color-primary);
    transform: rotate(-1deg);
    pointer-events: none;
    z-index: 10;
    opacity: 1;
}

.hint-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(59, 138, 133, 0.4);
    white-space: nowrap;
    animation: hintTextWiggle 4s infinite ease-in-out;
}

.hand-tap {
    position: relative;
    width: 40px;
    /* Reduced width for horizontal layout */
    height: 40px;
    /* Reduced height for horizontal layout */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tap-hand {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 5px rgba(59, 138, 133, 0.5));
    animation: handPress 2s infinite ease-in-out;
    z-index: 2;
}

.tap-ripple {
    position: absolute;
    top: 15px;
    /* Adjust to point of index finger */
    left: 20px;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    animation: tapRippleEffect 2s infinite ease-out;
}

@keyframes handPress {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(8px) scale(0.9);
    }

    50% {
        transform: translateY(8px) scale(0.9);
    }

    65% {
        transform: translateY(0) scale(1.05);
    }
}

@keyframes tapRippleEffect {

    0%,
    35% {
        transform: scale(0);
        opacity: 0;
    }

    40% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(5);
        opacity: 0;
    }

    100% {
        transform: scale(5);
        opacity: 0;
    }
}

@keyframes hintTextWiggle {

    0%,
    100% {
        transform: translateY(0) rotate(-0.5deg);
    }

    50% {
        transform: translateY(-2px) rotate(0.5deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Benefit Modal Styles */
.benefit-modal-content {
    max-width: 600px;
    background: var(--color-bg-dark);
    padding: 3rem;
    border: 1px solid rgba(59, 138, 133, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 138, 133, 0.1);
}

.benefit-modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 138, 133, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--color-primary);
}

.benefit-modal-icon svg {
    width: 48px;
    height: 48px;
}

.benefit-modal-body h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 2rem;
}

.benefit-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

.benefit-description p {
    margin-bottom: 1.5rem;
}

.benefit-description strong {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .click-hint {
        top: -30px;
        right: 10px;
        transform: rotate(10deg) scale(0.8);
    }
}

@media (max-width: 992px) {
    .benefits-grid-asymmetric {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits-grid-asymmetric {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .benefits-grid-asymmetric {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
        padding: 0 5px;
    }

    .benefit-item {
        padding: 1rem 0.75rem;
    }

    .benefit-text h3 {
        font-size: 0.95rem;
    }

    .benefit-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 0.75rem;
    }

    .benefit-icon svg {
        width: 24px;
        height: 24px;
    }
}

.stage-step {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.stage-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #1a1a1e;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 2;
}

.stage-body h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stage-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .why-us-container {
        flex-direction: column;
        gap: 4rem;
    }
}

/* Custom Tabs */
.tabs-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(30, 30, 34, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tab-btn .snake-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.tab-btn .snake-rect {
    fill: transparent;
    stroke: var(--color-primary);
    stroke-width: 2px;
    stroke-dasharray: 100, 800;
    /* пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ 100px, пїЅпїЅпїЅпїЅпїЅпїЅ 800px пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ 1 пїЅпїЅпїЅпїЅпїЅпїЅ */
    stroke-dashoffset: 0;
    opacity: 0.55;
    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ */
    transition: all 0.3s ease;
    animation: svg-snake 5s linear infinite;
    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ */
}

.tab-btn.active .snake-rect,
.tab-btn:hover .snake-rect {
    opacity: 1;
    stroke: var(--color-primary);
    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ */
    stroke-width: 3px;
    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ/пїЅпїЅпїЅпїЅпїЅпїЅ */
    filter: drop-shadow(0 0 5px var(--color-primary));
    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅ */
}

@keyframes svg-snake {
    from {
        stroke-dashoffset: 900;
        /* пїЅпїЅпїЅпїЅпїЅ 100 + 800 */
    }

    to {
        stroke-dashoffset: 0;
    }
}

.tab-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #fff;
    background: rgba(59, 138, 133, 0.2);
    /* пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅ */
    border-color: rgba(59, 138, 133, 0.4);
    box-shadow: 0 0 25px rgba(59, 138, 133, 0.3), inset 0 0 10px rgba(59, 138, 133, 0.1);
    /* пїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ */
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Project Detail */
@media (max-width: 992px) {
    .project-title-large {
        font-size: 3rem;
    }

    .project-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .project-title-large {
        font-size: 2.2rem;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Telegram & Floating Contacts
   ========================================================================== */
/* ==========================================================================
   Telegram & Floating Contacts
   ========================================================================== */
.btn-telegram {
    transition: var(--transition-smooth);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* Base style for Telegram button (usually blue) */
.btn-telegram:not(.btn-neon) {
    background: #26A5E4;
    color: white !important;
}

/* Matching style for Header (Neon Turquoise) */
.btn-telegram.btn-neon {
    /* Let .btn-neon handle the background and border */
    color: var(--color-primary);
}

.btn-telegram.btn-neon:hover {
    color: white !important;
}

.floating-telegram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #26A5E4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    animation: tgPulse 2s infinite;
    text-decoration: none;
}

.floating-telegram:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(38, 165, 228, 0.5);
}

.floating-telegram svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes tgPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(38, 165, 228, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(38, 165, 228, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(38, 165, 228, 0);
    }
}

@media (max-width: 768px) {
    .floating-telegram {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .floating-telegram svg {
        width: 24px;
        height: 24px;
    }
}

/* Refining header action layout */
.header-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-includes {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.result-includes span::after {
    content: " ?";
    margin-left: 0.5rem;
    opacity: 0.4;
}

.result-includes span:last-child::after {
    content: "";
}

/* Calculator Footer (Inclusions) */
.calculator-container {
    flex-wrap: wrap;
    /* Allow footer to wrap to full width */
}

.calc-footer {
    width: 100%;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: none;
}

.calc-footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calc-inclusions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.inclusion-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.inclusion-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 138, 133, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    border: 1px solid rgba(59, 138, 133, 0.2);
    box-shadow: 0 0 15px rgba(59, 138, 133, 0.1);
}

.inclusion-icon svg {
    width: 24px;
    height: 24px;
}

.inclusion-text {
    display: flex;
    flex-direction: column;
}

.inclusion-text strong {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 0.2rem;
}

.inclusion-text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 992px) {
    .calc-inclusions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .calc-inclusions-grid {
        grid-template-columns: 1fr;
    }

    .inclusion-item {
        gap: 1rem;
    }
}

/* Refining Calculator UI to match mockup */
.delivery-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 1.5rem;
}

.delivery-icon-mini {
    width: 40px;
    height: 40px;
    background: rgba(59, 138, 133, 0.15);
    border: 1.5px solid var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 0 10px rgba(59, 138, 133, 0.2);
}

.delivery-status-box span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.calc-footer {
    width: 100%;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.calc-inclusions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
}

.inclusion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.inclusion-icon {
    width: 44px;
    height: 44px;
    background: #1a1a1e;
    border: 1.5px solid rgba(59, 138, 133, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.inclusion-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.inclusion-text span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .calc-inclusions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .calc-inclusions-grid {
        grid-template-columns: 1fr;
    }
}

/* Final adjustment for row-based inclusions */
.calc-inclusions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}

.inclusion-item {
    flex: 1 1 180px;
    /* Allow items to grow/shrink but keep a reasonable base width */
    max-width: 250px;
}

@media (max-width: 768px) {
    .calc-inclusions-grid {
        justify-content: center;
    }
}

/* Vertical Inclusions Row (8 items) */
.calc-footer {
    width: 100%;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-inclusions-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
    text-align: center;
}

.inclusion-item-v {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.inclusion-icon-v {
    width: 80px;
    height: 80px;
    background: #1a1a1e;
    border: 2px solid var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 0 20px rgba(59, 138, 133, 0.2);
}



.inclusion-label-v {
    font-size: 0.85rem;
    /* Increased font size */
    font-weight: 600;
    color: var(--color-text-muted);
    line-height: 1.2;
    max-width: 90px;
}

/* Alignment refinement */
.calculator-container {
    align-items: stretch;
    /* Make children same height if possible */
}

.calc-inputs {
    flex: 1.2;
}

.calc-result {
    flex: 0.8;
    height: auto;
    min-height: unset;
    /* Remove min-height to allow it to match inputs */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1200px) {
    .calc-inclusions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .calc-inclusions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem 0.5rem;
    }

    .inclusion-icon-v {
        width: 76px;
        height: 76px;
    }

    .inclusion-label-v {
        font-size: 0.85rem;
        max-width: none;
    }

    .calc-footer {
        border-top: none !important;
        margin-top: 0.5rem !important;
        padding-top: 1rem !important;
    }
}

@media (max-width: 480px) {
    .calc-inclusions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem 0.25rem;
    }

    .inclusion-icon-v {
        width: 65px;
        height: 65px;
        border-radius: 12px;
    }

    .inclusion-label-v {
        font-size: 0.75rem;
    }

    .calc-footer {
        border-top: none !important;
    }
}

.inclusion-icon-v img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}



#calc-measure {
    font-size: 1.25rem !important;
    /* Increased size for emphasis */
    font-weight: 800 !important;
    letter-spacing: 0.05em;
    padding: 1.25rem 2rem !important;
}

/* Glassmorphism Orbs (Option 4) */
.glass-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    /* Deep blur for glass effect */
    z-index: -2;
    /* Behind everything */
    opacity: 0.6;
    pointer-events: none;
    animation: float-orb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 138, 133, 0.4) 0%, transparent 70%);
    top: -50px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 82, 118, 0.3) 0%, transparent 70%);
    /* Darker accent */
    bottom: -150px;
    right: -200px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 138, 133, 0.25) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    animation-duration: 30s;
}

.orb-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(26, 82, 118, 0.25) 0%, transparent 70%);
    top: 60%;
    left: 10%;
    animation-delay: -15s;
    animation-duration: 22s;
}

.orb-5 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 138, 133, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: 40%;
    animation-delay: -7s;
    animation-duration: 28s;
}

@keyframes float-orb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 40px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* ===== Comparison Table ===== */
.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1a1a1e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-param-header,
.comparison-col-header {
    padding: 1.2rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

.comparison-col-header.comparison-ours {
    color: #3B8A85;
    position: relative;
    text-align: center;
}

.comparison-col-header.comparison-classic {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.comparison-badge {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3B8A85;
    background: rgba(59, 138, 133, 0.15);
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 4px;
    display: inline-block;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: rgba(59, 138, 133, 0.05);
}

.comparison-param {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.comparison-param svg {
    color: rgba(59, 138, 133, 0.6);
    flex-shrink: 0;
}

.comparison-value {
    padding: 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
}

.comparison-value.comparison-good {
    color: #5BCF80;
    font-weight: 600;
}

.comparison-value.comparison-bad {
    color: rgba(255, 120, 100, 0.7);
}

/* Mobile: stack comparison */
@media (max-width: 600px) {
    .comparison-header {
        grid-template-columns: 1fr 1fr;
    }

    .comparison-param-header {
        display: none;
    }

    .comparison-row {
        grid-template-columns: 1fr 1fr;
        padding: 0.8rem 0.5rem;
        gap: 6px 12px;
    }

    .comparison-param {
        grid-column: 1 / -1;
        padding: 0 0 0.4rem 0;
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
        justify-content: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .comparison-value {
        padding: 0;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .comparison-value.comparison-good::before {
        content: 'вњ“ ';
        font-weight: 700;
    }

    .comparison-value.comparison-bad::before {
        content: 'вњ— ';
        font-weight: 700;
    }
}




/* ==========================================================================
   Benefit Detail Modal
   ========================================================================== */
.benefit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-modal-overlay.active {
    opacity: 1;
}

.benefit-modal-card {
    background: #1a1a1e;
    border: 1px solid rgba(59, 138, 133, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 138, 133, 0.15);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.benefit-modal-overlay.active .benefit-modal-card {
    transform: scale(1);
}

.benefit-modal-x {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.benefit-modal-x:hover {
    color: var(--color-primary);
}

.benefit-modal-icon {
    margin-bottom: 1rem;
}

.benefit-modal-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--color-primary);
}

#benefit-modal-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.benefit-modal-body {
    text-align: left;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.benefit-modal-body p {
    margin-bottom: 0.8rem;
}

/* Click hint on benefit cards */
.click-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-top: 0.5rem;
}

.benefit-item {
    cursor: pointer;
}

/* ==========================================================================
   Global Mobile Overrides (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Make base font larger on mobile for better readability */
    html {
        font-size: 16px;
    }

    /* Force all grid sections into a single column string on mobile */
    .materials-grid,
    .advantages-grid,
    .pricing-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 1.5rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .benefits-grid-asymmetric {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .material-card,
    .advantage-card,
    .pricing-card,
    .benefit-item,
    .cmp2-wrap,
    .proj-block {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Force parent sections to rely on standard .container padding on mobile */
    #comparison,
    #works,
    .portfolio-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Hide decorative background elements to avoid overflow */
    .glass-orb {
        display: none !important;
    }

    .bg-circle-1,
    .bg-circle-2 {
        display: none !important;
    }

    /* Mobile Nav Links Container - keep buttons but make them fit */
    .nav-container {
        padding: 0 0.5rem;
    }

    .nav-links {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        white-space: nowrap;
    }

    /* Reduce calculator text and button on mobile */
    .result-price {
        font-size: 2.2rem !important;
    }

    #calc-measure {
        font-size: 0.95rem !important;
        padding: 0.85rem 1rem !important;
    }
}

/* Neon Phone Animation */
.phone-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 1.5rem;
    height: 50px;
    margin: 0 !important;
    font-weight: 700;
    border-radius: var(--radius-sm, 8px);
    border: 2px solid var(--color-primary);
    text-decoration: none !important;
    transition: all 0.3s ease;
    animation: neonBorderPulse 2s infinite alternate;
    color: var(--color-text-main) !important;
}

.phone-neon:hover {
    background: var(--color-primary);
    color: white !important;
    box-shadow: 0 0 20px var(--color-primary), 0 0 30px var(--color-primary);
    animation-play-state: paused;
    transform: none !important;
}

.phone-neon:active {
    transform: none !important;
}

@keyframes neonBorderPulse {
    0% {
        box-shadow: 0 0 5px rgba(59, 138, 133, 0.2), inset 0 0 5px rgba(59, 138, 133, 0.1);
        text-shadow: 0 0 5px rgba(59, 138, 133, 0.2);
    }

    100% {
        box-shadow: 0 0 15px rgba(59, 138, 133, 0.6), inset 0 0 10px rgba(59, 138, 133, 0.3);
        text-shadow: 0 0 10px rgba(59, 138, 133, 0.8);
        color: #ffffff !important;
    }
}

/* ==========================================================================
   GLOBAL COMPACT SPACING
   Make distances between all main content sections identical and compact
   ========================================================================== */
section#details,
section#why-us,
section#comparison,
section#pricing,
section#works,
section#reviews,
section#quiz-section,
section#faq,
section#geography,
section#cta-questions,
section#materials,
section#advantages,
section#process {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
}

/* Restore intentionally tight original gaps */
section#why-us {
    padding-bottom: 1rem !important;
}

section#comparison {
    padding-bottom: 1.5rem !important;
}

section#pricing {
    padding-top: 1.5rem !important;
    padding-bottom: 0 !important;
}

.calculator-container {
    margin-bottom: 1.5rem !important;
}

section#works {
    padding-top: 1rem !important;
    padding-bottom: 0 !important;
}

.proj-block:last-of-type {
    margin-bottom: 0 !important;
}

section#quiz-section {
    padding-top: 0 !important;
}

section#details {
    padding-bottom: 1.5rem !important;
}

@media (max-width: 768px) {

    section#details,
    section#why-us,
    section#comparison,
    section#pricing,
    section#works,
    section#reviews,
    section#quiz-section,
    section#faq,
    section#geography,
    section#cta-questions,
    section#materials,
    section#advantages,
    section#process {
        padding-top: 2.2rem !important;
        padding-bottom: 2.2rem !important;
    }

    /* Restore tight gaps on mobile proportionally */
    section#why-us {
        padding-bottom: 0.5rem !important;
    }

    section#comparison {
        padding-bottom: 0.5rem !important;
    }

    section#pricing {
        padding-top: 0.5rem !important;
        padding-bottom: 0 !important;
    }

    .calculator-container {
        margin-bottom: 0.5rem !important;
    }

    section#works {
        padding-top: 0.5rem !important;
        padding-bottom: 0 !important;
    }

    .proj-block:last-of-type {
        margin-bottom: 0 !important;
    }

    section#quiz-section {
        padding-top: 0 !important;
    }

    section#details {
        padding-bottom: 1rem !important;
    }
}