/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    transition: background 0.4s ease, color 0.4s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== THEME VARIABLES (DARK BY DEFAULT) ===== */
:root {
    --bg-primary: #04060c;
    --bg-secondary: #080c16;
    --bg-card: #0c1220;
    --bg-card-hover: #121b2f;
    --bg-hero: #000102;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --header-bg: rgba(4, 6, 12, 0.85);
    --btn-hero-bg: #0b1a36;
    --btn-hero-border: #2563eb;
    --btn-hero-color: #ffffff;
    --btn-hero-hover: #1d4ed8;
    --btn-header-bg: rgba(37, 99, 235, 0.15);
    --btn-header-border: #2563eb;
    --btn-header-color: #ffffff;
    --btn-header-hover: #2563eb;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.7);
    --gradient-title: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-1: #3b82f6;
    --gradient-2: #2563eb;
    --gradient-3: #1d4ed8;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-hero: rgb(206 207 209 / 15%);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #cbd5e1;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-glow: rgba(37, 99, 235, 0.12);
    --header-bg: rgba(255, 255, 255, 0.88);
    --btn-hero-bg: #2563eb;
    --btn-hero-border: #2563eb;
    --btn-hero-color: #ffffff;
    --btn-hero-hover: #1d4ed8;
    --btn-header-bg: #2563eb;
    --btn-header-border: #2563eb;
    --btn-header-color: #ffffff;
    --btn-header-hover: #1d4ed8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.1);
    --gradient-title: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-1: #2563eb;
    --gradient-2: #3b82f6;
    --gradient-3: #60a5fa;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 400;
    color: var(--text-primary);
}

.logo-text strong {
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-accent {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    gap: 36px;
}

.nav-list a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.25s ease;
    position: relative;
    letter-spacing: 0.2px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
    border-radius: 2px;
}

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

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

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

.btn-header {
    background: var(--btn-header-bg);
    border: 1px solid var(--btn-header-border);
    color: var(--btn-header-color);
    border-radius: 9999px;
    padding: 9px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-header:hover {
    background: var(--btn-header-hover);
    color: #ffffff;
    border-color: var(--btn-header-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4);
    background: var(--accent-dark);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 130px 0 60px;
    background: var(--bg-hero);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background 0.4s ease;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 520px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    color: #3b82f6;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

[data-theme="light"] .hero-badge {
    color: #2563eb;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 34px;
}

.hero-actions {
    margin-bottom: 36px;
}

.btn-hero {
    background: var(--btn-hero-bg);
    border: 1px solid var(--btn-hero-border);
    color: var(--btn-hero-color);
    border-radius: 9999px;
    padding: 14px 38px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-hero:hover {
    background: var(--btn-hero-hover);
    border-color: var(--btn-hero-hover);
    color: #ffffff;
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

/* Author & Signature Block */
.hero-author {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-signature {
    width: 150px;
    height: 50px;
    color: var(--accent);
}

.signature-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual / Artwork */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 900px;
    object-fit: contain;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-img-dark {
    display: block;
    opacity: 1;
}

.hero-img-light {
    display: none;
    opacity: 0;
}

[data-theme="light"] .hero-img-dark {
    display: none;
    opacity: 0;
}

[data-theme="light"] .hero-img-light {
    display: block;
    opacity: 1;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== SERVICES ===== */
.services {
    padding: 30px 0 90px;
    background: var(--bg-primary);
    transition: background 0.4s ease;
    position: relative;
    z-index: 2;
}

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

.service-card {
    background: var(--bg-card);
    padding: 28px 24px 34px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    color: inherit;
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 32px var(--accent-glow);
}

[data-theme="light"] .service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}

.service-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-top: 2px;
}

.service-icon svg {
    width: 38px;
    height: 38px;
}

[data-theme="dark"] .service-icon svg {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.35));
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-content h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
}

.service-arrow {
    position: absolute;
    bottom: 20px;
    right: 22px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-arrow svg {
    width: 18px;
    height: 18px;
}

.service-card:hover .service-arrow {
    transform: translateX(4px);
    color: var(--accent-light);
}

/* ===== ABOUT (ДВА ВОРОНА) ===== */
.about {
    padding: 30px 0 80px;
    background: var(--bg-primary);
    transition: background 0.4s ease;
    position: relative;
    z-index: 2;
}

.about-card-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 50px;
    position: relative;
    transition: all 0.4s ease;
}

[data-theme="dark"] .about-card-wrapper {
    background: #060913;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .about-card-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 56px;
    align-items: start;
}

/* Left Column */
.about-left {
    display: flex;
    flex-direction: column;
}

.about-badge {
    display: inline-block;
    align-self: flex-start;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.about-title .highlight {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: transparent;
}

.about-crows-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    object-fit: contain;
}

.about-crows-dark {
    display: block;
}

.about-crows-light {
    display: none;
}

[data-theme="light"] .about-crows-dark {
    display: none;
}

[data-theme="light"] .about-crows-light {
    display: block;
}

/* Quote Box */
.about-quote-box {
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="light"] .about-quote-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.quote-icon {
    font-size: 2.8rem;
    line-height: 0.8;
    color: var(--accent);
    font-family: Georgia, serif;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 4px;
}

.quote-content {
    flex: 1;
}

.quote-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.2px;
    line-height: 1.45;
    margin-bottom: 6px;
}

[data-theme="light"] .quote-text {
    color: var(--accent);
}

.quote-author {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Right Column */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 10px;
}

.about-sublabel {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-trust-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-trust-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 12px;
    height: 12px;
}

.about-approach-block {
    display: flex;
    flex-direction: column;
}

.approach-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-bottom: 14px;
}

.approach-title .highlight {
    color: var(--accent);
}

.approach-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
}

.approach-signature {
    width: 150px;
    height: 48px;
    color: var(--accent);
}

/* ===== CASES (ЧТО МЫ СОЗДАЁМ) ===== */
.cases {
    padding: 30px 0 80px;
    background: var(--bg-primary);
    /* display:inline-block; */
    transition: background 0.4s ease;
    position: relative;
    z-index: 2;
}

.cases-card-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 44px 48px;
    position: relative;
    transition: all 0.4s ease;
}

[data-theme="dark"] .cases-card-wrapper {
    background: #060913;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .cases-card-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.cases-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 36px;
    align-items: stretch;
    
}

/* Left Column */
.cases-left {
    display: flex;
    flex-direction: column;
}

.cases-badge {
    display: inline-block;
    align-self: flex-start;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.cases-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cases-title .highlight {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cases-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px; 
    margin-top: auto;
}

.stat-card {
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 16px; 
    text-align: left; 
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    justify-content: center;
    transition: all 0.3s ease;
    height: 100%; 
    min-height: 110px;
}

[data-theme="light"] .stat-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.stat-icon {
    width: 38px;
    height: 38px;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
}

[data-theme="dark"] .stat-icon svg {
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.35));
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
    font-weight: 400;
}

/* Right Column: Featured Case Card */
.cases-right {
    display: flex;
}

.featured-case-card {
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 34px 34px 34px 36px;
    display: grid;
    grid-template-columns: 1.1fr 1.15fr;
    gap: 24px;
    align-items: center;
    width: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .featured-case-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.featured-case-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 36px var(--accent-glow);
}

.featured-case-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1;
}

.case-badge {
    display: inline-block;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.featured-case-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
}

.featured-case-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
}

.tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

[data-theme="light"] .tag {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #475569;
}

.case-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-more-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.case-more-link:hover svg {
    transform: translateX(4px);
}

.featured-case-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

.case-tablet-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 290px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
    transition: transform 0.4s ease;
}

[data-theme="light"] .case-tablet-img {
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.1));
}

.featured-case-card:hover .case-tablet-img {
    transform: scale(1.03);
}

.case-tablet-dark {
    display: block;
}

.case-tablet-light {
    display: none;
}

[data-theme="light"] .case-tablet-dark {
    display: none;
}

[data-theme="light"] .case-tablet-light {
    display: block;
}

/* ===== CONTACTS (НАПИШИТЕ ВОРОНУ) ===== */
.contacts {
    padding: 30px 0 80px;
    background: var(--bg-primary);
    transition: background 0.4s ease;
    position: relative;
    z-index: 2;
}

.contacts-card-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 50px;
    position: relative;
    transition: all 0.4s ease;
}

[data-theme="dark"] .contacts-card-wrapper {
    background: #060913;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .contacts-card-wrapper {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 60px;
    align-items: start;
}

/* Left Column */
.contacts-left {
    display: flex;
    flex-direction: column;
}

.contacts-badge {
    display: inline-block;
    align-self: flex-start;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.contacts-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.contacts-title .highlight {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contacts-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
}

.contacts-reach-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-sublabel {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

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

.channel-link {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: color 0.25s ease;
    display: inline-block;
}

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

.contacts-social-pills {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.social-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #090e1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .social-circle-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

.social-circle-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* Right Column: Form */
.contacts-right {
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #090e1a;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    resize: vertical;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit {
    background: #142a57;
    border: 1px solid #2563eb;
    color: #ffffff;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .btn-submit {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    background: #1d4ed8;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.4);
}

.form-promise {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 36px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    transition: background 0.4s ease;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.footer-logo .logo-img {
    height: 32px;
    width: auto;
}

.footer-logo .logo-text {
    font-weight: 400;
    color: var(--text-primary);
}

.footer-logo .logo-text strong {
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-accent {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-region {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    display: inline-block;
}

/* ===== RESPONSIVE ===== */
/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-container {
        gap: 30px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 880px) {
    .hero {
        padding: 110px 0 50px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-author {
        align-items: center;
    }

    .hero-image-container {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-img {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 24px 28px;
        transform: translateY(-100vh);
        transition: transform 0.4s ease;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .nav-list a {
        font-size: 1.05rem;
    }

    .burger {
        display: flex;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-card-wrapper {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .approach-title {
        font-size: 1.4rem;
    }

    .cases-card-wrapper {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cases-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

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

    .featured-case-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 24px;
    }

    .case-tablet-img {
        max-height: 240px;
    }

    .contacts-card-wrapper {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contacts-title {
        font-size: 1.8rem;
    }

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

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 68px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .btn-header {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-hero {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .about-card-wrapper {
        padding: 24px 18px;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .quote-text {
        font-size: 0.88rem;
    }

    .cases-card-wrapper {
        padding: 24px 18px;
    }

    .cases-title {
        font-size: 1.6rem;
    }

    .featured-case-card {
        padding: 20px 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 18px 10px;
    }

    .contacts-card-wrapper {
        padding: 24px 18px;
    }

    .contacts-title {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 24px 20px;
    }

    .hero-image-container {
        max-width: 320px;
    }

    .hero-img {
        max-height: 400px;
    }
}