/* =========================================
   FONTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Epilogue:wght@400;500;600&display=swap');

/* =========================================
   0. CSS VARIABLES
   ========================================= */
:root {
    /* Светлая тема — Warm Stone */
    --bg-body: oklch(94.5% 0.012 68);       /* deeper stone — feels intentional */
    --bg-section: oklch(91.5% 0.014 68);    /* subtle section bands, not jarring */
    --bg-card: oklch(99% 0.009 68);         /* warm white — higher chroma than body, not stark */
    --bg-card-alt: oklch(97% 0.011 68);     /* warm off-white */
    --text-main: oklch(15% 0.008 68);
    --text-muted: oklch(44% 0.007 68);
    --border-light: rgba(120, 80, 30, 0.08);
    --border-med: rgba(120, 80, 30, 0.20);
    --shadow-light: rgba(100, 60, 20, 0.07);
    --shadow-med: rgba(100, 60, 20, 0.12);
    --shadow-hover: rgba(100, 60, 20, 0.20);
    --btn-bg: oklch(15% 0.008 68);
    --btn-text: oklch(99% 0.009 68);
    --header-bg: oklch(94.5% 0.012 68 / 0.88);
    --header-border: rgba(120, 80, 30, 0.13);
    --icon-bg: oklch(91.5% 0.014 68);
    --accent: #FF5500;
}

/* Темная тема (OLED Black + Orange Accent) */
body.dark-mode {
    --bg-body: #0d0d0d;
    --bg-section: transparent;
    --bg-card: #151515;
    --bg-card-alt: #1a1a1a;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --border-light: #252525;
    --border-med: #383838;
    --shadow-light: rgba(0, 0, 0, 0.5);
    --shadow-med: rgba(0, 0, 0, 0.7);
    --shadow-hover: rgba(0, 0, 0, 0.9);
    --btn-bg: #FF5500;
    --btn-text: #ffffff;
    --header-bg: rgba(13, 13, 13, 0.88);
    --header-border: rgba(255, 255, 255, 0.08);
    --icon-bg: #1f1f1f;
    --accent: #FF5500;
}

/* =========================================
   1. BASE RESET & GLOBALS
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-kerning: normal;
    font-variant-ligatures: common-ligatures;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

.container { width: 92%; max-width: 1600px; margin: 0 auto; }

.section-header, .hero-container, .project-description { max-width: 900px; margin: 0 auto; }

#particles-js { position: fixed; width: 100vw; height: 100vh; top: 0; left: 0; z-index: -1; pointer-events: none; }

/* Скрываем гамбургер и мобильное меню на десктопе */
@media (min-width: 769px) {
    .hamburger, .mobile-menu { display: none !important; }
}

/* =========================================
   2. SCROLLBAR
   ========================================= */

/* Firefox */
html {
    scroll-padding-top: 90px;
    scrollbar-width: thin;
    scrollbar-color: oklch(78% 0.018 68) oklch(91.5% 0.014 68);
}
html:has(body.dark-mode) {
    scrollbar-color: #444444 #0a0a0a;
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: oklch(91.5% 0.014 68); }
::-webkit-scrollbar-thumb { background: oklch(78% 0.018 68); border-radius: 5px; border: 2px solid oklch(91.5% 0.014 68); }
::-webkit-scrollbar-thumb:hover { background: oklch(68% 0.020 68); }

/* Темная тема */
body.dark-mode ::-webkit-scrollbar-track { background: #0a0a0a; }
body.dark-mode ::-webkit-scrollbar-thumb { background: #444444; border: 2px solid #0a0a0a; border-radius: 6px; }
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #666666; }

/* =========================================
   3. PARTICLES & GRAIN TEXTURE
   ========================================= */

/* Light mode: hide particles, show grain */
body:not(.dark-mode) #particles-js canvas {
    display: none;
}
body:not(.dark-mode) #particles-js::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
}

body.dark-mode #particles-js canvas {
    filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(1.2) contrast(1.1);
    opacity: 0.5;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.header {
    width: 96%; max-width: 1200px; margin: 20px auto 0; position: sticky; top: 20px; z-index: 1000;
    background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 100px; border: 1px solid var(--header-border); box-shadow: 0 10px 30px var(--shadow-med);
    display: flex; justify-content: center; transition: background 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart);
}

.header-inner {
    width: 100%; height: 70px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; position: relative;
}

.logo { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; color: var(--text-main); letter-spacing: -1px; text-decoration: none; transition: color 0.3s; }

.nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 35px; }
.nav a, .nav-link {
    text-decoration: none; color: var(--text-main); font-size: 15px; font-weight: 500;
    transition: color 0.25s ease, opacity 0.25s ease;
    position: relative;
}
.nav a::before, .nav-link::before {
    content: ''; position: absolute; bottom: -3px; left: 0;
    width: 100%; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform 0.3s var(--ease-out-quint);
}
.nav a:hover::before, .nav-link:hover::before { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav-link:hover { color: var(--text-main); opacity: 0.75; }
.nav-link--page { display: inline-flex; align-items: center; gap: 3px; }
.nav-link--page::before { display: none; }
.nav-link--page::after { content: '↗'; font-size: 11px; color: #FF5500; opacity: 0.7; line-height: 1; transform: translateY(-1px); display: inline-block; transition: opacity 0.3s, transform 0.3s; }
.nav-link--page:hover::after { opacity: 1; transform: translateY(-2px) translateX(1px); }

.btn-header {
    background-color: var(--btn-bg); color: var(--btn-text); text-decoration: none;
    padding: 10px 24px; border-radius: 100px; font-size: 14px; font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
}
.btn-header:hover { background-color: #FF3300; color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 85, 0, 0.3); }
.btn-header:active { transform: scale(0.96); transition-duration: 0.08s; }

.lang-switch { display: flex; align-items: center; gap: 6px; margin-right: 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.lang-switch a { text-decoration: none; color: var(--text-muted); transition: color 0.3s; }
.lang-switch a:hover { color: var(--text-main); }
.lang-switch a.active { color: var(--text-main); pointer-events: none; }
.lang-switch span { color: var(--border-med); font-weight: 400; }

@media (max-width: 768px) {
    .logo-group { gap: 10px !important; }
}

/* =========================================
   5. THEME TOGGLE
   ========================================= */
.theme-toggle {
    background: transparent; border: none; color: var(--text-main); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 12px; min-width: 44px; min-height: 44px; margin: -7px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover { transform: scale(1.15) rotate(10deg); }

body:not(.dark-mode) .moon-icon { display: none; }
body.dark-mode .sun-icon { display: none; }

/* =========================================
   6. HERO
   ========================================= */
.hero { position: relative; padding: 100px 0 60px; text-align: center; overflow: hidden; }

/* Hero depth: warm amber glow in light mode */
body:not(.dark-mode) .hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(255, 85, 0, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Hero depth: radial orange glow */
body.dark-mode .hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(255, 85, 0, 0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* Hero depth: grain texture */
body.dark-mode .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 { font-size: clamp(44px, 4.5vw, 68px); font-weight: 800; color: var(--text-main); letter-spacing: -2px; line-height: 1.08; margin-bottom: 24px; }
.hero p { font-size: 20px; color: var(--text-muted); max-width: 52ch; margin: 0 auto 40px; line-height: 1.6; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 40px; position: relative; z-index: 2; }
.btn-primary { display: inline-block; padding: 18px 40px; background-color: var(--btn-bg); color: var(--btn-text); text-decoration: none; border-radius: 100px; font-size: 18px; font-weight: 600; transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart), background-color 0.2s ease; box-shadow: 0 10px 20px var(--shadow-light); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px var(--shadow-med); }
.btn-primary:active { transform: translateY(-1px) scale(0.97); box-shadow: 0 5px 12px var(--shadow-light); transition-duration: 0.1s; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 16px 36px; background: transparent; color: var(--text-main); font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 100px; border: 1px solid var(--border-med); transition: border-color 0.25s var(--ease-out-quart), background 0.25s var(--ease-out-quart), transform 0.25s var(--ease-out-quart); }
.btn-secondary:hover { border-color: var(--text-main); background: var(--border-light); transform: translateY(-2px); }
.btn-secondary:active { transform: scale(0.97); transition-duration: 0.1s; }

/* =========================================
   7. SERVICES SECTION (BENTO GRID)
   ========================================= */
.oferta-section { padding: 50px 0; background: var(--bg-section); position: relative; z-index: 2; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 15px; color: var(--text-main); }
.section-header p { font-size: 18px; color: var(--text-muted); max-width: 60ch; margin: 0 auto; line-height: 1.65; }

.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; max-width: 1400px; margin: 0 auto; }
.bento-card {
    background: var(--bg-card); border-radius: 24px; padding: 35px;
    border: 1px solid var(--border-light); box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart);
    min-height: 260px; display: flex; flex-direction: column; justify-content: flex-start;
    align-items: center; text-align: center;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px var(--shadow-hover); border-color: var(--border-med); }
.bento-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: var(--icon-bg); width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.bento-icon-img { width: 28px; height: 28px; filter: brightness(0) saturate(100%) invert(40%) sepia(98%) saturate(700%) hue-rotate(1deg) brightness(120%); }
.bento-content { display: flex; flex-direction: column; align-items: center; width: 100%; }
.bento-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.bento-content p { font-size: 16px; color: var(--text-muted); line-height: 1.65; }

/* =========================================
   8. PRICING — SINGLE CARD (MAIN PAGE)
   ========================================= */
.pricing-section { padding: 50px 0; position: relative; z-index: 2; }

.pricing-card {
    width: 100%; max-width: 1000px; margin: 0 auto;
    background: var(--bg-card); border-radius: 24px; border: 1px solid var(--border-light);
    box-shadow: 0 20px 40px var(--shadow-light);
    display: flex; overflow: hidden; transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart);
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px var(--shadow-hover); border-color: var(--border-med); }

.pricing-left { flex: 1; padding: 60px; background: var(--bg-card-alt); border-right: 1px solid var(--border-light); display: flex; flex-direction: column; justify-content: center; transition: background 0.4s ease; }
.pricing-left h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 20px; font-weight: 700; }
.price { font-size: 64px; font-weight: 800; color: var(--text-main); line-height: 1; margin-bottom: 20px; letter-spacing: -2px; transition: color 0.4s ease; font-variant-numeric: tabular-nums; }
.price span { font-size: 24px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; vertical-align: middle; }
.price small { font-size: 20px; font-weight: 600; letter-spacing: 0; vertical-align: middle; margin-right: 2px; opacity: 0.65; font-variant-numeric: normal; }
.price--custom { font-size: 38px; letter-spacing: -1px; line-height: 1.15; font-variant-numeric: normal; }
.price--custom span { font-size: 15px; font-weight: 500; display: block; margin-top: 4px; color: var(--text-muted); letter-spacing: 0; }
.pricing-left p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 35px; }
.mt-4 { margin-top: auto; align-self: flex-start; }

.pricing-right { flex: 1.2; padding: 60px; background: var(--bg-card); transition: background 0.4s ease; }
.pricing-right h5 { font-size: 24px; font-weight: 700; margin-bottom: 30px; color: var(--text-main); letter-spacing: -0.5px; line-height: 1.2; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { font-size: 16px; color: var(--text-muted); margin-bottom: 18px; display: flex; align-items: center; opacity: 0; transform: translateY(15px) scale(0.98); transition: opacity 0.5s ease, transform 0.5s ease; }
.feature-list .check { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--text-main); color: var(--bg-body); border-radius: 50%; font-size: 12px; margin-right: 15px; flex-shrink: 0; transition: background-color 0.4s ease, color 0.4s ease; }

/* Микро-анимация списка */
.pricing-card.is-visible .feature-list li { opacity: 1; transform: translateY(0) scale(1); }
.pricing-card.is-visible .feature-list li:nth-child(1) { transition-delay: 0.1s; }
.pricing-card.is-visible .feature-list li:nth-child(2) { transition-delay: 0.2s; }
.pricing-card.is-visible .feature-list li:nth-child(3) { transition-delay: 0.3s; }
.pricing-card.is-visible .feature-list li:nth-child(4) { transition-delay: 0.4s; }
.pricing-card.is-visible .feature-list li:nth-child(5) { transition-delay: 0.5s; }
.pricing-card.is-visible .feature-list li:nth-child(6) { transition-delay: 0.6s; }

/* =========================================
   9. PRICING GRID (OFERTA PAGE) + MAINTENANCE BOX
   ========================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 2.5vw, 40px);
    width: 100%;
    max-width: 920px;
    margin: 40px auto 0;
    align-items: stretch;
}

.price-box {
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: clamp(30px, 3vw, 45px) clamp(25px, 2.5vw, 40px);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.price-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.03);
}

.price-header {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.price-header > span {
    display: inline-block;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px; border-radius: 100px;
    margin-bottom: 4px;
}
.price-header h4 {
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 700;
    margin: 8px 0 12px;
    color: #fff;
}
.price-header .price {
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.price-header .price span {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}
.price-header .time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
}

.price-body { flex-grow: 1; display: flex; flex-direction: column; }

.price-includes { font-size: 14px; font-weight: 600; margin-bottom: 15px; color: #fff; }

.pricing-features-list { list-style: none; padding: 0; margin: 0 0 25px 0; }
.pricing-features-list li {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.75) !important;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.pricing-features-list .check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; min-width: 20px; min-height: 20px;
    background: rgba(255, 85, 0, 0.15); border-radius: 50%;
    color: #FF5500 !important; font-size: 11px; font-weight: 700;
    flex-shrink: 0; margin-top: 1px;
}
.pricing-features-list .highlight-feature { color: #fff !important; font-weight: 600; }

.addons { margin-top: auto; padding-top: 20px; border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.addons-title { font-size: 12px; color: rgba(255, 255, 255, 0.5); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.pricing-addons-list { list-style: none; padding: 0; margin: 0; }
.pricing-addons-list li { font-size: 14px; color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pricing-addons-list .plus { color: rgba(255, 255, 255, 0.3); font-size: 16px; }

.price-footer { margin-top: 30px; }
.price-footer a { width: 100%; display: block; text-align: center; padding: 14px 0; font-size: 15px; }

/* Opieka nad stroną */
.maintenance-box {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 0;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 45px 50px;
    display: flex;
    gap: 50px;
    align-items: center;
    backdrop-filter: blur(12px);
    transition: border-color 0.4s ease;
}
.maintenance-box:hover { border-color: rgba(255, 255, 255, 0.2); }

.m-left { flex: 1.2; }
.m-left h3 { font-size: clamp(24px, 2.5vw, 30px); font-weight: 700; color: #fff; margin-bottom: 12px; }
.m-left .price { font-size: clamp(28px, 3vw, 36px); font-weight: 800; color: #fff; margin-bottom: 20px; }
.m-left .price span { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.m-left p { color: rgba(255, 255, 255, 0.7); font-size: 16px; line-height: 1.6; margin: 0; }
.m-right { flex: 1; }

/* =========================================
   10. PROCESS SECTION + SVG ARROWS
   ========================================= */
.proces-section {
    padding: 50px 0;
    background: var(--bg-section);
    position: relative;
    z-index: 2;
    transition: background 0.4s ease;
}
.process-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px;
    width: 100%; max-width: 1400px; margin: 0 auto; position: relative;
}
.process-wrapper { position: relative; }
.process-card {
    background: var(--bg-card); padding: 45px 40px; border-radius: 24px;
    border: 1px solid var(--border-light); box-shadow: 0 10px 30px var(--shadow-light);
    position: relative; z-index: 2; transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart);
}
.process-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px var(--shadow-hover); border-color: var(--border-med); }

.step-number {
    position: absolute; top: 25px; right: 30px; font-size: 80px; font-weight: 800;
    color: var(--border-light); line-height: 1; letter-spacing: -4px; z-index: 1; pointer-events: none; transition: color 0.4s ease;
}
.process-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 15px; color: var(--text-main); letter-spacing: -0.4px; line-height: 1.2; position: relative; z-index: 2; }
.process-card p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin: 0; position: relative; z-index: 2; }

/* Порядок для змейки */
.step-1 { order: 1; } .step-2 { order: 2; } .step-4 { order: 3; } .step-3 { order: 4; }

/* SVG стрелки */
.svg-arrow { position: absolute; z-index: 0; }
.svg-bg, .svg-fill { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: color 0.4s ease; }
.svg-bg { color: var(--border-med); opacity: 0.5; }
.svg-fill { color: var(--text-main); }

.arrow-right { top: 50%; right: -60px; width: 60px; height: 22px; transform: translateY(-50%); }
.arrow-down  { bottom: -40px; left: 50%; width: 20px; height: 40px; transform: translateX(-50%); }
.arrow-left  { top: 50%; left: -60px; width: 60px; height: 22px; transform: translateY(-50%); }

.arrow-right .svg-fill { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }
.arrow-down .svg-fill  { clip-path: inset(0 0 100% 0); -webkit-clip-path: inset(0 0 100% 0); }
.arrow-left .svg-fill  { clip-path: inset(0 0 0 100%); -webkit-clip-path: inset(0 0 0 100%); }

@keyframes drawVector { to { clip-path: inset(0 0 0 0); -webkit-clip-path: inset(0 0 0 0); } }

.step-1.is-visible .arrow-right .svg-fill { animation: drawVector 0.6s ease-out 0.5s forwards; }
.step-2.is-visible .arrow-down .svg-fill  { animation: drawVector 0.6s ease-out 1.1s forwards; }
.step-3.is-visible .arrow-left .svg-fill  { animation: drawVector 0.6s ease-out 1.7s forwards; }

/* =========================================
   11. TESTIMONIALS
   ========================================= */
.testimonials-section { padding: 50px 0; position: relative; z-index: 2; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-med);
    box-shadow: 0 20px 40px var(--shadow-med);
}

.stars { display: flex; gap: 4px; margin-bottom: 20px; color: #eab308; }
.stars svg { width: 20px; height: 20px; }

.quote { font-size: 16px; line-height: 1.7; color: var(--text-muted); font-style: italic; margin-bottom: 30px; flex-grow: 1; }

.author-info { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border-light); padding-top: 20px; }
.author-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--icon-bg); color: var(--text-main);
    display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
    border: 1px solid var(--border-light);
}
.author-details h4 { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 2px 0; }
.author-details span { font-size: 13px; color: var(--text-muted); }

/* =========================================
   12. PORTFOLIO GRID + HOVER OVERLAYS
   ========================================= */
.portfolio-section { position: relative; padding: 50px 0; }
.portfolio-section h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: var(--text-main); letter-spacing: -1px; line-height: 1.1; margin-bottom: 50px; text-align: center; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; max-width: 100%; margin: 0 auto; }

.card {
    background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border-light);
    box-shadow: 0 4px 10px var(--shadow-light), 0 15px 25px var(--shadow-light);
    transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart); overflow: hidden;
}
@media (hover: hover) {
    .card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px var(--shadow-med), 0 25px 35px var(--shadow-hover); border-color: var(--border-med); }
}

.thumb {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
    background-color: var(--icon-bg);
    border-bottom: 1px solid var(--border-light);
}
.thumb img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform 0.6s ease; display: block;
}
.card:hover .thumb img { transform: scale(1.05); }

.card-preview { padding: 25px 30px; }
.card-preview h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--text-main); letter-spacing: -0.3px; }
.card-preview p { color: var(--text-muted); font-size: 15px; font-weight: 500; }

/* CSS pseudo-element overlay (hover button) */
.thumb::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0); z-index: 1; transition: background 0.4s ease; pointer-events: none; }
.thumb::after {
    content: 'Zobacz projekt'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
    background: rgba(17, 17, 17, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; padding: 14px 30px; border-radius: 100px; font-size: 15px; font-weight: 600; opacity: 0; z-index: 2; transition: opacity 0.4s ease, transform 0.4s var(--ease-out-quart); pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
html[lang="en"] .thumb::after { content: 'View project'; }
html[lang="de"] .thumb::after { content: 'Projekt ansehen'; }
html[lang="ru"] .thumb::after { content: 'Смотреть проект'; }
.card:hover .thumb::before { background: rgba(0, 0, 0, 0.22); }
.card:hover .thumb::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* HTML div overlay (newer alternative) */
.card-thumb-overlay {
    position: absolute; inset: 0;
    background: rgba(10, 10, 10, 0.72);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    opacity: 0; transition: opacity 0.3s ease;
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    pointer-events: none; border-radius: inherit;
}
.thumb:hover .card-thumb-overlay { opacity: 1; }
.overlay-label { color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.overlay-arrow { color: #FF5500; font-size: 1.6rem; line-height: 1; transform: translateX(-4px); transition: transform 0.25s ease; }
.thumb:hover .overlay-arrow { transform: translateX(0); }

/* =========================================
   13. PORTFOLIO MODALS
   ========================================= */
body.modal-open { overflow: hidden; }
body.modal-open::before { content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-body); z-index: 1998; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
body.modal-open.backdrop-visible::before { opacity: 1; pointer-events: auto; }
body.modal-open #particles-js { z-index: 1999; }

.card-details {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: transparent;
    z-index: 2000; overflow-y: auto; opacity: 0; visibility: hidden;
    /* transition: all — анимирует ВСЕ свойства включая overflow/scroll,
       любое изменение (ховер, курсор) перезапускает её и блокирует скролл на ~0.6s.
       Переходим только на нужные свойства: */
    transition: opacity 0.6s ease, visibility 0.6s ease;
    cursor: pointer;
    will-change: opacity;
}
.card.expanded .card-details { opacity: 1; visibility: visible; }
.card.closing .card-details { pointer-events: none; }

.card.expanded, .card.closing {
    overflow: visible !important; transform: none !important; transition: none !important;
    animation: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    background: transparent !important; border: none !important; box-shadow: none !important;
}

.details-content {
    width: 100%; max-width: clamp(1200px, 85vw, 2560px); margin: 0 auto; padding: 100px 0 150px;
    transform: translateY(40px) scale(0.98); transition: transform 0.6s ease;
    cursor: auto;
}
.card.expanded .details-content { transform: translateY(0) scale(1); }
.card.expanded .card-preview .thumb { display: none; }

.btn-visit {
    display: inline-block; padding: 16px 36px; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--text-main); text-decoration: none; border-radius: 100px; font-weight: 700; font-size: 16px; border: 1px solid var(--border-med); transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart), border-color 0.3s ease; box-shadow: 0 5px 20px var(--shadow-light);
}
.btn-visit:hover { background-color: var(--text-main); color: var(--bg-body); transform: translateY(-3px); box-shadow: 0 10px 30px var(--shadow-med); border-color: transparent; }

.project-description { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 800px; margin: 0 auto 40px; }
.project-description h4 { font-size: 32px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; line-height: 1.1; margin-bottom: 24px; text-transform: uppercase; }
.project-description p { font-size: 18px; line-height: 1.72; color: var(--text-muted); margin-bottom: 40px; max-width: 65ch; }
.btn-visit-container { margin-bottom: 20px; position: relative; z-index: 3; }

.full-mockup-container {
    width: 100%; margin-top: 20px; border-radius: 12px; overflow: clip;
    background: #000; border: 1px solid rgba(255, 255, 255, 0.1);
}
.full-page-screenshot { width: 100%; height: auto; display: block; margin: 0; padding: 0; object-fit: contain; }

.btn-visit-container, .full-mockup-container { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.card.expanded .details-content h4 { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.card.expanded .details-content p { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.card.expanded .btn-visit-container { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.card.expanded .full-mockup-container { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* Кнопка закрытия */
.btn-close { position: fixed; top: 40px; right: 40px; background: var(--header-bg); backdrop-filter: blur(8px); color: var(--text-main); border: 1px solid var(--border-light); width: 64px; height: 64px; border-radius: 50%; font-size: 32px; font-weight: 300; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2100; box-shadow: 0 4px 15px var(--shadow-light); opacity: 0; transform: scale(0.5); pointer-events: none; transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.btn-close.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.btn-close:hover { background: #ff3b30 !important; color: #fff !important; border-color: transparent !important; transform: rotate(90deg) scale(1.05) !important; box-shadow: 0 15px 35px rgba(255, 59, 48, 0.3) !important; }
.btn-close.is-sticky { top: 25px; background: var(--bg-card); }

/* Стрелки навигации по проектам */
.project-nav-arrows {
    position: fixed; top: 50%; left: 0; width: 100%; transform: translateY(-50%);
    display: flex; justify-content: space-between; padding: 0 40px;
    pointer-events: none; z-index: 2100;
    visibility: hidden; opacity: 0; transition: visibility 0.4s, opacity 0.4s ease;
}
.project-nav-arrows.visible { visibility: visible; opacity: 1; pointer-events: auto; }
.nav-arrow {
    width: 64px; height: 64px; border-radius: 50%; background: var(--header-bg);
    border: 1px solid var(--border-light); color: var(--text-main); display: flex;
    align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-med); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); transform: scale(0.5);
    transition: transform 0.4s var(--ease-out-quart), background-color 0.3s ease, color 0.3s ease, box-shadow 0.4s var(--ease-out-quart);
}
.project-nav-arrows.visible .nav-arrow { transform: scale(1); }
.project-nav-arrows.visible .nav-arrow:hover { background: var(--text-main); color: var(--bg-body); transform: scale(1.1); box-shadow: 0 15px 40px var(--shadow-hover); }

/* =========================================
   14. CONTACT SECTION + SOCIAL PILLS
   ========================================= */
.contact-section { padding: 50px 0; background: var(--bg-section); position: relative; z-index: 2; transition: background 0.4s ease; }
.contact-wrapper {
    display: flex; gap: 60px; background: var(--bg-card); border-radius: 30px; padding: 60px;
    box-shadow: 0 20px 50px var(--shadow-med); border: 1px solid var(--border-light);
    width: 100%; max-width: 1400px; margin: 0 auto;
}
.contact-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.contact-info h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; color: var(--text-main); line-height: 1.1; }
.contact-info p { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; max-width: 42ch; line-height: 1.65; }
.direct-link { display: block; font-size: 24px; font-weight: 700; color: var(--text-main); text-decoration: none; margin-bottom: 10px; letter-spacing: -0.4px; transition: opacity 0.3s ease; }
.direct-link:hover { opacity: 0.6; }

.contact-form-container { flex: 1; background: var(--bg-card-alt); padding: 40px; border-radius: 20px; border: 1px solid var(--border-light); transition: background 0.4s ease; }
.glass-form { display: flex; flex-direction: column; gap: 24px; }
.input-group { position: relative; }
.input-group input, .input-group textarea { width: 100%; padding: 20px 20px 10px; font-size: 16px; border: none; border-bottom: 2px solid var(--border-med); background: transparent; color: var(--text-main); outline: none; transition: border-color 0.3s ease; font-family: inherit; resize: none; }
.input-group input:focus, .input-group textarea:focus { border-bottom-color: var(--text-main); }
.input-group label { position: absolute; left: 20px; top: 18px; color: var(--text-muted); font-size: 16px; pointer-events: none; transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease, font-weight 0.3s ease, letter-spacing 0.3s ease; }
.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label { top: 4px; font-size: 11px; font-weight: 600; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.5px; }

.btn-submit { background: var(--btn-bg); color: var(--btn-text); border: none; padding: 18px 30px; font-size: 16px; font-weight: 600; border-radius: 100px; cursor: pointer; transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s var(--ease-out-quart), background-color 0.3s ease; margin-top: 10px; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 20px var(--shadow-med); }
.form-note { font-size: 13px; color: var(--text-muted); text-align: center; margin: 0; }

/* Social pills */
.social-pill {
    padding: 8px 18px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px;
    color: var(--text-main); font-size: 14px; font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; background: transparent;
}
.dark-mode .social-pill { border-color: rgba(255, 255, 255, 0.15); }
body:not(.dark-mode) .social-pill { border-color: rgba(120, 80, 30, 0.18); }
.social-pill:hover { background: var(--text-main); color: var(--bg-body); transform: translateY(-2px); }

/* =========================================
   15. FAQ ACCORDION
   ========================================= */
.faq-section { padding: 50px 0; }

/* Сбрасываем отступ у h2 внутри кнопки аккордеона */
.accordion-btn h2 { margin-bottom: 0; }

/* FAQ-специфичная иконка (+/×) */
.acc-icon {
    width: 48px; height: 48px; border-radius: 50%; background: var(--icon-bg); color: var(--text-main);
    display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: 300;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
.accordion-btn.active .acc-icon { transform: rotate(45deg); background: var(--text-main); color: var(--bg-body); }

/* Отступ для списка внутри контента аккордеона */
.accordion-content .premium-list { margin-top: 30px; }

/* =========================================
   16. SERVICES ACCORDION (OFERTA PAGE)
   ========================================= */
.accordion-card {
    background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 20px;
    margin-bottom: 15px; overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.accordion-card:hover { border-color: var(--text-main); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); }

.accordion-btn {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 25px 30px; background: transparent; border: none; color: var(--text-main);
    cursor: pointer; text-align: left;
}

.acc-title { display: flex; align-items: center; gap: 20px; }
.acc-title h2 { font-size: 24px; margin: 0; font-weight: 700; letter-spacing: -0.4px; line-height: 1.2; }

.acc-main-icon { width: 40px; height: 40px; opacity: 0.9; }

.acc-indicator { font-size: 32px; font-weight: 300; line-height: 1; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.accordion-btn.active .acc-indicator { transform: rotate(45deg); color: var(--text-muted); }

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out-quint);
}
.accordion-content > .accordion-inner {
    overflow: hidden;
    min-height: 0;
}

.premium-list { list-style: none; padding: 0 30px 30px 90px; margin: 0; }
.premium-list li { display: flex; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid var(--border-light); color: var(--text-muted); font-size: 16px; }
.premium-list li:last-child { border-bottom: none; }
.list-icon { width: 20px; height: 20px; opacity: 0.7; }

/* =========================================
   17. PORTFOLIO FILTERS
   ========================================= */
.portfolio-filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }

.filter-btn {
    background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border-light);
    padding: 12px 24px; border-radius: 100px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: transform 0.3s var(--ease-out-quint), color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.filter-btn:hover { color: var(--text-main); border-color: var(--border-med); transform: translateY(-2px); }
.filter-btn.active { background: var(--text-main); color: var(--bg-body); border-color: var(--text-main); }

.project-item { transition: transform 0.4s ease, opacity 0.4s ease; }
.project-item.hide-project { display: none !important; }
.project-item.show-project { animation: fadeInScale 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* =========================================
   18. PORTFOLIO STORYTELLING (PROJECT DETAIL)
   ========================================= */
.presentation-section { max-width: 1000px; margin: 0 auto 60px; padding-top: 40px; border-top: 1px solid var(--border-light); }
.presentation-section:first-of-type { border-top: none; padding-top: 0; }

.presentation-text { text-align: center; margin-bottom: 40px; }
.presentation-text h5 { font-size: 24px; font-weight: 700; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.4px; line-height: 1.2; }
.presentation-text p { font-size: 16px; color: var(--text-muted); max-width: 65ch; margin: 0 auto; line-height: 1.65; }

.presentation-images { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.presentation-images img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px var(--shadow-med); border: 1px solid var(--border-light); transition: transform 0.3s ease, border-color 0.3s ease; }
.presentation-images img:hover { transform: translateY(-5px); border-color: var(--border-med); }

/* =========================================
   19. CTA SECTION
   ========================================= */
.cta-section { padding: 60px 0 80px; }
.cta-box {
    background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 28px;
    padding: 60px 40px; text-align: center; max-width: 720px; margin: 0 auto;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px; background: linear-gradient(90deg, transparent, #FF5500, transparent);
}
.cta-box h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; color: var(--text-main); }
.cta-box p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }
.cta-box .btn-primary { font-size: 16px; padding: 16px 40px; }

/* =========================================
   20. PAGE HERO & SERVICE CARDS (OFERTA PAGE)
   ========================================= */
.page-hero { padding: 160px 0 60px; }
.services-content { padding-bottom: 100px; }

.service-card {
    background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 24px;
    padding: 40px; box-shadow: 0 10px 30px var(--shadow-light); transition: transform 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart); margin-bottom: 30px;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--border-med); box-shadow: 0 20px 40px var(--shadow-med); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card h2 { font-size: 28px; font-weight: 800; color: var(--text-main); letter-spacing: -0.5px; margin-bottom: 20px; }

/* Алмазная иконка в списках услуг */
.premium-list li::before { content: '✦'; color: var(--text-main); font-size: 14px; opacity: 0.5; }

/* Инвертируем иконки аккордеона в светлой теме */
body:not(.dark-mode) .acc-main-icon { filter: invert(1); opacity: 0.8; }

/* =========================================
   21. LEGAL PAGES
   ========================================= */
.legal-content {
    background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 24px;
    padding: 50px; box-shadow: 0 10px 40px var(--shadow-light);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* =========================================
   22. FOOTER
   ========================================= */
.footer { background: #0a0a0a; color: #fff; padding: 100px 0 40px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-logo { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -1px; display: block; margin-bottom: 15px; }
.footer-brand p { color: rgba(255, 255, 255, 0.5); font-size: 15px; line-height: 1.6; max-width: 300px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.3); margin-bottom: 25px; font-weight: 700; opacity: 0.7; }
.footer a, .footer p { display: block; color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 15px; margin-bottom: 12px; transition: color 0.3s ease; }
.footer p { margin-bottom: 5px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 14px; margin: 0; opacity: 0.7; }

/* =========================================
   23. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed; bottom: -150px; left: 20px; max-width: 380px;
    background: var(--header-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    color: var(--text-main); padding: 24px; border-radius: 20px; box-shadow: 0 20px 40px var(--shadow-med);
    display: flex; flex-direction: column; gap: 15px; z-index: 9999; opacity: 0; transition: bottom 0.6s var(--ease-out-quint), opacity 0.6s ease;
    border: 1px solid var(--border-light);
}
.cookie-banner.show { bottom: 20px; opacity: 1; }
.cookie-banner p { font-size: 13px; line-height: 1.6; margin: 0; color: var(--text-muted); }
.cookie-banner a { color: var(--text-main); text-decoration: underline; font-weight: 600; }
.btn-cookie { background: var(--btn-bg); color: var(--btn-text); border: none; padding: 12px 24px; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 0.2s ease; align-self: flex-start; }
.btn-cookie:hover { transform: scale(1.05); }

/* =========================================
   24. FLOATING CONTACT BUTTON
   ========================================= */
.floating-contact {
    position: fixed; bottom: 30px; right: 30px; z-index: 1900;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}

.floating-menu {
    display: flex; flex-direction: column; gap: 12px;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity 0.3s var(--ease-out-quint), visibility 0.3s, transform 0.3s var(--ease-out-quint);
}
.floating-contact.is-active .floating-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.float-item {
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.float-item:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); }

.whatsapp  { background-color: #25D366; }
.facebook { background-color: #1877F2; }
.telegram  { background-color: #0088cc; }

.float-main-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background-color: var(--text-main); color: var(--bg-body); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease;
    animation: floatPulse 2s infinite;
}
.floating-contact.is-active .float-main-btn { animation: none; transform: rotate(90deg); }

@keyframes floatPulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0); }
}

/* =========================================
   25. SCROLL PROGRESS BAR
   ========================================= */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: #FF5500; z-index: 9999; transition: width 0.08s linear; pointer-events: none;
}
/* Скрываем прогресс-бар когда открыта модалка проекта:
   body заблокирован (overflow:hidden), window.scroll не двигается →
   бар либо замерзает на месте, либо конфликтует со скроллом .card-details */
body.modal-open #scroll-progress {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* =========================================
   26. TYPING EFFECT
   ========================================= */
.typing-line {
    display: flex; align-items: center; justify-content: center; gap: 0;
    margin: 14px 0 22px; font-size: 1.05rem; font-weight: 500; letter-spacing: 0.03em;
    opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
    min-height: 1.6em;
    white-space: nowrap;
    overflow-anchor: none;
    outline: none; border: none;
}
.typing-line.visible { opacity: 1; transform: translateY(0); }
.typing-text { color: var(--accent); }
.typing-cursor { color: var(--accent); font-weight: 300; margin-left: 2px; animation: cursorBlink 0.75s step-end infinite; }

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

/* =========================================
   27. TOAST NOTIFICATIONS
   ========================================= */
.toast {
    position: fixed; bottom: 32px; right: 32px;
    background: var(--bg-card, #151515); color: var(--text-main, #fff);
    padding: 16px 22px; border-radius: 14px; border: 1px solid rgba(255, 85, 0, 0.30);
    font-size: 0.88rem; font-weight: 500; line-height: 1.5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); z-index: 99999; max-width: 320px;
    transform: translateY(calc(100% + 40px)); opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    pointer-events: none;
}
.toast.toast-show { transform: translateY(0); opacity: 1; }
.toast.toast-success { border-color: rgba(22, 163, 74, 0.35); }
.toast.toast-error { border-color: rgba(220, 38, 38, 0.35); }

/* =========================================
   28. ANIMATIONS
   ========================================= */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s var(--ease-out-quint), transform 0.7s var(--ease-out-quint); }
.reveal-up.is-visible { opacity: 1; transform: none !important; }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.2s; }

/* Анимация появления текста (split-text) */
.split-text { opacity: 0; }
.split-text.is-visible { opacity: 1; }
.word-wrapper { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.3em; margin-bottom: -0.3em; }
.word-inner { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.8s ease; }
.split-text.is-visible .word-inner { transform: translateY(0); opacity: 1; }

/* =========================================
   HEADER SCROLL STATE
   ========================================= */

/* =========================================
   ANIMATION EASING VARIABLES
   ========================================= */
:root {
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   PREFERS-REDUCED-MOTION (accessibility)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-up { opacity: 1; transform: none; }
    .split-text { opacity: 1; }
    .word-inner { transform: none; opacity: 1; }
}

/* =========================================
   DESIGN IMPROVEMENTS
   ========================================= */

/* Featured pricing card */
.price-box--featured {
    border-color: rgba(255, 85, 0, 0.4) !important;
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.04) 0%, rgba(255, 85, 0, 0.01) 100%) !important;
    box-shadow: 0 0 0 1px rgba(255, 85, 0, 0.25), 0 20px 50px rgba(255, 85, 0, 0.08);
    transform: translateY(-6px);
}
.price-box--featured:hover {
    border-color: rgba(255, 85, 0, 0.7) !important;
    box-shadow: 0 0 0 1px rgba(255, 85, 0, 0.5), 0 25px 60px rgba(255, 85, 0, 0.14) !important;
    transform: translateY(-10px) !important;
}
body.dark-mode .price-box--featured {
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.06) 0%, rgba(10, 10, 10, 0.7) 100%) !important;
}
body.dark-mode .price-box--featured:hover {
    box-shadow: 0 0 0 1px rgba(255, 85, 0, 0.6), 0 25px 60px rgba(255, 85, 0, 0.18) !important;
}
.price-box--featured .price-header h4 { color: #FF5500; }

.price-badge {
    display: inline-block;
    background: #FF5500;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

/* FAQ improvements */
.faq-section .accordion-card {
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.faq-section .accordion-card:has(.accordion-btn.active) {
    border-color: rgba(255, 85, 0, 0.40);
}
.faq-section .accordion-btn {
    padding: 28px 30px;
}
.faq-section .accordion-btn h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.faq-section .acc-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-med);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 300;
    flex-shrink: 0;
    transition: background-color 0.4s var(--ease-out-quart), border-color 0.4s var(--ease-out-quart), color 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
}
.faq-section .accordion-btn.active .acc-indicator {
    background: #FF5500;
    border-color: #FF5500;
    color: #fff;
    transform: rotate(45deg);
}
.faq-section .accordion-btn.active .acc-indicator::before {
    border-color: #fff;
}

/* Section headers - Syne font gets tighter tracking */
.section-header h2 {
    letter-spacing: -1.5px;
    line-height: 1.05;
}

/* =========================================
   29. LIGHT MODE OVERRIDES (Warm Stone)
   ========================================= */

/* Price boxes on oferta page — override hardcoded dark glass */
body:not(.dark-mode) .price-box {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body:not(.dark-mode) .price-box:hover {
    border-color: var(--border-med) !important;
    box-shadow: 0 15px 40px var(--shadow-hover) !important;
}
body:not(.dark-mode) .price-box--featured {
    border-color: rgba(255, 85, 0, 0.35) !important;
    background: linear-gradient(180deg, oklch(99% 0.012 50) 0%, var(--bg-card) 100%) !important;
    box-shadow: 0 0 0 1px rgba(255, 85, 0, 0.2), 0 20px 50px rgba(255, 85, 0, 0.10) !important;
}
body:not(.dark-mode) .price-box--featured:hover {
    box-shadow: 0 0 0 1px rgba(255, 85, 0, 0.45), 0 25px 60px rgba(255, 85, 0, 0.16) !important;
}
body:not(.dark-mode) .price-header { border-bottom-color: var(--border-light); }
body:not(.dark-mode) .price-header > span { color: var(--text-muted); background: rgba(0, 0, 0, 0.04); border-color: var(--border-light); }
body:not(.dark-mode) .pricing-features-list .check { background: rgba(255, 85, 0, 0.1); }
body:not(.dark-mode) .price-header h4 { color: var(--text-main); }
body:not(.dark-mode) .price-box--featured .price-header h4 { color: #FF5500; }
body:not(.dark-mode) .price-header .price { color: var(--text-main); }
body:not(.dark-mode) .price-header .price span { color: var(--text-muted); }
body:not(.dark-mode) .price-header .time { color: var(--text-muted); }
body:not(.dark-mode) .price-includes { color: var(--text-main); }
body:not(.dark-mode) .pricing-features-list li { color: var(--text-muted) !important; }
body:not(.dark-mode) .pricing-features-list .check { color: var(--text-main) !important; }
body:not(.dark-mode) .pricing-features-list .highlight-feature { color: var(--text-main) !important; }
body:not(.dark-mode) .addons { border-top-color: var(--border-light); }
body:not(.dark-mode) .addons-title { color: var(--text-muted); }
body:not(.dark-mode) .pricing-addons-list li { color: var(--text-muted); }
body:not(.dark-mode) .pricing-addons-list .plus { color: var(--border-med); }

/* Maintenance box */
body:not(.dark-mode) .maintenance-box {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body:not(.dark-mode) .maintenance-box:hover { border-color: var(--border-med) !important; }
body:not(.dark-mode) .m-left h3 { color: var(--text-main); }
body:not(.dark-mode) .m-left .price { color: var(--text-main); }
body:not(.dark-mode) .m-left .price span { color: var(--text-muted); }
body:not(.dark-mode) .m-left p { color: var(--text-muted); }

/* floatPulse ring — visible on light backgrounds */
body:not(.dark-mode) .float-main-btn {
    animation: floatPulseLight 2s infinite;
}
@keyframes floatPulseLight {
    0%   { box-shadow: 0 0 0 0   rgba(0, 0, 0, 0.25); }
    70%  { box-shadow: 0 0 0 15px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0   rgba(0, 0, 0, 0); }
}

/* Accordion card hover shadow — use warm tinted shadow instead of black */
body:not(.dark-mode) .accordion-card:hover {
    box-shadow: 0 10px 25px var(--shadow-hover);
}

/* =========================================
   30. RESPONSIVE (MOBILE & TABLET)
   ========================================= */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 520px;
    }
    .maintenance-box {
        flex-direction: column;
        gap: 30px;
        padding: 40px 30px;
        max-width: 600px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Процесс: одна колонка */
    .process-grid { grid-template-columns: 1fr; gap: 70px; }
    .step-1 { order: 1; } .step-2 { order: 2; } .step-3 { order: 3; } .step-4 { order: 4; }

    .svg-arrow { top: auto; right: auto; left: 50%; }
    .arrow-right { width: 60px; height: 22px; bottom: -45px; margin-left: -30px; transform: rotate(90deg); }
    .arrow-down  { width: 22px; height: 40px; bottom: -55px; margin-left: -11px; transform: rotate(0deg); }
    .arrow-left  { width: 60px; height: 22px; bottom: -45px; margin-left: -30px; transform: rotate(-90deg); }
    .svg-fill { clip-path: inset(0 100% 0 0); -webkit-clip-path: inset(0 100% 0 0); }

    .contact-wrapper { flex-direction: column; padding: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Шапка */
    .header-inner { padding: 0 20px; }
    .desktop-nav, .btn-header { display: none; }
    .hamburger { display: flex; flex-direction: column; justify-content: space-between; width: 32px; height: 20px; background: transparent; border: none; cursor: pointer; z-index: 1000; position: relative; }
    .hamburger::before { content: ''; position: absolute; inset: -14px -12px; }
    .hamburger span { width: 100%; height: 2px; background-color: var(--text-main); transition: transform 0.3s ease, opacity 0.3s ease; border-radius: 2px; }
    .hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.is-active span:nth-child(2) { opacity: 0; }
    .hamburger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* Мобильное меню */
    .mobile-menu {
        position: fixed; top: 80px; right: 20px; width: 240px;
        background: var(--header-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        border-radius: 24px; border: 1px solid var(--border-light); box-shadow: 0 20px 40px var(--shadow-med);
        padding: 30px; z-index: 999; opacity: 0; visibility: hidden; transform: translateY(-15px) scale(0.95); transition: opacity 0.4s var(--ease-out-quint), visibility 0.4s, transform 0.4s var(--ease-out-quint); transform-origin: top right;
    }
    .mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
    .mobile-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; }
    .mobile-link { font-size: 18px; font-weight: 600; color: var(--text-main); text-decoration: none; width: 100%; }

    /* Bento и ценообразование */
    .oferta-section { padding: 30px 0; }
    .bento-grid { grid-template-columns: 1fr; }
    .pricing-card { flex-direction: column; }
    .pricing-left, .pricing-right { padding: 40px 30px; }
    .pricing-left { border-right: none; border-bottom: 1px solid var(--border-light); }
    .price { font-size: 52px; }
    .process-card { padding: 30px; }
    .step-number { font-size: 60px; top: 15px; right: 20px; }

    /* Портфолио и модалка */
    .thumb { height: 250px; }
    .details-content { padding: 70px 0 100px; }
    .btn-close { width: 44px; height: 44px; font-size: 20px; top: calc(env(safe-area-inset-top, 15px) + 15px); right: 15px; }
    .project-nav-arrows { padding: 0 10px; }
    .nav-arrow { width: 44px; height: 44px; }
    body.modal-open::before, .card-details, #particles-js { height: 100vh; height: 100dvh; bottom: 0; overscroll-behavior: none; }

    /* Контакты */
    .contact-wrapper { padding: 25px; border-radius: 20px; }
    .contact-form-container { padding: 25px 15px; }
    .contact-info h2 { font-size: 32px; }
    .direct-link { font-size: 20px; }

    /* Футер */
    .footer { padding: 60px 0 30px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; text-align: left; }
    .footer-brand, .footer-grid > div:last-child { grid-column: span 2; }
    .footer-brand p { margin: 0; max-width: 90%; }
    .footer-bottom { text-align: left; padding-top: 25px; margin-top: 10px; }

    /* Cookie banner */
    .cookie-banner { left: 15px; right: 15px; max-width: none; }
    .cookie-banner.show { bottom: 15px; }

    /* Floating contact — iOS safe area */
    .floating-contact { bottom: max(20px, env(safe-area-inset-bottom, 20px)); right: 20px; }

    /* Legal pages */
    .legal-content { padding: 30px 20px; }

    /* Portfolio storytelling */
    .presentation-images { grid-template-columns: 1fr; gap: 20px; }

    /* Hero mobile */
    .hero { padding: 80px 0 50px; }
    .hero h1 { font-size: 34px; letter-spacing: -1px; line-height: 1.12; }
    .hero p { font-size: 17px; }
    .hero-buttons { flex-wrap: wrap; gap: 10px; }
    .hero-buttons { justify-content: center; }
    .hero-buttons .btn-primary { order: 1; }
    .hero-buttons .btn-secondary { order: 2; flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; font-size: 14px; padding: 14px 12px; }
    .hero-buttons::after { content: ''; flex-basis: 100%; order: 1; height: 0; }

    /* Section headings */
    .section-header h2 { font-size: 28px; letter-spacing: -0.5px; }
    .section-header p { font-size: 16px; }

    /* Process section */
    .step-number { font-size: 48px; }
    .process-card h3 { font-size: 20px; padding-right: 48px; }

    /* Contact */
    .contact-info h2 { font-size: 28px; }
    .direct-link { font-size: 18px; }
    .social-pills { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .toast { right: 16px; bottom: 16px; left: 16px; max-width: none; }

    /* Pricing: shrink padding on very small screens */
    .pricing-left, .pricing-right { padding: 30px 20px; }
    .price { font-size: 44px; }
}

/* =========================================
   30. DARK MODE — ORANGE ACCENTS
   ========================================= */

/* --- Buttons --- */
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #FF5500 0%, #FF8800 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 85, 0, 0.3);
}
body.dark-mode .btn-primary:hover {
    box-shadow: 0 15px 40px rgba(255, 85, 0, 0.5);
    transform: translateY(-3px);
}
body.dark-mode .btn-header {
    background: linear-gradient(135deg, #FF5500 0%, #FF8800 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.25);
}
body.dark-mode .btn-submit {
    background: linear-gradient(135deg, #FF5500, #FF8800);
    color: #fff;
}
body.dark-mode .btn-submit:hover { box-shadow: 0 10px 25px rgba(255, 85, 0, 0.4); }
body.dark-mode .btn-secondary:hover { border-color: #FF5500; color: #FF6A00; background: rgba(255, 85, 0, 0.07); }
body.dark-mode .btn-visit:hover { background: #FF5500; border-color: #FF5500; color: #fff; }

/* --- Navigation --- */
body.dark-mode .nav a:hover,
body.dark-mode .nav-link:hover { color: #FF6A00; opacity: 1; }
body.dark-mode .mobile-link:hover { color: #FF6A00; }
body.dark-mode .lang-switch a.active { color: #FF6A00; }

/* --- Stars --- */
body.dark-mode .stars { color: #FF6A00; }

/* --- Check marks & list icons --- */
body.dark-mode .pricing-features-list .check { color: #FF6A00; font-weight: 700; }
body.dark-mode .feature-list .check { background: #FF5500; color: #ffffff; }
body.dark-mode .premium-list li::before { color: #FF6A00; opacity: 1; }

/* --- Pricing label span --- */
body.dark-mode .price-header > span { color: #FF6A00; }

/* --- Featured pricing box: 2nd card --- */
body.dark-mode .pricing-grid .price-box:nth-child(2) {
    border-color: #FF5500;
    box-shadow: 0 0 0 1px rgba(255, 85, 0, 0.35), 0 20px 50px rgba(255, 85, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.05) 0%, rgba(20, 20, 20, 0.8) 100%);
    overflow: visible;
}
body.dark-mode .pricing-grid .price-box:nth-child(2)::before {
    content: '★  BEST VALUE';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #FF5500, #FF8800);
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
    padding: 5px 18px; border-radius: 100px; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.4);
}
body.dark-mode .pricing-grid .price-box:nth-child(2):hover {
    border-color: #FF8800;
    box-shadow: 0 0 0 1px rgba(255, 136, 0, 0.6), 0 25px 60px rgba(255, 85, 0, 0.2);
}
/* Локализация бейджа (темная тема) */
html[lang="pl"] body.dark-mode .pricing-grid .price-box:nth-child(2)::before { content: '★  NAJLEPSZA OFERTA'; }
html[lang="de"] body.dark-mode .pricing-grid .price-box:nth-child(2)::before { content: '★  EMPFOHLEN'; }
html[lang="ru"] body.dark-mode .pricing-grid .price-box:nth-child(2)::before { content: '★  ЛУЧШИЙ ВЫБОР'; }

/* --- Maintenance box hover --- */
body.dark-mode .maintenance-box:hover {
    border-color: rgba(255, 85, 0, 0.4);
    box-shadow: 0 20px 50px rgba(255, 85, 0, 0.08);
}

/* --- Filter buttons --- */
body.dark-mode .filter-btn.active { background: #FF5500; color: #ffffff; border-color: #FF5500; box-shadow: 0 5px 20px rgba(255, 85, 0, 0.3); }
body.dark-mode .filter-btn.active:hover { color: #ffffff; background: #FF6A00; border-color: #FF6A00; }
body.dark-mode .filter-btn:hover { color: #FF6A00; border-color: rgba(255, 106, 0, 0.4); }

/* --- Floating contact button --- */
body.dark-mode .float-main-btn {
    background: linear-gradient(135deg, #FF5500, #FF8800);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 85, 0, 0.4);
    animation: floatPulseOrange 2s infinite;
}
body.dark-mode .floating-contact.is-active .float-main-btn { animation: none; transform: rotate(90deg); }

@keyframes floatPulseOrange {
    0%   { box-shadow: 0 0 0 0   rgba(255, 85, 0, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(255, 85, 0, 0); }
    100% { box-shadow: 0 0 0 0   rgba(255, 85, 0, 0); }
}

/* --- Accordion --- */
body.dark-mode .accordion-card:hover { border-color: rgba(255, 85, 0, 0.45); }
body.dark-mode .accordion-btn.active .acc-indicator { color: #FF6A00; }
body.dark-mode .accordion-btn.active .acc-icon { background: #FF5500; color: #ffffff; }

/* --- Card hovers: orange glow --- */
body.dark-mode .card:hover { border-color: rgba(255, 85, 0, 0.25); }
body.dark-mode .bento-card:hover { border-color: rgba(255, 85, 0, 0.25); }
body.dark-mode .process-card:hover { border-color: rgba(255, 85, 0, 0.25); }
body.dark-mode .testimonial-card:hover { border-color: rgba(255, 85, 0, 0.25); box-shadow: 0 20px 40px rgba(255, 85, 0, 0.08); }

/* --- Contact form focus --- */
body.dark-mode .input-group input:focus,
body.dark-mode .input-group textarea:focus { border-bottom-color: #FF5500; }
body.dark-mode .input-group input:focus ~ label,
body.dark-mode .input-group input:not(:placeholder-shown) ~ label,
body.dark-mode .input-group textarea:focus ~ label,
body.dark-mode .input-group textarea:not(:placeholder-shown) ~ label { color: #FF6A00; }

/* --- Scrollbar thumb hover --- */
body.dark-mode ::-webkit-scrollbar-thumb:hover { background: #FF5500; }

/* --- Project nav arrows hover --- */
body.dark-mode .project-nav-arrows.visible .nav-arrow:hover { background: #FF5500; color: #fff; border-color: #FF5500; }

/* --- Pricing addons plus sign --- */
body.dark-mode .pricing-addons-list .plus { color: #FF5500; opacity: 0.7; }

/* --- FAQ: оранжевая стрелка вместо «+» --- */
body.dark-mode .acc-indicator {
    color: transparent; font-size: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    position: relative; transform: none !important; flex-shrink: 0;
}
body.dark-mode .acc-indicator::before {
    content: ''; display: block; width: 10px; height: 10px;
    border-right: 2.5px solid #FF5500; border-bottom: 2.5px solid #FF5500;
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}
body.dark-mode .accordion-btn.active .acc-indicator::before {
    transform: rotate(-135deg) translate(-1px, -2px);
    border-color: #FF6A00;
}

/* =========================================
   31. LIGHT MODE — ORANGE ACCENTS
   ========================================= */

/* --- Buttons --- */
body:not(.dark-mode) .btn-primary {
    background: linear-gradient(135deg, #FF5500 0%, #FF8800 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 85, 0, 0.25);
}
body:not(.dark-mode) .btn-primary:hover { box-shadow: 0 15px 35px rgba(255, 85, 0, 0.4); transform: translateY(-3px); }
body:not(.dark-mode) .btn-header { background: linear-gradient(135deg, #FF5500, #FF8800); color: #ffffff; box-shadow: 0 5px 15px rgba(255, 85, 0, 0.2); }
body:not(.dark-mode) .btn-submit { background: linear-gradient(135deg, #FF5500, #FF8800); color: #fff; }
body:not(.dark-mode) .btn-submit:hover { box-shadow: 0 10px 25px rgba(255, 85, 0, 0.3); }
body:not(.dark-mode) .btn-secondary:hover { border-color: #FF5500; color: #FF5500; background: rgba(255, 85, 0, 0.05); }
body:not(.dark-mode) .btn-visit:hover { background: #FF5500; border-color: #FF5500; color: #fff; }

/* --- Navigation --- */
body:not(.dark-mode) .nav a:hover,
body:not(.dark-mode) .nav-link:hover { color: #FF5500; opacity: 1; }
body:not(.dark-mode) .mobile-link:hover { color: #FF5500; }
body:not(.dark-mode) .lang-switch a.active { color: #FF5500; }

/* --- Stars --- */
body:not(.dark-mode) .stars { color: #FF5500; }

/* --- Filter buttons --- */
body:not(.dark-mode) .filter-btn.active { background: #FF5500; color: #ffffff; border-color: #FF5500; box-shadow: 0 5px 15px rgba(255, 85, 0, 0.2); }
body:not(.dark-mode) .filter-btn.active:hover { color: #ffffff; background: #e64d00; border-color: #e64d00; }
body:not(.dark-mode) .filter-btn:hover { color: #FF5500; border-color: rgba(255, 85, 0, 0.4); }

/* --- Check marks & list icons --- */
body:not(.dark-mode) .pricing-features-list .check { color: #FF5500 !important; }
body:not(.dark-mode) .pricing-features-list li { color: rgba(0, 0, 0, 0.7) !important; }
body:not(.dark-mode) .pricing-features-list .highlight-feature { color: #111111 !important; }
body:not(.dark-mode) .feature-list .check { background: #FF5500; color: #fff; }
body:not(.dark-mode) .premium-list li::before { color: #FF5500; opacity: 1; }

/* --- Pricing boxes: light mode fix (dark hardcoded colors) --- */
body:not(.dark-mode) .price-box { background: #ffffff; border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }
body:not(.dark-mode) .price-box:hover { border-color: rgba(0, 0, 0, 0.15); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
body:not(.dark-mode) .price-header { border-bottom-color: rgba(0, 0, 0, 0.08); }
body:not(.dark-mode) .price-header > span { color: #FF5500; }
body:not(.dark-mode) .price-header h4 { color: #111111; }
body:not(.dark-mode) .price-header .price { color: #111111; }
body:not(.dark-mode) .price-header .price span { color: rgba(0, 0, 0, 0.45); }
body:not(.dark-mode) .price-header .time { color: rgba(0, 0, 0, 0.4); }
body:not(.dark-mode) .price-includes { color: #111111; }
body:not(.dark-mode) .addons { border-top-color: rgba(0, 0, 0, 0.08); }
body:not(.dark-mode) .addons-title { color: rgba(0, 0, 0, 0.45); }
body:not(.dark-mode) .pricing-addons-list li { color: rgba(0, 0, 0, 0.5); }
body:not(.dark-mode) .pricing-addons-list .plus { color: #FF5500; opacity: 0.6; }

/* --- Featured pricing box: 2nd card (light mode) --- */
body:not(.dark-mode) .pricing-grid .price-box:nth-child(2) {
    border-color: #FF5500;
    box-shadow: 0 0 0 1px rgba(255, 85, 0, 0.25), 0 20px 50px rgba(255, 85, 0, 0.08);
    background: linear-gradient(180deg, rgba(255, 85, 0, 0.04) 0%, #ffffff 100%);
    overflow: visible;
}
body:not(.dark-mode) .pricing-grid .price-box:nth-child(2)::before {
    content: "★  NAJLEPSZA OFERTA";
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #FF5500, #FF8800);
    color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 2.5px;
    padding: 5px 18px; border-radius: 100px; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}
html[lang="en"] body:not(.dark-mode) .pricing-grid .price-box:nth-child(2)::before { content: "★  BEST VALUE"; }
html[lang="de"] body:not(.dark-mode) .pricing-grid .price-box:nth-child(2)::before { content: "★  EMPFOHLEN"; }
html[lang="ru"] body:not(.dark-mode) .pricing-grid .price-box:nth-child(2)::before { content: "★  ЛУЧШИЙ ВЫБОР"; }
body:not(.dark-mode) .pricing-grid .price-box:nth-child(2):hover {
    border-color: #FF8800;
    box-shadow: 0 0 0 1px rgba(255, 136, 0, 0.5), 0 25px 60px rgba(255, 85, 0, 0.12);
}
body:not(.dark-mode) .pricing-grid .price-box:nth-child(2) .price-footer a.btn-secondary {
    background: linear-gradient(135deg, #FF5500, #FF8800);
    color: #fff; border-color: transparent; box-shadow: 0 5px 20px rgba(255, 85, 0, 0.25);
    font-weight: 700; border-radius: 100px; transition: box-shadow 0.3s var(--ease-out-quart), transform 0.3s var(--ease-out-quart);
}
body:not(.dark-mode) .pricing-grid .price-box:nth-child(2) .price-footer a.btn-secondary:hover {
    box-shadow: 0 8px 28px rgba(255, 85, 0, 0.4);
    transform: translateY(-2px);
}

/* --- Maintenance box: light mode fix --- */
body:not(.dark-mode) .maintenance-box { background: linear-gradient(135deg, #f9f9f9, #f4f4f4); border-color: rgba(0, 0, 0, 0.07); }
body:not(.dark-mode) .maintenance-box:hover { border-color: rgba(255, 85, 0, 0.3); box-shadow: 0 20px 50px rgba(255, 85, 0, 0.05); }
body:not(.dark-mode) .m-left h3 { color: #111111; }
body:not(.dark-mode) .m-left .price { color: #111111; }
body:not(.dark-mode) .m-left .price span { color: rgba(0, 0, 0, 0.45); }
body:not(.dark-mode) .m-left p { color: rgba(0, 0, 0, 0.65); }

/* --- Premium list border fix (was rgba white, invisible in light mode) --- */
body:not(.dark-mode) .premium-list li { border-bottom-color: rgba(0, 0, 0, 0.07); }

/* --- Card hovers: orange glow --- */
body:not(.dark-mode) .card:hover { border-color: rgba(255, 85, 0, 0.2); }
body:not(.dark-mode) .card:hover .thumb::before { background: rgba(0, 0, 0, 0.08); }
body:not(.dark-mode) .faq-section .accordion-btn.active .acc-indicator {
    background: rgba(255, 85, 0, 0.08);
    border-color: #FF5500;
}
body:not(.dark-mode) .faq-section .accordion-btn.active .acc-indicator::before {
    border-color: #FF5500;
}
body:not(.dark-mode) .bento-card:hover { border-color: rgba(255, 85, 0, 0.2); }
body:not(.dark-mode) .process-card:hover { border-color: rgba(255, 85, 0, 0.2); }
body:not(.dark-mode) .testimonial-card:hover { border-color: rgba(255, 85, 0, 0.2); box-shadow: 0 20px 40px rgba(255, 85, 0, 0.05); }
body:not(.dark-mode) .accordion-card:hover { border-color: rgba(255, 85, 0, 0.35); }

/* --- Contact form focus --- */
body:not(.dark-mode) .input-group input:focus,
body:not(.dark-mode) .input-group textarea:focus { border-bottom-color: #FF5500; }
body:not(.dark-mode) .input-group input:focus ~ label,
body:not(.dark-mode) .input-group input:not(:placeholder-shown) ~ label,
body:not(.dark-mode) .input-group textarea:focus ~ label,
body:not(.dark-mode) .input-group textarea:not(:placeholder-shown) ~ label { color: #FF5500; }

/* --- Floating contact: orange --- */
body:not(.dark-mode) .float-main-btn {
    background: linear-gradient(135deg, #FF5500, #FF8800);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(255, 85, 0, 0.3);
    animation: floatPulseOrange 2s infinite;
}
body:not(.dark-mode) .floating-contact.is-active .float-main-btn { animation: none; transform: rotate(90deg); }

/* --- Project nav arrows hover --- */
body:not(.dark-mode) .project-nav-arrows.visible .nav-arrow:hover { background: #FF5500; color: #fff; border-color: #FF5500; }

/* --- FAQ: light mode chevron arrows (orange) --- */
body:not(.dark-mode) .acc-indicator {
    color: transparent; font-size: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    position: relative; transform: none !important; flex-shrink: 0;
}
body:not(.dark-mode) .acc-indicator::before {
    content: ""; display: block; width: 10px; height: 10px;
    border-right: 2.5px solid #FF5500; border-bottom: 2.5px solid #FF5500;
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}
body:not(.dark-mode) .accordion-btn.active .acc-indicator::before {
    transform: rotate(-135deg) translate(-1px, -2px);
    border-color: #FF3300;
}

/* =========================================
   32. DESIGN IMPROVEMENTS
   ========================================= */

/* Hero: оранжевое акцентное слово */
.accent-word { color: #FF5500; display: inline; }

/* Step numbers: градиентный призрак */
.step-number {
    background: linear-gradient(135deg, #FF5500, #FF8800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.12;
    transition: opacity 0.4s ease;
}
.process-card:hover .step-number { opacity: 0.22; }
/* Убираем color-overrides из тем (градиент работает в обеих темах) */
body.dark-mode .step-number,
body:not(.dark-mode) .step-number { color: transparent; }
body.dark-mode .process-card:hover .step-number,
body:not(.dark-mode) .process-card:hover .step-number { color: transparent; }

/* Footer logo: оранжевый */
.footer-logo { color: #FF5500 !important; transition: opacity 0.3s ease; }
.footer-logo:hover { opacity: 0.8; color: #FF5500 !important; }

/* Pricing featured card: пульсирующее свечение (темная тема) */
@keyframes pricingPulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 85, 0, 0.45), 0 20px 50px rgba(255, 85, 0, 0.12); }
    60%  { box-shadow: 0 0 0 8px rgba(255, 85, 0, 0),    0 20px 50px rgba(255, 85, 0, 0.12); }
    100% { box-shadow: 0 0 0 0   rgba(255, 85, 0, 0),    0 20px 50px rgba(255, 85, 0, 0.12); }
}
body.dark-mode .pricing-grid .price-box:nth-child(2) { animation: pricingPulse 3s ease-out infinite; }
body.dark-mode .pricing-grid .price-box:nth-child(2):hover { animation: none; }

/* Avatars отзывов: оранжевый градиентный фон */
.author-avatar {
    background: linear-gradient(135deg, #FF5500, #FF8800) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800;
    letter-spacing: -0.5px;
}
