:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #ffffff;
    --bg-light: #fafafa;
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --text-on-dark: #f5f5f5;
    --accent: #c9a961;
    --accent-hover: #b8964a;
    --accent-light: rgba(201, 169, 97, 0.12);
    --border: #e8e8e8;
    --border-dark: #2a2a2a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.18);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --container: 1280px;
    --spacing-section: 8rem;
    --spacing-section-mobile: 4rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    line-height: 1.75;
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--bg-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; font-weight: 500; }

p { margin-bottom: 1.25rem; color: var(--text-secondary); }
a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: var(--spacing-section) 0; }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: #d1d1d1; }

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 4rem; }
.mt-4 { margin-top: 2rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-outline-dark {
    border-color: var(--text-on-dark);
    color: var(--text-on-dark);
}
.btn-outline-dark:hover {
    background: var(--text-on-dark);
    color: var(--bg-dark);
}

.btn-large { padding: 1.25rem 3rem; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-dark); color: var(--text-on-dark); border-color: var(--bg-dark); }
.btn-small { padding: 0.625rem 1.25rem; font-size: 0.85rem; }
.btn-telegram { background: #0088cc; color: white; }
.btn-telegram:hover { background: #0077b5; }

/* ============================================
   HEADER & NAVIGATION - DESKTOP
   ============================================ */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: var(--container);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo:hover { opacity: 0.8; }
.logo-accent { color: var(--accent); }
.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-left: 0.25rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--bg-dark); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--bg-dark); font-weight: 500; }
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 1.5rem; }

/* Desktop Dropdown */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    min-width: 650px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.dropdown-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.dropdown-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-column li {
    margin-bottom: 0.5rem;
}

.dropdown-column a {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.dropdown-column a::after {
    display: none;
}

.dropdown-column a:hover {
    background: var(--accent-light);
    color: var(--bg-dark);
}

.dropdown-cta {
    background: var(--bg-light);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
}

.dropdown-cta p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.dropdown-cta .btn {
    font-size: 0.85rem;
    padding: 0.625rem 1.25rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
    z-index: 1001;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--bg-dark);
    transition: 0.3s;
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 12rem 0 8rem;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.90) 100%),
                url('law.jpg') center/cover no-repeat;
    color: var(--text-on-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--text-on-dark);
    margin-bottom: 1.75rem;
    max-width: 650px;
}

.hero h1 span {
    color: var(--accent);
    font-style: italic;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d1d1;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.6;
}

.hero-lead {
    font-size: 1.15rem;
    color: #d1d1d1;
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.8;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}

.hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.95rem;
    color: #e5e5e5;
}

.hero-feature svg {
    flex-shrink: 0;
    width: 18px; height: 18px;
    stroke: var(--accent);
    margin-top: 3px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--accent);
}

.hero-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.hero-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.hero-card-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.trust-indicators {
    display: flex;
    gap: 3.5rem;
    margin-top: 4.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.trust-item { text-align: left; }
.trust-value {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 500;
    color: var(--accent);
    display: block;
    margin-bottom: 0.375rem;
    line-height: 1;
}
.trust-label {
    font-size: 0.875rem;
    color: #a3a3a3;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    padding: var(--spacing-section) 0;
}

.calculator-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.calculator-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    color: var(--text-on-dark);
    padding: 2.5rem;
    text-align: center;
}

.calculator-header h2 {
    color: var(--text-on-dark);
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.calculator-header p {
    color: #b8b8b8;
    margin: 0;
    font-size: 1rem;
}

.calculator-body { padding: 3rem; }

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.calculator-inputs h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calculator-inputs h3 svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.input-group { margin-bottom: 1.75rem; }

.input-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.input-hint {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.calculator-results {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid var(--border);
}

.calculator-results h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calculator-results h3 svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.result-item:last-child { border-bottom: none; }

.result-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bg-dark);
    font-family: var(--font-serif);
}

.result-value.highlight {
    color: #10b981;
    font-size: 1.5rem;
}

.result-value.warning { color: #f59e0b; }

.savings-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    text-align: center;
}

.savings-badge .amount {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.savings-badge .label {
    font-size: 0.95rem;
    opacity: 0.95;
}

.recommended-package {
    background: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.recommended-package h4 {
    color: var(--bg-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommended-package h4 svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.recommended-package p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.calculator-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-style: italic;
}

/* ============================================
   SERVICES SLIDER
   ============================================ */
.services-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.services-slider {
    overflow: hidden;
    position: relative;
}

.services-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.75rem;
}

.services-slider-track.dragging {
    transition: none;
    cursor: grab;
}

.services-slider-track:active { cursor: grabbing; }

.service-card {
    flex: 0 0 calc(33.333% - 1.167rem);
    background: var(--bg-card);
    border-radius: 4px;
    padding: 2.25rem;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .service-card { flex: 0 0 calc(50% - 0.875rem); }
}

@media (max-width: 640px) {
    .service-card { flex: 0 0 100%; }
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.service-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    stroke: var(--accent);
    stroke-width: 1.5;
}

.service-title { flex: 1; }
.service-title h3 { margin: 0 0 0.375rem; font-size: 1.375rem; }
.service-price {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.service-card ul {
    margin: 1.25rem 0 1.75rem;
    padding-left: 0.25rem;
    flex: 1;
}

.service-card li {
    padding: 0.5rem 0 0.5rem 1.875rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-card li::before {
    content: '';
    position: absolute;
    left: 0; top: 1.1rem;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.service-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

.slider-dot:hover { background: var(--accent); }

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section { background: var(--bg-light); }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-serif);
    flex-shrink: 0;
}

.review-author h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--bg-dark);
}

.review-author p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.review-stars {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   CASES SLIDER
   ============================================ */
.cases-slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.cases-slider {
    overflow: hidden;
    position: relative;
}

.cases-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
}

.cases-slider-track.dragging {
    transition: none;
    cursor: grab;
}

.cases-slider-track:active { cursor: grabbing; }

.case-card {
    flex: 0 0 100%;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 3.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    min-height: 600px;
}

@media (max-width: 768px) {
    .case-card {
        padding: 2.5rem 1.75rem;
        min-height: auto;
    }
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.case-badge {
    background: var(--accent-light);
    color: var(--accent);
    padding: 0.375rem 1.125rem;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--accent);
}

.case-title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    margin: 0;
    color: var(--bg-dark);
}

.case-section { margin-bottom: 2.25rem; }
.case-section:last-child { margin-bottom: 0; }

.case-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
    font-size: 1.125rem;
}

.case-section h4 svg {
    width: 20px; height: 20px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.case-section p, .case-section li {
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
    font-size: 0.975rem;
    line-height: 1.75;
}

.case-section ul { margin-left: 0.5rem; }

.case-result {
    background: linear-gradient(135deg, var(--bg-dark), #1a1a1a);
    color: var(--text-on-dark);
    padding: 2rem;
    border-radius: 4px;
    margin-top: 2.5rem;
    border-left: 3px solid var(--accent);
}

.case-result h4 {
    color: var(--text-on-dark);
    margin: 0 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
}

.case-result h4 svg { stroke: var(--accent); }
.case-result p { margin: 0; color: #d1d1d1; font-size: 0.975rem; line-height: 1.7; }

/* ============================================
   TEMPLATE MODAL
   ============================================ */
.template-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.template-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-content {
    background: var(--bg-card);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    color: var(--text-on-dark);
    padding: 2rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.template-header h2 {
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.template-header p {
    color: #b8b8b8;
    margin: 0;
    font-size: 0.95rem;
}

.template-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: var(--text-on-dark);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.template-close:hover { background: rgba(255,255,255,0.2); }
.template-close svg { width: 20px; height: 20px; stroke: currentColor; }

.template-body { padding: 2.5rem; }
.template-section { margin-bottom: 2.5rem; }
.template-section:last-child { margin-bottom: 0; }

.template-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-light);
}

.template-section h3 svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.template-item {
    background: var(--bg-light);
    border-radius: 6px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.template-item h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-item h4 svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
}

.template-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.template-item ul { margin-top: 0.75rem; }

.template-item li {
    padding: 0.375rem 0 0.375rem 1.5rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.template-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.template-pricing {
    background: linear-gradient(135deg, var(--accent-light) 0%, #fff 100%);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.template-pricing .price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--bg-dark);
    display: block;
    margin-bottom: 0.5rem;
}

.template-pricing .period {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.template-footer {
    background: var(--bg-light);
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.template-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.template-actions {
    display: flex;
    gap: 1rem;
}

/* ============================================
   PRINCIPLES SECTION
   ============================================ */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.principle-card {
    padding: 2.25rem 2rem;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.principle-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.principle-icon {
    width: 52px; height: 52px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.principle-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    color: var(--bg-dark);
}

.principle-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
}

.about-image { position: relative; }

.about-image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--bg-dark), #1a1a1a);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.15) 0%, transparent 60%);
}

.about-image-placeholder span {
    position: relative;
    z-index: 1;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content > p { font-size: 1.05rem; margin-bottom: 1.75rem; line-height: 1.8; }

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.highlight-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.375rem;
    line-height: 1.1;
}

.highlight-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.credentials-list { margin: 1.75rem 0; }

.credentials-list li {
    padding: 0.625rem 0 0.625rem 2rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.credentials-list li::before {
    content: '•';
    position: absolute; left: 0;
    color: var(--accent);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.cta-content h2 { color: var(--text-on-dark); margin-bottom: 1.5rem; }
.cta-content p { color: #d1d1d1; font-size: 1.1rem; margin-bottom: 2.25rem; line-height: 1.8; }

.cta-content ul {
    color: #c5c5c5;
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 0;
}

.cta-content ul li::before {
    content: '✓';
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: 500;
}

.cta-form {
    background: var(--bg-card);
    padding: 2.75rem;
    border-radius: 4px;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 1.375rem; }

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.25rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-consent input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.form-consent a { color: var(--accent); }

.form-triggers {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.form-triggers span { margin: 0 0.5rem; }

.form-triggers svg {
    width: 14px; height: 14px;
    vertical-align: middle;
    margin-right: 0.25rem;
    stroke: var(--accent);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
    line-height: 1.6;
}

.form-note svg {
    width: 14px; height: 14px;
    vertical-align: middle;
    margin-right: 0.375rem;
    stroke: var(--accent);
}

.form-note a { color: var(--accent); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.contact-item {
    text-align: left;
    padding: 1.75rem;
}

.contact-icon {
    width: 56px; height: 56px;
    margin: 0 0 1.25rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-icon svg { width: 24px; height: 24px; stroke: currentColor; }

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: var(--bg-dark);
}

.contact-item a,
.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a:hover { color: var(--accent); }
.contact-item p { margin: 0.375rem 0 0; font-size: 0.875rem; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-darker);
    color: #a3a3a3;
    padding: 5rem 0 2.5rem;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.footer-brand .logo {
    color: var(--text-on-dark);
    margin-bottom: 1.25rem;
    font-size: 1.375rem;
}

.footer-brand p {
    color: #b8b8b8;
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.875rem; }

.footer-col a {
    color: #a3a3a3;
    transition: color 0.2s;
    font-size: 0.925rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-legal {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-legal p { margin: 0; font-size: 0.875rem; }
.footer-legal a { color: #b8b8b8; }
.footer-legal a:hover { color: var(--accent); }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 1.5rem 2rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: none;
}

.cookie-banner.show { display: block; }

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
    color: #d1d1d1;
}

.cookie-banner a { color: var(--accent); }

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.icon {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */
@media (max-width: 1200px) {
    :root { --container: 100%; }
}

@media (max-width: 1024px) {
    h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
    .hero-grid, .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .hero { padding: 10rem 0 6rem; }
    .calculator-grid { grid-template-columns: 1fr; }
    .calculator-body { padding: 2rem; }
    .template-grid { grid-template-columns: 1fr; }
    .principles-grid { grid-template-columns: repeat(2, 1fr); }
    .about-highlights { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-indicators { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-links.active { display: flex; }
    
    .nav-links > li {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .nav-links > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        background: var(--bg-card);
    }
    
    .nav-links > li > a::after { display: none; }
    
    .nav-cta {
        margin: 1rem 1.5rem 0;
    }
    
    .nav-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Mobile Dropdown */
    .nav-dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }
    
    .dropdown-arrow {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        transition: transform 0.3s ease;
        margin-left: auto;
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: none;
        background: var(--bg-light);
        margin: 0;
        left: 0;
        right: 0;
        overflow: hidden;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-column {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .dropdown-column h4 {
        padding: 1rem 1.5rem;
        margin: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
    }
    
    .dropdown-column ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .dropdown-column li {
        margin: 0;
        border-bottom: 1px solid var(--border);
    }
    
    .dropdown-column li:last-child { border-bottom: none; }
    
    .dropdown-column a {
        padding: 1rem 1.5rem 1rem 2.5rem !important;
        display: block;
        background: var(--bg-card);
        border-radius: 0;
        margin: 0;
        font-size: 0.9rem;
        color: var(--text-secondary);
        border: none;
    }
    
    .dropdown-column a::after { display: none; }
    
    .dropdown-column a:hover {
        background: var(--accent-light);
        color: var(--bg-dark);
    }
    
    .dropdown-cta {
        margin: 1rem 1.5rem;
        border-radius: 6px;
        padding: 1.25rem;
        background: var(--bg-card);
        border: 1px solid var(--border);
    }
    
    /* Mobile Toggle */
    .mobile-toggle { display: flex; }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Other Mobile Styles */
    .hero h1 { font-size: 2rem; }
    .hero-features { grid-template-columns: 1fr; }
    .principles-grid { grid-template-columns: 1fr; }
    .section { padding: var(--spacing-section-mobile) 0; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-legal { flex-direction: column; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .calculator-header { padding: 1.75rem; }
    .calculator-body { padding: 1.5rem; }
    .template-header { padding: 1.5rem; }
    .template-body { padding: 1.5rem; }
    .template-footer { flex-direction: column; text-align: center; }
    .template-actions { width: 100%; flex-direction: column; }
    .template-actions .btn { width: 100%; }
    .slider-controls { flex-direction: column; gap: 1rem; }
    .cta-grid { gap: 3rem; }
    .cookie-banner .container { flex-direction: column; text-align: center; }
    .cookie-buttons { flex-direction: column; width: 100%; }
    .cookie-buttons .btn { width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.5rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .trust-indicators { flex-direction: column; gap: 1.5rem; }
    .result-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
/* ============================================
   ИСПРАВЛЕНИЕ МОБИЛЬНОГО DROPDOWN
   ============================================ */
@media (max-width: 768px) {
    /* Сбрасываем позиционирование dropdown */
    .nav-dropdown {
        position: relative !important;
        width: 100% !important;
    }
    
    /* Меню услуг - строго внутри потока */
    .dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid var(--border) !important;
        background: var(--bg-light) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        overflow: hidden !important;
    }
    
    .nav-dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    /* Сетка в одну колонку */
    .dropdown-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Колонки на всю ширину */
    .dropdown-column {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Заголовки разделов */
    .dropdown-column h4 {
        padding: 1rem 1.5rem !important;
        margin: 0 !important;
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border) !important;
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        color: var(--text-muted) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Список услуг */
    .dropdown-column ul {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }
    
    /* Пункты меню */
    .dropdown-column li {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        border-bottom: 1px solid var(--border) !important;
        box-sizing: border-box !important;
    }
    
    .dropdown-column li:last-child {
        border-bottom: none !important;
    }
    
    /* Ссылки на услуги */
    .dropdown-column a {
        padding: 1rem 1.5rem 1rem 2.5rem !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: var(--bg-card) !important;
        border-radius: 0 !important;
        margin: 0 !important;
        font-size: 0.9rem !important;
        color: var(--text-secondary) !important;
        text-align: left !important;
        border: none !important;
    }
    
    .dropdown-column a::after {
        display: none !important;
    }
    
    .dropdown-column a:hover {
        background: var(--accent-light) !important;
        color: var(--bg-dark) !important;
    }
    
    /* Блок с кнопкой */
    .dropdown-cta {
        margin: 1rem 1.5rem !important;
        border-radius: 6px !important;
        padding: 1.25rem !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        width: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Стрелка */
    .dropdown-arrow {
        margin-left: auto !important;
    }
    
    .nav-dropdown.active .dropdown-arrow {
        transform: rotate(180deg) !important;
    }
    
    /* Тоггл */
    .dropdown-toggle {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer !important;
        padding: 1rem 1.5rem !important;
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border) !important;
    }
}