/* ----------------------------------------------------
   DESIGN SYSTEM & CUSTOM STYLES: Септик Татарстан
   ---------------------------------------------------- */

:root {
    /* Color Palette */
    --color-primary: #1b3d33;        /* Muted rich forest green (зеленый не яркий) */
    --color-primary-dark: #0f241e;   /* Extra dark forest green */
    --color-primary-light: #2b5c4d;  /* Muted light forest green */
    
    --color-slate-blue: #1e3a47;     /* "булы" / Deep Slate Blue */
    --color-slate-dark: #12252e;     /* Dark Slate */
    
    --color-accent-orange: #f25c22;  /* Vivid high-energy CTA Orange for commercial rhythm */
    --color-accent-orange-hover: #d84812;
    
    --color-accent-green: #3f7d5c;   /* Positive indicator green */
    --color-bg-light: #f4f7f5;       /* Warm light grey-green background */
    --color-bg-white: #ffffff;
    --color-border: #d4deda;
    --color-text-dark: #1f2b26;
    --color-text-muted: #5e6d66;
    --color-text-light: #ffffff;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Rubik', sans-serif;

    /* Spacing & Layout */
    --container-max-width: 1200px;
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --box-shadow-card: 0 10px 30px rgba(27, 61, 51, 0.06);
    --box-shadow-hover: 0 20px 40px rgba(27, 61, 51, 0.12);
    --box-shadow-cta: 0 8px 24px rgba(242, 92, 34, 0.3);
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--color-accent-green);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 12px;
    background-color: rgba(63, 125, 92, 0.08);
    border-radius: 30px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
}

.text-center { text-align: center; }
.hide-mobile { display: block; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 28px;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 20px 36px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-accent-orange);
    color: var(--color-text-light);
    box-shadow: var(--shadow-cta);
}

.btn-secondary:hover {
    background-color: var(--color-accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(242, 92, 34, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-light);
    transform: translateY(-2px);
}

.btn-glow {
    animation: btnGlow 2s infinite alternate;
}

@keyframes btnGlow {
    0% {
        box-shadow: 0 0 10px rgba(242, 92, 34, 0.4);
    }
    100% {
        box-shadow: 0 0 25px rgba(242, 92, 34, 0.8);
    }
}

.badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.badge-accent {
    background-color: var(--color-accent-orange);
    color: var(--color-text-light);
}

/* ----------------------------------------------------
   1. Header & Navigation
   ---------------------------------------------------- */
.top-bar {
    background-color: var(--color-slate-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item a:hover {
    color: var(--color-accent-orange);
}

.top-bar-item.highlight {
    color: #ffd166;
    font-weight: 600;
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27, 61, 51, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 24px;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--color-accent-orange);
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-slate-blue);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover {
    color: var(--color-accent-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-orange);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
    font-size: 16px;
}

.phone-icon {
    font-size: 18px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ----------------------------------------------------
   2. Hero Section
   ---------------------------------------------------- */
.hero {
    position: relative;
    padding: 100px 0;
    color: var(--color-text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.02);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 46px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 50%;
    line-height: 1;
}

.hero-feature-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
}

.hero-feature-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Hero form card */
.hero-form-wrapper {
    position: relative;
    z-index: 10;
}

.promo-card {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 3px solid var(--color-primary);
}

.promo-card-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: var(--color-accent-orange);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    padding: 8px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.promo-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.promo-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

/* Forms general */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background-color: #f9fbf9;
    color: var(--color-text-dark);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-accent-green);
}

.form-privacy {
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.3;
}

/* ----------------------------------------------------
   3. Stats Section
   ---------------------------------------------------- */
.stats-section {
    background-color: var(--color-slate-blue);
    padding: 30px 0;
    color: var(--color-text-light);
    border-bottom: 4px solid var(--color-accent-orange);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 10px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 900;
    color: var(--color-text-light);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ----------------------------------------------------
   4. Services Section
   ---------------------------------------------------- */
.services-section {
    padding: 90px 0;
    background-color: var(--color-bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.service-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(27, 61, 51, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.service-card.highlighted {
    border: 3px solid var(--color-primary);
}

.service-image-wrapper {
    height: 260px;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image {
    transform: scale(1.06);
}

.service-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-slate-blue);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
}

.accent-badge {
    background-color: var(--color-accent-orange);
}

.service-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-title {
    font-size: 24px;
    margin-bottom: 12px;
}

.service-card-text {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.service-features-list {
    list-style: none;
    margin-bottom: 25px;
}

.service-features-list li {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.service-footer {
    margin-top: auto;
}

/* ----------------------------------------------------
   5. Catalog Section
   ---------------------------------------------------- */
.catalog-section {
    padding: 90px 0;
    background-color: var(--color-bg-light);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(27, 61, 51, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.product-image {
    height: 220px;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 15px;
    border-bottom: 1px solid rgba(27, 61, 51, 0.05);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-brand {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-accent-green);
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.product-name {
    font-size: 20px;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 18px;
    line-height: 1.4;
}

.product-specs {
    border-top: 1px dashed var(--color-border);
    border-bottom: 1px dashed var(--color-border);
    padding: 12px 0;
    margin-bottom: 20px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.spec-row:last-child {
    margin-bottom: 0;
}

.spec-row span {
    color: var(--color-text-muted);
}

.spec-row strong {
    color: var(--color-primary);
}

.product-price-block {
    margin-bottom: 20px;
}

.price-old {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.price-current {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--color-accent-orange);
}

.catalog-bottom {
    margin-top: 50px;
    text-align: center;
    background-color: var(--color-slate-blue);
    color: var(--color-text-light);
    padding: 35px;
    border-radius: var(--border-radius-lg);
}

.catalog-bottom p {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* ----------------------------------------------------
   6. Interactive Quiz Stepper
   ---------------------------------------------------- */
.quiz-section {
    padding: 90px 0;
    background-color: var(--color-bg-white);
}

.quiz-card-wrapper {
    background-color: var(--color-slate-blue);
    border-radius: 24px;
    padding: 50px;
    color: var(--color-text-light);
    box-shadow: 0 20px 50px rgba(18, 37, 46, 0.15);
    position: relative;
    overflow: hidden;
}

.quiz-card-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--color-accent-orange);
}

.quiz-promo-header {
    margin-bottom: 40px;
}

.quiz-promo-header h2 {
    color: var(--color-text-light);
    font-size: 34px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.quiz-promo-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 800px;
}

.quiz-progress-wrapper {
    margin-bottom: 30px;
}

.quiz-progress-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.quiz-progress-line {
    height: 100%;
    background-color: var(--color-accent-orange);
    transition: width var(--transition-normal);
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.quiz-step.active {
    display: block;
}

.quiz-step-title {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.quiz-option-card {
    position: relative;
    cursor: pointer;
}

.quiz-option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz-option-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
}

.quiz-option-card:hover .quiz-option-content {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.quiz-option-card input:checked + .quiz-option-content {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-orange);
    box-shadow: 0 0 15px rgba(242, 92, 34, 0.25);
}

.option-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.option-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
}

.option-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.quiz-lead-form {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-gift-card {
    background-color: rgba(242, 92, 34, 0.15);
    border: 1px dashed var(--color-accent-orange);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.gift-icon {
    font-size: 32px;
}

.quiz-gift-card strong {
    display: block;
    color: #ffd166;
    margin-bottom: 3px;
}

.quiz-gift-card span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-2col .form-label {
    color: var(--color-text-light);
}

.messenger-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.messenger-opt {
    flex-grow: 1;
    position: relative;
    cursor: pointer;
}

.messenger-opt input {
    position: absolute;
    opacity: 0;
}

.messenger-opt span {
    display: block;
    padding: 12px 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    transition: var(--transition-fast);
}

.messenger-opt input:checked + span {
    background-color: var(--color-accent-orange);
    border-color: var(--color-accent-orange);
    box-shadow: var(--shadow-cta);
}

.quiz-navigation {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* ----------------------------------------------------
   7. Portfolio Section (Gallery)
   ---------------------------------------------------- */
.portfolio-section {
    padding: 90px 0;
    background-color: var(--color-bg-light);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-tab-btn {
    background-color: var(--color-bg-white);
    border: 2px solid var(--color-border);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.portfolio-tab-btn:hover {
    border-color: var(--color-primary);
}

.portfolio-tab-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-card-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--box-shadow-card);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.portfolio-card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-img-contain {
    object-fit: contain !important;
    background-color: var(--color-bg-light);
}

.portfolio-card-item:hover .portfolio-img-contain {
    transform: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(27, 61, 51, 0.9), rgba(27, 61, 51, 0.2));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: opacity var(--transition-normal);
}

.portfolio-card-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: var(--color-text-light);
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.portfolio-info h4 {
    color: var(--color-text-light);
    font-size: 16px;
    margin-bottom: 4px;
}

.portfolio-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* ----------------------------------------------------
   8. Timeline Section (How it works)
   ---------------------------------------------------- */
.how-it-works-section {
    padding: 90px 0;
    background-color: var(--color-bg-white);
}

.steps-timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    width: 4px;
    height: 100%;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 17px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--color-bg-white);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background-color: var(--color-bg-light);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(27, 61, 51, 0.05);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 15px;
    color: var(--color-text-muted);
}

/* ----------------------------------------------------
   9. Benefits Section
   ---------------------------------------------------- */
.benefits-section {
    padding: 90px 0;
    background-color: var(--color-bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.benefit-card {
    background-color: var(--color-bg-white);
    padding: 35px 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-card);
    transition: all var(--transition-normal);
    border-bottom: 4px solid var(--color-primary);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-bottom-color: var(--color-accent-orange);
}

.benefit-icon-box {
    font-size: 40px;
    margin-bottom: 20px;
    line-height: 1;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ----------------------------------------------------
   10. Call-to-action Block (Engineering Visit)
   ---------------------------------------------------- */
.lead-capture-section {
    padding: 100px 0;
    background-color: var(--color-slate-blue);
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.lead-capture-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.lead-capture-content h2 {
    color: var(--color-text-light);
    font-size: 40px;
    margin-bottom: 20px;
}

.lead-capture-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.quick-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quick-contact-item .icon {
    font-size: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-contact-item div {
    display: flex;
    flex-direction: column;
}

.quick-contact-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.quick-contact-item a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
}

.quick-contact-item .link-messenger {
    color: #ffd166;
}

.quick-contact-item .link-messenger:hover {
    text-decoration: underline;
}

.lead-capture-form-box {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.lead-capture-form-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.lead-capture-form-box p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.privacy-checkbox-group {
    margin-top: 15px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: left;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--color-primary);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--color-accent-orange);
}

/* ----------------------------------------------------
   11. FAQ Accordion
   ---------------------------------------------------- */
.faq-section {
    padding: 90px 0;
    background-color: var(--color-bg-white);
}

.faq-accordion {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
    width: 100%;
    padding: 24px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.faq-trigger:hover {
    color: var(--color-accent-orange);
}

.faq-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
}

.faq-content p {
    padding: 0 10px 24px;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ----------------------------------------------------
   12. Contacts & Location
   ---------------------------------------------------- */
.contacts-section {
    padding: 90px 0;
    background-color: var(--color-bg-light);
}

.contacts-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: stretch;
}

.contacts-info-card {
    background-color: var(--color-bg-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-card);
    border: 1px solid rgba(27, 61, 51, 0.05);
    display: flex;
    flex-direction: column;
}

.contacts-info-card h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contacts-lead-text {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.contact-details-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-icon {
    font-size: 20px;
    background-color: rgba(63, 125, 92, 0.1);
    color: var(--color-accent-green);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item div {
    display: flex;
    flex-direction: column;
}

.contact-detail-item strong {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--color-primary);
}

.contact-detail-item span, .contact-detail-item a {
    font-size: 15px;
    color: var(--color-text-muted);
}

.contact-detail-item a:hover {
    color: var(--color-accent-orange);
}

.contacts-cta {
    margin-top: auto;
}

/* Map wrapper styling */
.map-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-card);
    min-height: 400px;
}

.map-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e5e9e7;
    background-image: radial-gradient(circle, #cbd5e1 10%, transparent 10.5%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-marker-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-accent-orange);
    border-radius: 50%;
    z-index: 10;
}

.map-marker-pulse::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-accent-orange);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.map-card-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background-color: var(--color-bg-white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.map-card-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.map-card-info p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

/* ----------------------------------------------------
   13. Footer
   ---------------------------------------------------- */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 0.9fr);
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 50px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.footer-contacts-fast {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contacts-fast a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    color: var(--color-text-light);
}

.footer-contacts-fast a:hover {
    color: var(--color-accent-orange);
}

.footer-nav-col h4 {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-nav-col a {
    display: block;
    font-size: 14px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav-col a:hover {
    color: var(--color-accent-orange);
    padding-left: 5px;
}

.footer-company-info {
    font-size: 13px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    gap: 15px;
}

/* ----------------------------------------------------
   14. Cookie Banner (Mandatory)
   ---------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 37, 46, 0.95);
    backdrop-filter: blur(8px);
    color: var(--color-text-light);
    padding: 16px 20px;
    z-index: 1000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--color-accent-orange);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 13px;
    line-height: 1.4;
    max-width: 900px;
    flex-grow: 1;
}

.cookie-link {
    color: var(--color-accent-orange);
    text-decoration: underline;
}

.cookie-link:hover {
    color: #ffd166;
}

/* ----------------------------------------------------
   15. Modals & Lightbox
   ---------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 36, 30, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-top: 5px solid var(--color-accent-orange);
    animation: scaleIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.modal-title {
    font-size: 26px;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(63, 125, 92, 0.1);
    color: var(--color-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 37, 46, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: var(--color-text-light);
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--color-text-light);
    font-size: 45px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-accent-orange);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    border: none;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background-color: var(--color-accent-orange);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ----------------------------------------------------
   16. Responsive Media Queries
   ---------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-form-wrapper {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }
    .hide-mobile {
        display: none;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        max-height: calc(100vh - 70px);
        background-color: var(--color-bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(-100%);
        visibility: hidden;
        opacity: 0;
        transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 99;
        overflow-y: auto;
    }
    
    .nav.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .burger-menu {
        display: flex;
    }
    
    /* Toggle burger classes */
    .burger-menu.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 32px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

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

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-options-grid {
        grid-template-columns: 1fr;
    }

    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lead-capture-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-container {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-badge {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 4px 10px;
    }

    .service-card.highlighted .service-badge {
        left: auto;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-card-wrapper {
        padding: 30px 15px;
    }
    
    .promo-card {
        padding: 48px 15px 24px;
    }

    .header-actions .btn-callback {
        display: none;
    }

    .steps-timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
    .timeline-badge {
        left: 0;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .map-card-info {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 15px;
    }

    .hero-title {
        font-size: 26px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 22px;
    }
    .section-title {
        font-size: 20px;
    }
    .btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .container {
        padding: 0 10px;
    }
    .header-container {
        padding: 0 10px;
    }
    .logo {
        font-size: 20px;
    }
    .btn-sm {
        padding: 8px 12px;
        font-size: 11px;
    }
}