/* ============================================
   CSS Variables - Цветовые схемы
   ============================================ */

:root {
    --link-color: var(--accent-color);
    --link-hover: var(--primary-color);
    --primary-color: #1a1f3a;
    --secondary-color: #d4af37;
    --accent-color: #2c3e6b;
    --text-primary: #1a1f3a;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1f3a;
    --border-color: #e5e7eb;
    --shadow: rgba(26, 31, 58, 0.1);
    --gradient: linear-gradient(135deg, #1a1f3a 0%, #2c3e6b 100%);
    --surface-1: #ffffff;
    --surface-2: #f8f9fa;
    --btn-bg: #1a1f3a;
    --btn-text: #ffffff;
    --input-bg: #ffffff;
    --input-text: #1a1f3a;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --logo-color: #1a1f3a;
    --layout-gutter: clamp(1rem, 4vw, 3rem);
    --layout-max: 1680px;
}

body.scheme-soundbox {
    --primary-color: #fbad18;
    --secondary-color: #fbad18;
    --accent-color: #ffae00;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-soft: #9f98ab;
    --bg-primary: #484848;
    --bg-secondary: #484848;
    --bg-dark: #2A2630;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.25);
    --gradient: linear-gradient(135deg, #2A2630 0%, #484848 100%);
    --surface-1: #2A2630;
    --surface-2: #353040;
    --form-panel-bg: #787384;
    --btn-bg: #ffae00;
    --btn-text: #ffffff;
    --input-bg: #a39eb0;
    --input-text: #2a2630;
    --input-placeholder: rgba(42, 38, 48, 0.55);
    --nav-bg: #2A2630;
    --logo-color: #fbad18;
    --icon-stroke: #fbad18;
    --link-color: #ffe08a;
    --link-hover: #ffffff;
}

body.scheme-2 {
    /* Схема 2: Графитовый и серебристый */
    --primary-color: #2d3436;
    --secondary-color: #b2bec3;
    --accent-color: #636e72;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f6fa;
    --bg-dark: #2d3436;
    --border-color: #dfe6e9;
    --shadow: rgba(45, 52, 54, 0.1);
    --gradient: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    --surface-1: #ffffff;
    --surface-2: #f5f6fa;
    --btn-bg: #2d3436;
    --btn-text: #ffffff;
    --input-bg: #ffffff;
    --input-text: #2d3436;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --logo-color: #2d3436;
}

body.scheme-3 {
    /* Схема 3: Бордовый и кремовый */
    --primary-color: #6b2c3e;
    --secondary-color: #f5e6d3;
    --accent-color: #8b4a5c;
    --text-primary: #6b2c3e;
    --text-secondary: #8b6f7e;
    --bg-primary: #ffffff;
    --bg-secondary: #faf8f5;
    --bg-dark: #6b2c3e;
    --border-color: #e8ddd0;
    --shadow: rgba(107, 44, 62, 0.1);
    --gradient: linear-gradient(135deg, #6b2c3e 0%, #8b4a5c 100%);
    --surface-1: #ffffff;
    --surface-2: #faf8f5;
    --btn-bg: #6b2c3e;
    --btn-text: #ffffff;
    --input-bg: #ffffff;
    --input-text: #6b2c3e;
    --nav-bg: rgba(255, 255, 255, 0.96);
    --logo-color: #6b2c3e;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    border-radius: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-align: left;
}

h1 {
    font-size: clamp(2.25rem, 4vw + 1rem, 4.75rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 2.5vw + 0.75rem, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.85rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    text-align: left;
}

li,
label,
input,
textarea,
select {
    text-align: left;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.15rem, 1.5vw + 0.5rem, 1.65rem);
    font-weight: 700;
    color: var(--logo-color);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Color Scheme Switcher */
.color-scheme-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-utilities {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.scheme-toggle-btn,
.lang-toggle-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.scheme-toggle-btn:hover,
.lang-toggle-btn:hover {
    color: var(--secondary-color);
}

.scheme-toggle-btn svg,
.lang-toggle-btn svg {
    width: 22px;
    height: 22px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface-1);
    border-radius: 0;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 120px;
    padding: 0.5rem;
    z-index: 1002;
    display: none;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
}

.lang-option:hover {
    background: var(--bg-secondary);
}

.nav-link-chronometer {
    margin-left: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient);
    color: white !important;
}

.nav-link-chronometer:hover {
    opacity: 0.9;
}

.portfolio-dropdown {
    position: relative;
}

.portfolio-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-1);
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 200px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1001;
}

.portfolio-dropdown:hover .portfolio-dropdown-content {
    display: block;
}

.portfolio-dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
}

.scheme-dropdown-title {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scheme-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--surface-1);
    border-radius: 0;
    box-shadow: 0 10px 40px var(--shadow);
    border: 1px solid var(--border-color);
    min-width: 250px;
    padding: 0.5rem;
    z-index: 1001;
    display: none;
    animation: fadeInDown 0.3s ease;
}

.scheme-dropdown.active {
    display: block;
}

.scheme-option {
    padding: 0.75rem 1rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scheme-option:hover {
    background: var(--bg-secondary);
}

.scheme-option.active {
    background: var(--bg-secondary);
    color: var(--secondary-color);
    font-weight: 600;
}

.scheme-option-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.scheme-option-info {
    flex: 1;
}

.scheme-option-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.scheme-option-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.scheme-check {
    color: var(--secondary-color);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.scheme-option.active .scheme-check {
    opacity: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.05;
    z-index: -1;
}

.hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    width: 100%;
    max-width: var(--layout-max);
}

.hero-content {
    flex: 1 1 480px;
    max-width: 640px;
    padding: 0;
    text-align: left;
    margin: 0;
}

.hero-photo {
    flex: 0 1 min(44vw, 620px);
    width: min(44vw, 620px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 20px 50px var(--shadow);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 5.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw + 0.5rem, 1.75rem);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: 0 4px 15px var(--shadow);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--btn-text, #1a1a1a);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: 4rem 0;
}

.section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
    border: none;
}

.section-divider-accent {
    height: 3px;
    background: var(--secondary-color);
    width: 80px;
    margin: 2rem 0;
    border: none;
}

.section-header {
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.section-title {
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    font-size: clamp(1.75rem, 2.5vw + 0.75rem, 3rem);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* ============================================
   About Section
   ============================================ */

.about {
    background: var(--bg-secondary);
}

.about-text {
    max-width: 800px;
    margin: 0 0 3rem 0;
    text-align: left;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--surface-1);
    padding: 2.5rem;
    border-radius: 0;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.service-icon,
.service-icon-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.service-icon-svg svg {
    width: 100%;
    height: 100%;
    stroke: var(--icon-stroke, var(--primary-color));
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Advantages Section
   ============================================ */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: left;
    padding: 2rem;
}

.advantage-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: 'Inter', monospace;
    margin-bottom: 1rem;
    opacity: 0.4;
    letter-spacing: -0.02em;
}

.advantage-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.advantage-item p {
    color: var(--text-secondary);
}

/* ============================================
   Official Work Section
   ============================================ */

.official-work {
    background: var(--bg-secondary);
}

.official-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.official-item {
    background: var(--surface-1);
    padding: 2.5rem;
    border-radius: 0;
    text-align: left;
    box-shadow: 0 5px 20px var(--shadow);
}

.official-icon,
.official-icon-svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.official-icon-svg svg {
    width: 100%;
    height: 100%;
    stroke: var(--icon-stroke, var(--primary-color));
}

.official-item h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.official-item p {
    color: var(--text-secondary);
}

/* ============================================
   Examples Section
   ============================================ */

.examples-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.example-item {
    background: var(--surface-1);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.example-image,
.example-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--bg-secondary);
    overflow: hidden;
}

.example-image img,
.example-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.example-placeholder-image,
.example-placeholder-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    opacity: 0.3;
}

.example-info {
    padding: 2rem;
}

.example-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.example-info p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Demo Works Section
   ============================================ */

.demo-works {
    background: var(--bg-secondary);
}

/* ============================================
   Narrator Demo Section (Home)
   ============================================ */

.narrator-demo {
    background: var(--bg-secondary);
    padding-top: 4rem;
}

.narrator-demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.narrator-demo-card {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px var(--shadow);
    padding: 2rem;
    text-align: left;
}

.narrator-demo-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.narrator-demo-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-primary);
}

.narrator-demo-player audio {
    width: 100%;
    outline: none;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.demo-item {
    background: var(--surface-1);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.demo-item:hover {
    transform: translateY(-5px);
}

.demo-item audio {
    width: 100%;
    outline: none;
}

.demo-item-info {
    padding: 1.5rem;
}

.demo-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.demo-item-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.demo-placeholder,
.video-placeholder {
    grid-column: 1 / -1;
    text-align: left;
    padding: 3rem;
    background: var(--surface-1);
    border-radius: 0;
    color: var(--text-secondary);
}

/* ============================================
   Video Section
   ============================================ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 5px 20px var(--shadow);
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing {
    background: var(--bg-secondary);
}

.pricing-intro {
    text-align: left;
    max-width: 800px;
    margin: 0 0 2rem 0;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-features {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.check-icon {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* ============================================
   Order Form Section
   ============================================ */

.order-form-section {
    background: var(--bg-secondary);
}

.order-form {
    max-width: none;
    margin: 0;
    background: var(--form-panel-bg, var(--surface-1));
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--input-bg);
    color: var(--input-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder, var(--text-soft, #9ca3af));
}

body.scheme-soundbox select option {
    background: var(--surface-2);
    color: var(--text-primary);
}

body.scheme-soundbox .scheme-option-name {
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.checkbox-group label span {
    color: var(--text-secondary);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--link-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.article-content a,
.guide-panel a,
.other-voices-intro a {
    color: var(--link-color);
}

.article-content a:hover,
.guide-panel a:hover,
.other-voices-intro a:hover {
    color: var(--link-hover);
}

.article-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
}

.article-back:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.file-list {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   Blog Section
   ============================================ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-empty {
    text-align: left;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
    background: var(--surface-1);
    border: 1px solid var(--border-color);
}

.blog-post {
    background: var(--surface-1);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Превью в блоге: картинка без «пустого» места под aspect-ratio */
.blog-post > img.blog-post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    margin: 0;
    padding: 0;
    position: static;
}

.blog-post > .blog-post-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.blog-post-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-post .blog-post-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-secondary);
    overflow: hidden;
    height: 0;
}

.blog-post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.blog-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-post-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.blog-post-title {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.blog-post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-post-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-post-link:hover {
    gap: 0.75rem;
}

.blog-placeholder {
    grid-column: 1 / -1;
    text-align: left;
    padding: 3rem;
    background: var(--surface-1);
    border-radius: 0;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

.hero-compact .hero-subtitle { margin-bottom: 0; }
.hero-compact .hero-description { display: none; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .hero-inner {
        flex-direction: column;
    }

    .hero-photo {
        width: 100%;
        max-width: 320px;
        height: 400px;
        order: -1;
    }

    .portfolio-dropdown-content { position: static; box-shadow: none; display: none; }
    .portfolio-dropdown:hover .portfolio-dropdown-content,
    .nav-menu.active .portfolio-dropdown .portfolio-dropdown-content { display: block; }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--surface-1);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 20px var(--shadow);
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .color-scheme-switcher {
        width: 100%;
    }

    .scheme-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .scheme-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content {
        max-width: 100%;
    }

    section {
        padding: 3rem 0;
    }

    .advantages-grid,
    .official-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .order-form {
        padding: 2rem 1.5rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-photo { height: 300px; width: 100%; max-width: 100%; }
    .nav-utilities { flex-wrap: wrap; }
    .blog-post > img.blog-post-image { max-height: 220px; }
}

.hero-compact {
    min-height: auto !important;
    padding-top: 100px;
    padding-bottom: 2rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.hero-compact .hero-content {
    max-width: 100%;
}

.page-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.guide-panel {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1.75rem;
    position: sticky;
    top: 92px;
}

.guide-panel h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.guide-panel ul {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-secondary);
}

.guide-panel li {
    margin-bottom: 0.5rem;
}

.prices-rates {
    margin: 0;
    max-width: 900px;
    text-align: left;
}

.other-voices-intro {
    max-width: 900px;
    margin-bottom: 3rem;
}

.other-voices-intro p,
.other-voices-intro li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.other-voices-intro h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.other-voices-intro ol {
    margin: 0 0 1rem 1.5rem;
}

.blog-post-card {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.blog-post-card:hover .blog-post-title {
    color: var(--secondary-color);
}

.article-page {
    padding-top: 100px;
    padding-bottom: 4rem;
}

.article-page .blog-post-image {
    max-width: 100%;
    margin-bottom: 2rem;
}

.article-content {
    max-width: 820px;
    margin-top: 1.5rem;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p,
.article-content li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin: 0 0 1.25rem 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
    .page-split {
        grid-template-columns: 1fr;
    }
    .guide-panel {
        position: static;
    }
}
