:root {
--primary-color: #0a0a0a;
--secondary-color: #141414;
--accent-color: #ff9100;
--accent-secondary: #ff9150;
--text-color: #ffffff;
--text-secondary: #b0b0b0;
--border-color: #2a2a2a;
--card-bg: #1a1a1a;
--success-color: #00d46a;
--warning-color: #ffaa00;
--danger-color: #ff3d3d;
--shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
--transition: all 0.3s ease;
--border-radius: 12px;
--section-padding: 100px 0;
}

/* Светлая тема */
body.light-mode {
--primary-color: #ffffff;
--secondary-color: #f5f5f5;
--text-color: #0a0a0a;
--text-secondary: #5a5a5a;
--border-color: #e0e0e0;
--card-bg: #ebeaea;
--shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .hero {
background: linear-gradient(135deg, #ffffff 0%, #ffe8d6 100%);
}

body.light-mode .header {
background-color: rgba(255, 255, 255, 0.95);
border-bottom: 1px solid var(--border-color);
}

body.light-mode .logo span {
color: #0a0a0a;
}

body.light-mode .btn {
color: #0a0a0a;
}

body.light-mode .btn-outline {
color: var(--accent-color);
}

body.light-mode .btn-outline:hover {
color: #0a0a0a;
}

body.light-mode .product-card,
body.light-mode .service-card,
body.light-mode .feature-item,
body.light-mode .contact-form {
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
border: 1px solid var(--border-color);
}

body.light-mode .product-image,
body.light-mode .member-image {
background-color: #f0f0f0;
}

body.light-mode .form-control {
background-color: #f9f9f9;
}

body.light-mode .social-link {
background-color: #f0f0f0;
}

body.light-mode .social-link:hover {
background-color: var(--accent-color);
color: #0a0a0a;
}

/* Стили для social иконок в карточках команды - СВЕТЛАЯ ТЕМА */
body.light-mode .member-social a {
background-color: var(--accent-color);
color: #ffffff;
}

body.light-mode .member-social a:hover {
background-color: var(--accent-secondary);
color: #ffffff;
transform: translateY(-5px);
}

/* Кнопка переключения темы */
.theme-toggle {
position: relative;
width: 50px;
height: 50px;
background-color: transparent;
border: 2px solid var(--border-color);
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
margin-left: 40px;
flex-shrink: 0;
}

.theme-toggle:hover {
border-color: var(--accent-color);
transform: scale(1.05);
}

.theme-icon {
position: absolute;
font-size: 20px;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
color: var(--accent-color);
opacity: 0;
transform: rotate(-90deg) scale(0);
}

body.light-mode .sun-icon {
opacity: 1;
transform: rotate(0deg) scale(1);
}

.moon-icon {
color: var(--accent-color);
opacity: 1;
transform: rotate(0deg) scale(1);
}

body.light-mode .moon-icon {
opacity: 0;
transform: rotate(90deg) scale(0);
}

/* Кнопка "Профиль" - Десктопная версия */
.nav-item.profile-desktop {
display: block;
}

/* Кнопка "Профиль" - Мобильная версия (скрыта на десктопе) */
.nav-item.profile-mobile {
display: none;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
}

body {
font-family: 'Inter', sans-serif;
background-color: var(--primary-color);
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
list-style: none;
}

img {
max-width: 100%;
height: auto;
}

.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.container-hero {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.text-nowrap {
white-space: nowrap;
}

.container-about {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.btn {
display: inline-block;
padding: 14px 32px;
background-color: var(--accent-color);
color: var(--primary-color);
border-radius: var(--border-radius);
font-weight: 600;
border: none;
cursor: pointer;
transition: var(--transition);
font-size: 16px;
text-align: center;
}

.btn-main-our-products {
display: inline-block;
padding: 8px 32px;
background-color: var(--accent-color);
color: var(--primary-color);
border-radius: var(--border-radius);
font-weight: 600;
border: none;
cursor: pointer;
transition: var(--transition);
font-size: 16px;
text-align: center;
margin-top: auto;
margin-left: 0;
margin-right: 0;
width: 100%;
}

.btn-main-services {
display: inline-block;
padding: 12px 32px;
background-color: var(--accent-color);
color: var(--primary-color);
border-radius: var(--border-radius);
font-weight: 600;
border: none;
cursor: pointer;
transition: var(--transition);
font-size: 16px;
text-align: center;
margin-top: 25px;
margin-left: 0;
margin-right: 0;
width: 50%;
}

.btn-about-company {
display: inline-block;
padding: 14px 32px;
background-color: var(--accent-color);
color: var(--primary-color);
border-radius: var(--border-radius);
font-weight: 600;
border: none;
cursor: pointer;
transition: var(--transition);
font-size: 16px;
text-align: center;
}

.btn-products {
display: inline-block;
padding: 14px 32px;
background-color: var(--accent-color);
color: var(--primary-color);
border-radius: var(--border-radius);
font-weight: 600;
border: none;
cursor: pointer;
transition: var(--transition);
font-size: 16px;
text-align: center;
}

.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 40px;
margin-top: 60px;
align-items: stretch;
}

.product-card {
display: flex;
flex-direction: column;
height: 100%;
}

.product-content {
display: flex;
flex-direction: column;
height: 100%;
padding: 30px;
}

.product-content .btn {
margin-top: auto;
margin-left: 0;
margin-right: 0;
width: 100%;
}

.product-content .btn-products {
margin-top: auto;
margin-left: 0;
margin-right: 0;
width: 100%;
}

.btn:hover {
background-color: var(--accent-secondary);
transform: translateY(-3px);
box-shadow: var(--shadow);
}

.btn-about-company:hover {
background-color: var(--accent-secondary);
transform: translateY(-3px);
box-shadow: var(--shadow);
}

.btn-outline {
background-color: transparent;
border: 2px solid var(--accent-color);
color: var(--accent-color);
}

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

.section-title {
font-size: 42px;
font-weight: 800;
margin-bottom: 20px;
line-height: 1.2;
text-align: center;
}

.section-title-history {
font-size: 42px;
font-weight: 800;
margin-bottom: 20px;
line-height: 1.2;
text-align: center;
}

.section-title-about-company {
font-size: 42px;
font-weight: 800;
margin-bottom: 20px;
line-height: 1.2;
}

.section-subtitle {
font-size: 18px;
color: var(--text-secondary);
max-width: 1300px;
margin-left: 15%;
margin-right: 15%;
margin-bottom: 60px;
text-align: center;
}

.section-subtitle-about {
font-size: 18px;
color: var(--text-secondary);
max-width: 1300px;
margin-left: 15%;
margin-right: 15%;
text-align: center;
}

.section-subtitle-products {
font-size: 18px;
color: var(--text-secondary);
max-width: 1300px;
margin-bottom: 60px;
margin-left: 15%;
margin-right: 15%;
text-align: center;
}

.section-subtitle-services {
font-size: 18px;
color: var(--text-secondary);
max-width: 1300px;
text-align: center;
}

.section-subtitle-contact {
font-size: 18px;
color: var(--text-secondary);
max-width: 1300px;
}

.first-paragraph {
margin-top: 30px;
font-size: 18px;
font-weight: 600;
line-height: 1.6;
}

.second-paragraph {
margin-top: 30px;
font-size: 18px;
color: var(--text-secondary);
line-height: 1.6;
}

/* Header */
.header {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
padding: 20px 0;
background-color: rgba(10, 10, 10, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
transition: var(--transition);
}

.header.scrolled {
padding: 15px 0;
box-shadow: var(--shadow);
}

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

.header-right {
display: flex;
align-items: center;
gap: 0;
flex-wrap: nowrap;
}

.logo {
font-size: 28px;
font-weight: 800;
color: var(--text-color);
display: flex;
align-items: center;
}

.logo span {
color: #ffffff;
transition: color 0.3s ease;
}

.logo i {
margin-right: 10px;
font-size: 24px;
}

.nav-list {
display: flex;
}

.nav-item {
margin-left: 40px;
}

.nav-link {
font-weight: 500;
font-size: 16px;
transition: var(--transition);
position: relative;
}

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

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

.nav-link.active::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
background-color: var(--accent-color);
}

.mobile-menu-btn {
display: none;
background: none;
border: none;
color: var(--text-color);
font-size: 24px;
cursor: pointer;
}

/* Hero Section */
.hero {
padding: 180px 0 120px;
background: linear-gradient(135deg, var(--primary-color) 0%, #4b300e 100%);
position: relative;
overflow: hidden;
transform: none !important;
}

.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: repeating-linear-gradient(
45deg,
transparent,
transparent 50px,
rgba(255, 255, 255, 0.05) 50px,
rgba(0, 0, 0, 0.05) 51px
);
}

@media (max-width: 768px) {
.hero::before {
background-attachment: scroll;
}
}

.hero-content {
position: relative;
z-index: 2;
max-width: 1400px;
transform: none !important;
}

.hero {
transform: none !important;
}

.hero-title {
font-size: 64px;
font-weight: 800;
line-height: 1.1;
margin-bottom: 30px;
}

.hero-title span {
color: var(--accent-color);
}

.hero-description {
font-size: 20px;
color: var(--text-secondary);
margin-bottom: 40px;
max-width: 600px;
text-align: justify;
text-align-last: left;
hyphens: none;
word-break: normal;
overflow-wrap: normal;
}

.hero-btns {
display: flex;
gap: 20px;
margin-bottom: 60px;
}

.hero-stats {
display: flex;
gap: 50px;
}

.stat-item {
display: flex;
flex-direction: column;
}

.stat-number {
font-size: 42px;
font-weight: 700;
color: var(--accent-color);
line-height: 1;
}

.stat-label {
font-size: 16px;
color: var(--text-secondary);
margin-top: 10px;
}

/* About Section */
.about {
padding: var(--section-padding);
}

.about-content {
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
}

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

.about-text {
display: grid;
grid-template-rows: auto auto auto 1fr;
height: 100%;
max-width: 100%;
}

.about-text p {
font-size: 18px;
color: var(--text-secondary);
margin-bottom: 25px;
}

.section-title-history + .about-text p,
.ps-scope-card__title {
text-align: justify;
text-align-last: left;
hyphens: none;
word-break: normal;
overflow-wrap: normal;
}

.about-features {
display: grid;
grid-template-columns: repeat(2, minmax(280px, 1fr));
gap: 30px;
margin-top: -20px;
margin-left: 40px;
width: calc(100% - 40px);
max-width: 100%;
}

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

.about-button {
padding-top: 70px;
}

.feature-item {
background-color: var(--card-bg);
border-radius: var(--border-radius);
border-left: 4px solid var(--accent-color);
transition: var(--transition);
padding: 35px 25px;
width: 100%;
box-sizing: border-box;
min-height: 280px;
height: auto;
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0;
}

.services-feature-item {
background-color: var(--card-bg);
border-radius: var(--border-radius);
border-left: 4px solid var(--accent-color);
transition: var(--transition);
padding: 30px 18px;
width: 100%;
box-sizing: border-box;
min-height: auto;
height: auto;
min-width: 0;
}

.feature-item:hover {
transform: translateY(-10px);
box-shadow: var(--shadow);
}

.feature-item .feature-text {
word-wrap: normal;
overflow-wrap: normal;
hyphens: none;
}

.feature-icon {
font-size: 32px;
color: var(--accent-color);
margin-bottom: 20px;
}

.feature-title {
font-size: 20px;
font-weight: 600;
margin-bottom: 15px;
}

.feature-title-services {
font-size: 20px;
font-weight: 600;
margin-bottom: 15px;
}

.feature-text {
color: var(--text-secondary);
}

/* Products Section */
.products {
padding: var(--section-padding);
}

.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 40px;
margin-top: 60px;
}

.product-card {
background-color: var(--card-bg);
border-radius: var(--border-radius);
overflow: hidden;
transition: var(--transition);
border: 1px solid var(--border-color);
}

.product-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow);
border-color: var(--accent-color);
}

.product-image {
height: 220px;
background-color: #2a2a2a;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.product-image i {
font-size: 80px;
color: var(--accent-color);
}

.product-image--photo {
    height: 320px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 55%, rgba(255,145,0,0.08), transparent 70%),
        radial-gradient(ellipse at 50% 50%, #161616 0%, #0a0a0a 70%, #050505 100%);
    position: relative;
}

.product-image--photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 55% 18% at 50% 88%, rgba(255,145,0,0.08), transparent 70%);
}

.product-image--photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.55);
    transition: transform .5s ease;
    position: relative;
    z-index: 1;
}

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

.product-content {
padding: 30px;
}

.product-title {
font-size: 24px;
font-weight: 600;
margin-bottom: 15px;
text-align: center;
}

.product-description {
color: var(--text-secondary);
margin-bottom: 20px;
text-align: justify;
text-align-last: left;
hyphens: none;
word-break: normal;
overflow-wrap: normal;
}

.product-features {
margin-bottom: 25px;
}

.product-feature {
display: flex;
align-items: center;
margin-bottom: 10px;
color: var(--text-secondary);
}

.product-feature i {
color: var(--accent-color);
margin-right: 10px;
font-size: 14px;
}

/* Services Section */
.services {
padding: var(--section-padding);
background-color: var(--secondary-color);
}

.services-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 40px;
margin-top: 60px;
align-items: stretch;
}

.service-card {
background-color: var(--card-bg);
padding: 40px 30px;
border-radius: var(--border-radius);
text-align: center;
transition: var(--transition);
border: 1px solid transparent;
display: flex;
flex-direction: column;
height: 100%;
justify-content: space-between;
}

.service-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow);
border-color: var(--accent-color);
}

.service-icon {
font-size: 48px;
color: var(--accent-color);
margin-bottom: 30px;
}

.service-title {
font-size: 24px;
font-weight: 600;
margin-bottom: 20px;
}

.service-description {
color: var(--text-secondary);
margin-bottom: 25px;
flex-grow: 1;
}

.services-service-description {
color: var(--text-secondary);
margin-bottom: 25px;
text-align: left;
}

.service-card .btn-main-services {
margin-top: auto;
margin-left: auto;
margin-right: auto;
width: fit-content;
display: block;
}

/* Partners / При поддержке */
.partners-section {
padding: 80px 0;
background-color: var(--secondary-color);
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
}

.partners-header {
margin-bottom: 48px;
text-align: center;
}

.partners-title {
font-size: 36px;
font-weight: 700;
color: var(--text-color);
line-height: 1.2;
}

.support-strip {
position: relative;
display: grid;
grid-template-columns: minmax(190px, 0.8fr) minmax(400px, 1.7fr) minmax(190px, 0.8fr);
align-items: stretch;
gap: clamp(20px, 3vw, 42px);
padding: clamp(30px, 5vw, 48px) clamp(28px, 5vw, 56px);
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: calc(var(--border-radius) + 10px);
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
overflow: hidden;
}

.support-strip__partner,
.support-strip__logo,
.support-strip__text {
position: relative;
}

.support-strip__partner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: 24px;
min-height: 220px;
}

.support-strip__logo {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
min-height: 150px;
transition: var(--transition);
}

.support-strip__logo:hover {
transform: translateY(-3px);
}

.support-strip__logo-img {
display: block;
width: auto;
height: auto;
object-fit: contain;
}

.support-strip__logo-img--fasie {
max-width: min(100%, 360px);
max-height: 150px;
}

.support-strip__logo-img--platform {
max-width: min(100%, 300px);
max-height: 170px;
}

.support-strip__text {
width: 100%;
max-width: 640px;
align-self: center;
justify-self: center;
font-size: clamp(16px, 1.55vw, 18px);
line-height: 1.55;
color: var(--text-color);
letter-spacing: 0.01em;
text-align: center;
}

.support-strip__btn {
padding: 11px 20px;
font-size: 14px;
white-space: nowrap;
}

.supporters-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 28px;
}

.partner-card {
display: flex;
flex-direction: column;
background-color: var(--card-bg);
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
border-top: 3px solid var(--accent-color);
overflow: hidden;
transition: var(--transition);
}

.partner-card:hover {
transform: translateY(-6px);
box-shadow: var(--shadow);
border-color: var(--accent-color);
}

.partner-logo-link {
display: block;
text-decoration: none;
}

.partner-logo-box {
display: flex;
align-items: center;
justify-content: center;
padding: 32px 24px;
background: linear-gradient(135deg, rgba(255, 145, 0, 0.07) 0%, rgba(255, 145, 80, 0.04) 100%);
border-bottom: 1px solid var(--border-color);
min-height: 130px;
transition: var(--transition);
}

.partner-logo-link:hover .partner-logo-box {
background: linear-gradient(135deg, rgba(255, 145, 0, 0.12) 0%, rgba(255, 145, 80, 0.08) 100%);
}

.partner-logo-box--icon {
font-size: 54px;
color: var(--accent-color);
}

.partner-logo-img {
max-width: 200px;
max-height: 80px;
width: auto;
height: auto;
object-fit: contain;
filter: brightness(1.1);
}

.partner-card__body {
display: flex;
flex-direction: column;
flex: 1;
padding: 28px 28px 30px;
}

.partner-card__title {
font-size: 19px;
font-weight: 700;
color: var(--text-color);
margin-bottom: 14px;
line-height: 1.35;
}

.partner-card__text {
font-size: 15px;
color: var(--text-secondary);
line-height: 1.75;
margin-bottom: 26px;
flex: 1;
}

.partner-card__body .btn {
align-self: flex-start;
}

/* Contact Section */
.contact {
padding: var(--section-padding);
}

.contact--alt {
background-color: var(--secondary-color);
padding-top: 70px;
padding-bottom: 70px;
}

.contact--alt .contact-content {
margin-top: 0;
}

.contact-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
margin-top: 60px;
}

.contact-info {
display: flex;
flex-direction: column;
/* justify-content: center; */
gap: 30px;
}

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

.contact-icon {
width: 60px;
height: 60px;
background-color: var(--accent-color);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: var(--primary-color);
flex-shrink: 0;
}

.contact-details h3 {
font-size: 20px;
font-weight: 600;
margin-bottom: 10px;
}

.contact-details p {
color: var(--text-secondary);
}

.contact-form {
background-color: var(--card-bg);
padding: 40px;
border-radius: var(--border-radius);
}

.form-group {
margin-bottom: 25px;
}

.form-control {
width: 100%;
padding: 16px 20px;
background-color: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
color: var(--text-color);
font-family: 'Inter', sans-serif;
font-size: 16px;
transition: var(--transition);
}

.form-control:focus {
outline: none;
border-color: var(--accent-color);
}

textarea.form-control {
min-height: 150px;
resize: vertical;
}

/* ФИКС для выпадающего списка (select) в контактной форме */
.form-control select,
select.form-control {
width: 100%;
padding: 16px 20px;
background-color: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
color: var(--text-color);
font-family: 'Inter', sans-serif;
font-size: 16px;
transition: var(--transition);
cursor: pointer;
}

.form-control select option,
select.form-control option {
background-color: var(--card-bg);
color: var(--text-color);
padding: 10px;
}

.form-control select option:hover,
select.form-control option:hover {
background-color: var(--secondary-color);
}

body.light-mode .form-control select,
body.light-mode select.form-control {
background-color: #f9f9f9;
color: var(--text-color);
}

body.light-mode .form-control select option,
body.light-mode select.form-control option {
background-color: #ffffff;
color: var(--text-color);
}

.form-control select:focus,
select.form-control:focus {
outline: none;
border-color: var(--accent-color);
}

/* Footer */
.footer {
background-color: var(--secondary-color);
padding: 48px 0 32px;
border-top: 1px solid var(--border-color);
}

.footer-top {
display: flex;
margin-bottom: 36px;
}

.footer-brand-name {
font-size: 20px;
font-weight: 700;
margin: 0 0 8px;
}

.footer-brand-primary {
color: #ffffff;
}

.footer-brand-accent {
color: var(--accent-color);
}

body.light-mode .footer-brand-primary {
color: #0a0a0a;
}

.footer-brand-tagline {
font-size: 14px;
color: var(--text-secondary);
margin: 0;
max-width: 560px;
line-height: 1.55;
text-align: justify;
text-align-last: left;
hyphens: none;
word-break: normal;
overflow-wrap: normal;
}

.footer-divider {
height: 1px;
background-color: var(--border-color);
margin-bottom: 28px;
}

.footer-bottom {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 16px 48px;
align-items: end;
color: var(--text-secondary);
font-size: 13px;
}

.footer-bottom-col {
display: flex;
flex-direction: column;
gap: 8px;
}

.footer-bottom p {
margin: 0;
line-height: 1.55;
}

.footer-disclaimer {
opacity: 0.7;
}

.footer-legal {
display: flex;
flex-direction: column;
gap: 8px;
text-align: right;
}

.footer-legal-line {
margin: 0;
line-height: 1.55;
}

.footer-legal > .footer-legal-line:first-child {
white-space: nowrap;
}

.footer-legal-ids,
.footer-legal-contacts {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: baseline;
column-gap: 14px;
row-gap: 4px;
}

.footer-legal-ids > span,
.footer-legal-contacts > a {
white-space: nowrap;
}

.footer-legal-sep {
opacity: 0.4;
user-select: none;
}

.footer-legal-contacts a {
color: #ffffff;
text-decoration: none;
font-weight: 500;
transition: color 0.2s ease;
}

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

.footer-legal-label {
opacity: 0.6;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-right: 5px;
}

.social-links {
display: flex;
gap: 15px;
margin-top: 20px;
}

.social-link {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--card-bg);
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}

.social-link:hover {
background-color: var(--accent-color);
color: var(--primary-color);
transform: translateY(-5px);
}

/* Page Header */
.page-header {
padding: 160px 0 80px;
background: linear-gradient(135deg, var(--primary-color) 0%, #4b300e 100%);
text-align: center;
position: relative;
overflow: hidden;
}

.page-header::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: repeating-linear-gradient(
45deg,
transparent,
transparent 50px,
rgba(255, 255, 255, 0.05) 50px,
rgba(0, 0, 0, 0.05) 51px
);
}

.page-header .section-title {
margin-bottom: 20px;
position: relative;
z-index: 2;
}

.breadcrumb {
display: flex;
justify-content: center;
align-items: center;
color: var(--text-secondary);
font-size: 16px;
position: relative;
z-index: 2;
}

.breadcrumb a {
color: var(--accent-color);
transition: var(--transition);
}

.breadcrumb a:hover {
text-decoration: underline;
}

.breadcrumb i {
margin: 0 10px;
font-size: 12px;
}

/* Team Section */
.team {
padding: var(--section-padding);
background-color: var(--secondary-color);
}

.team-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 40px;
margin-top: 60px;
}

.team-member {
background-color: var(--card-bg);
border-radius: var(--border-radius);
overflow: hidden;
transition: var(--transition);
}

.team-member:hover {
transform: translateY(-10px);
box-shadow: var(--shadow);
}

.member-image {
height: 250px;
background-color: #2a2a2a;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}

.member-image i {
font-size: 100px;
color: var(--accent-color);
}

.member-info {
padding: 30px;
text-align: center;
}

.member-name {
font-size: 22px;
font-weight: 600;
margin-bottom: 10px;
}

.member-position {
color: var(--accent-color);
font-weight: 500;
margin-bottom: 15px;
}

.member-bio {
color: var(--text-secondary);
font-size: 15px;
}

/* Mission & Vision Cards */
.mission-vision {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
margin-top: 60px;
}

.mission-card, .vision-card {
background-color: var(--card-bg);
padding: 30px;
border-radius: var(--border-radius);
border-top: 4px solid var(--accent-color);
transition: var(--transition);
}

.mission-card:hover, .vision-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow);
}

.mission-icon, .vision-icon {
font-size: 40px;
color: var(--accent-color);
margin-bottom: 25px;
}

.mission-title, .vision-title {
font-size: 26px;
font-weight: 700;
margin-bottom: 20px;
}

/* Values Section */
.values {
padding: var(--section-padding);
background-color: var(--secondary-color);
}

.values-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 40px;
margin-top: 60px;
}

.value-card {
background-color: var(--card-bg);
padding: 40px 30px;
border-radius: var(--border-radius);
text-align: center;
transition: var(--transition);
border: 1px solid transparent;
}

.value-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow);
border-color: var(--accent-color);
}

.value-icon {
font-size: 48px;
color: var(--accent-color);
margin-bottom: 30px;
}

.value-title {
font-size: 22px;
font-weight: 600;
margin-bottom: 20px;
}

.value-description {
color: var(--text-secondary);
}

/* History Timeline */
.history {
padding: var(--section-padding);
}

.timeline {
position: relative;
max-width: 1120px;
margin: 60px auto 0;
}

.timeline::after {
content: '';
position: absolute;
width: 4px;
background-color: var(--accent-color);
top: 0;
bottom: 0;
left: 50%;
margin-left: -2px;
border-radius: 999px;
}

.timeline-item {
padding: 12px 46px 28px;
position: relative;
width: 50%;
box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
left: 0;
}

.timeline-item:nth-child(even) {
left: 50%;
}

.timeline-content {
height: auto;
min-height: 0;
padding: 76px 28px 28px;
background-color: var(--card-bg);
border-radius: var(--border-radius);
position: relative;
border: 1px solid var(--border-color);
display: flex;
flex-direction: column;
justify-content: flex-start;
text-align: center;
box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
overflow: hidden;
transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
}

.timeline-content:hover {
border-color: var(--accent-color);
transform: translateY(-4px);
box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

body.light-mode .timeline-content {
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

body.light-mode .timeline-content:hover {
box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.timeline-year {
font-weight: 700;
font-size: 24px;
color: var(--accent-color);
position: absolute;
top: 28px;
left: 28px;
right: 28px;
margin-bottom: 0;
}

.timeline-title {
font-size: 20px;
font-weight: 600;
margin-bottom: 15px;
}

.timeline-description {
color: var(--text-secondary);
line-height: 1.65;
margin-bottom: 0;
text-align: justify;
text-align-last: left;
hyphens: none;
word-break: normal;
overflow-wrap: normal;
}

.timeline-item:nth-child(odd)::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
right: -14px;
background-color: var(--accent-color);
border: 4px solid var(--primary-color);
top: 40px;
border-radius: 50%;
z-index: 1;
}

.timeline-item:nth-child(even)::after {
content: '';
position: absolute;
width: 20px;
height: 20px;
left: -14px;
background-color: var(--accent-color);
border: 4px solid var(--primary-color);
top: 40px;
border-radius: 50%;
z-index: 1;
}

/* Partners Section */
.partners {
padding: var(--section-padding);
}

.partners-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 40px;
margin-top: 60px;
align-items: center;
}

.partner-logo {
background-color: var(--card-bg);
height: 120px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--border-radius);
padding: 20px;
transition: var(--transition);
}

.partner-logo:hover {
transform: translateY(-5px);
box-shadow: var(--shadow);
border: 1px solid var(--accent-color);
}

.partner-logo i {
font-size: 48px;
color: var(--text-secondary);
}

/* Page Content */
.page-content {
padding: 80px 0;
}

/* Team member social */
.member-social {
display: flex;
justify-content: center;
gap: 15px;
padding-top: 20px;
}

.member-social a {
width: 36px;
height: 36px;
border-radius: 50%;
background-color: #2a2a2a;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}

.member-social a:hover {
background-color: var(--accent-color);
color: var(--primary-color);
}

/* Login Section - Страница входа */
.login-section {
padding: 80px 0;
min-height: calc(100vh - 600px);
}

.login-wrapper {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 60px;
max-width: 1100px;
margin: 0 auto;
align-items: start;
}

.login-form-container {
background-color: var(--card-bg);
padding: 50px;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
}

.login-header {
text-align: center;
margin-bottom: 40px;
}

.login-header i {
font-size: 60px;
color: var(--accent-color);
margin-bottom: 20px;
}

.login-header h2 {
font-size: 32px;
font-weight: 700;
margin-bottom: 10px;
color: var(--text-color);
}

.login-header p {
color: var(--text-secondary);
font-size: 16px;
}

.login-message {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 18px;
border-radius: 12px;
font-size: 14px;
font-weight: 500;
margin-bottom: 20px;
animation: messageSlide 0.3s ease;
}
.login-message::before {
font-family: "Font Awesome 6 Free";
font-weight: 900;
font-size: 16px;
flex-shrink: 0;
}
.login-message.error {
background: rgba(255, 61, 61, 0.1);
border: 1px solid rgba(255, 61, 61, 0.25);
color: var(--danger-color);
}
.login-message.error::before {
content: "\f06a";
}
.login-message.warning {
background: rgba(255, 145, 0, 0.1);
border: 1px solid rgba(255, 145, 0, 0.25);
color: var(--accent-color);
}
.login-message.warning::before {
content: "\f071";
}
.login-message.success {
background: rgba(0, 212, 106, 0.1);
border: 1px solid rgba(0, 212, 106, 0.25);
color: var(--success-color);
}
.login-message.success::before {
content: "\f058";
}
@keyframes messageSlide {
from { opacity: 0; transform: translateY(-8px); }
to { opacity: 1; transform: translateY(0); }
}

.login-form .form-group {
margin-bottom: 25px;
}

.login-form label {
display: block;
font-weight: 600;
margin-bottom: 10px;
color: var(--text-color);
}

.input-wrapper {
position: relative;
display: flex;
align-items: center;
}

.input-icon {
position: absolute;
left: 18px;
color: var(--text-secondary);
font-size: 16px;
pointer-events: none;
}

.input-wrapper .form-control {
padding-left: 50px;
padding-right: 50px;
}

.toggle-password {
position: absolute;
right: 18px;
background: none;
border: none;
color: var(--text-secondary);
font-size: 16px;
cursor: pointer;
transition: var(--transition);
padding: 5px;
}

.toggle-password:hover {
color: var(--accent-color);
}

.form-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-top: 30px;
}

.remember-me {
display: flex;
align-items: center;
gap: 10px;
}

.remember-me input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
accent-color: var(--accent-color);
}

.remember-me label {
font-size: 14px;
color: var(--text-secondary);
cursor: pointer;
user-select: none;
margin: 0;
}

.btn-login {
display: flex;
align-items: center;
gap: 10px;
padding: 14px 32px;
white-space: nowrap;
}

.btn-login i {
transition: transform 0.3s ease;
}

.btn-login:hover i {
transform: translateX(5px);
}

.login-extra {
margin-top: 30px;
padding-top: 30px;
border-top: 1px solid var(--border-color);
text-align: center;
}

.forgot-password {
color: var(--accent-color);
font-size: 14px;
text-decoration: none;
transition: var(--transition);
display: inline-block;
margin-bottom: 20px;
}

.forgot-password:hover {
text-decoration: underline;
}

.divider {
color: var(--text-secondary);
font-size: 14px;
margin: 20px 0;
position: relative;
}

.divider::before,
.divider::after {
content: '';
position: absolute;
top: 50%;
width: 40%;
height: 1px;
background-color: var(--border-color);
}

.divider::before {
left: 0;
}

.divider::after {
right: 0;
}

.register-link {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--text-color);
text-decoration: none;
padding: 12px 24px;
border: 2px solid var(--border-color);
border-radius: var(--border-radius);
transition: var(--transition);
font-weight: 500;
}

.register-link:hover {
border-color: var(--accent-color);
color: var(--accent-color);
transform: translateY(-2px);
}

/* Info Cards */
.login-info {
display: flex;
flex-direction: column;
gap: 25px;
}

.info-card {
background-color: var(--card-bg);
padding: 30px;
border-radius: var(--border-radius);
border-left: 4px solid var(--accent-color);
transition: var(--transition);
}

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

.info-card i {
font-size: 32px;
color: var(--accent-color);
margin-top: 25px;
margin-bottom: 15px;
}

.info-card h3 {
font-size: 18px;
font-weight: 600;
margin-bottom: 10px;
color: var(--text-color);
}

.info-card p {
font-size: 14px;
color: var(--text-secondary);
line-height: 1.6;
}

/* Profile Section */
/* ============================== */
/*  CABINET (Личный кабинет)      */
/* ============================== */

.cabinet-section {
    padding: 60px 0 80px;
}

.cabinet {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.cabinet-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 35px 40px 30px;
    border-bottom: 1px solid var(--border-color);
}

.cabinet-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cabinet-avatar > i {
    font-size: 36px;
    color: #fff;
}

.cabinet-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-avatar-upload {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.25s;
}

.cabinet-avatar-upload i {
    font-size: 20px;
    color: #fff;
}

.cabinet-avatar:hover .cabinet-avatar-upload {
    opacity: 1;
}

.cabinet-user {
    flex: 1;
    min-width: 0;
}

.cabinet-user h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.cabinet-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cabinet-tabs::-webkit-scrollbar {
    display: none;
}

.cabinet-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.cabinet-tab:hover {
    color: var(--text-color);
}

.cabinet-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.cabinet-tab[data-tab="logout"] {
    margin-left: auto;
    color: var(--danger-color);
    opacity: 0.7;
}

.cabinet-tab[data-tab="logout"]:hover {
    opacity: 1;
}

.cabinet-panel {
    display: none;
    padding: 30px 40px;
}

.cabinet-panel.active {
    display: block;
}

.cabinet-empty {
    text-align: center;
    padding: 60px 20px;
}

.cabinet-empty i {
    font-size: 56px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.cabinet-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.cabinet-empty p {
    color: var(--text-secondary);
    font-size: 15px;
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.settings-item-header > i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    font-size: 16px;
    flex-shrink: 0;
}

.settings-item-header > div {
    flex: 1;
    min-width: 0;
}

.settings-item-header span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.settings-item-header p {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.btn-edit {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-edit:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.settings-edit-form {
    margin-top: 16px;
    padding-left: 36px;
}

.settings-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-sm {
    padding: 8px 20px !important;
    font-size: 13px !important;
}

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

.support-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    text-decoration: none;
    transition: var(--transition);
}

a.support-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.support-card i {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 14px;
}

.support-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.support-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .cabinet-header {
        padding: 25px 20px 20px;
    }
    .cabinet-avatar {
        width: 70px;
        height: 70px;
    }
    .cabinet-avatar > i {
        font-size: 28px;
    }
    .cabinet-user h2 {
        font-size: 18px;
    }
    .cabinet-tabs {
        padding: 0 16px;
    }
    .cabinet-tab {
        padding: 14px 14px;
        font-size: 13px;
    }
    .cabinet-tab i {
        display: none;
    }
    .cabinet-panel {
        padding: 24px 20px;
    }
    .support-grid {
        grid-template-columns: 1fr;
    }
    .settings-edit-form {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .cabinet-header {
        gap: 16px;
    }
    .cabinet-avatar {
        width: 56px;
        height: 56px;
    }
    .cabinet-avatar > i {
        font-size: 22px;
    }
    .cabinet-user h2 {
        font-size: 16px;
    }
    .cabinet-tab {
        padding: 12px 10px;
        font-size: 12px;
    }
}

/* ============================== */
/*  CABINET (Личный кабинет)      */
/* ============================== */

.cabinet-section {
    padding: 60px 0 80px;
}

.cabinet {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.cabinet-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 35px 40px 30px;
    border-bottom: 1px solid var(--border-color);
}

.cabinet-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cabinet-avatar > i {
    font-size: 36px;
    color: #fff;
}

.cabinet-avatar > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-avatar-upload {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.25s;
}

.cabinet-avatar-upload i {
    font-size: 20px;
    color: #fff;
}

.cabinet-avatar:hover .cabinet-avatar-upload {
    opacity: 1;
}

.cabinet-user {
    flex: 1;
    min-width: 0;
}

.cabinet-user h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
}

.cabinet-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 0 40px;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cabinet-tabs::-webkit-scrollbar {
    display: none;
}

.cabinet-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.cabinet-tab:hover {
    color: var(--text-color);
}

.cabinet-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.cabinet-tab[data-tab="logout"] {
    margin-left: auto;
    color: var(--danger-color);
    opacity: 0.7;
}

.cabinet-tab[data-tab="logout"]:hover {
    opacity: 1;
}

.cabinet-panel {
    display: none;
    padding: 30px 40px;
}

.cabinet-panel.active {
    display: block;
}

.cabinet-empty {
    text-align: center;
    padding: 60px 20px;
}

.cabinet-empty i {
    font-size: 56px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.cabinet-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.cabinet-empty p {
    color: var(--text-secondary);
    font-size: 15px;
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.settings-item-header > i {
    width: 20px;
    text-align: center;
    color: var(--accent-color);
    font-size: 16px;
    flex-shrink: 0;
}

.settings-item-header > div {
    flex: 1;
    min-width: 0;
}

.settings-item-header span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.settings-item-header p {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.btn-edit {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-edit:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.settings-edit-form {
    margin-top: 16px;
    padding-left: 36px;
}

.settings-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-sm {
    padding: 8px 20px !important;
    font-size: 13px !important;
}

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

.support-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px 24px;
    text-decoration: none;
    transition: var(--transition);
}

a.support-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.support-card i {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 14px;
}

.support-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.support-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .cabinet-header { padding: 25px 20px 20px; }
    .cabinet-avatar { width: 70px; height: 70px; }
    .cabinet-avatar > i { font-size: 28px; }
    .cabinet-user h2 { font-size: 18px; }
    .cabinet-tabs { padding: 0 16px; }
    .cabinet-tab { padding: 14px 14px; font-size: 13px; }
    .cabinet-tab i { display: none; }
    .cabinet-panel { padding: 24px 20px; }
    .support-grid { grid-template-columns: 1fr; }
    .settings-edit-form { padding-left: 0; }
}

@media (max-width: 480px) {
    .cabinet-header { gap: 16px; }
    .cabinet-avatar { width: 56px; height: 56px; }
    .cabinet-avatar > i { font-size: 22px; }
    .cabinet-user h2 { font-size: 16px; }
    .cabinet-tab { padding: 12px 10px; font-size: 12px; }
}

.profile-section {
padding: 60px 0 80px;
}

.profile-card {
background-color: var(--card-bg);
border-radius: var(--border-radius);
border: 1px solid var(--border-color);
overflow: hidden;
max-width: 700px;
margin: 0 auto;
}

.profile-header {
display: flex;
align-items: center;
gap: 20px;
padding: 35px 35px 30px;
border-bottom: 1px solid var(--border-color);
flex-wrap: wrap;
}

.profile-avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
display: flex;
align-items: center;
justify-content: center;
font-size: 26px;
font-weight: 700;
color: #fff;
flex-shrink: 0;
}

.profile-name {
flex: 1;
min-width: 0;
}

.profile-name h2 {
font-size: 22px;
font-weight: 700;
color: var(--text-color);
margin-bottom: 6px;
}

.profile-badge {
display: inline-block;
font-size: 12px;
font-weight: 600;
padding: 4px 12px;
border-radius: 20px;
background: rgba(0, 212, 106, 0.12);
color: var(--success-color);
}

.profile-badge.badge-company {
background: rgba(255, 145, 0, 0.12);
color: var(--accent-color);
}

.btn-logout {
margin-left: auto;
font-size: 14px;
padding: 10px 20px;
}

.profile-fields {
padding: 10px 0;
}

.profile-field {
display: flex;
align-items: center;
gap: 16px;
padding: 18px 35px;
transition: background 0.2s;
}

.profile-field:hover {
background: rgba(255, 255, 255, 0.03);
}

body.light-mode .profile-field:hover {
background: rgba(0, 0, 0, 0.03);
}

.profile-field > i {
width: 20px;
text-align: center;
color: var(--accent-color);
font-size: 16px;
flex-shrink: 0;
}

.profile-field > div {
flex: 1;
min-width: 0;
}

.profile-field span {
display: block;
font-size: 12px;
color: var(--text-secondary);
margin-bottom: 3px;
}

.profile-field p {
font-size: 15px;
color: var(--text-color);
font-weight: 500;
margin: 0;
}

.btn-change-password {
margin-left: auto;
background: none;
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
font-size: 13px;
font-family: inherit;
display: flex;
align-items: center;
gap: 6px;
transition: var(--transition);
}

.btn-change-password:hover {
border-color: var(--accent-color);
color: var(--accent-color);
}

/* Modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: opacity 0.25s, visibility 0.25s;
padding: 20px;
}

.modal-overlay.active {
opacity: 1;
visibility: visible;
}

.modal-content {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
width: 100%;
max-width: 440px;
padding: 30px;
transform: translateY(20px) scale(0.97);
transition: transform 0.25s;
}

.modal-overlay.active .modal-content {
transform: translateY(0) scale(1);
}

.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
}

.modal-header h3 {
font-size: 20px;
font-weight: 700;
color: var(--text-color);
display: flex;
align-items: center;
gap: 10px;
}

.modal-header h3 i {
color: var(--accent-color);
}

.modal-close {
background: none;
border: none;
color: var(--text-secondary);
font-size: 28px;
cursor: pointer;
line-height: 1;
padding: 0 4px;
transition: color 0.2s;
}

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

.modal-content .form-group {
margin-bottom: 20px;
}

.modal-content label {
display: block;
font-weight: 600;
font-size: 14px;
margin-bottom: 8px;
color: var(--text-color);
}

@media (max-width: 600px) {
    .profile-header {
        padding: 25px 20px 20px;
    }
    .profile-field {
        padding: 15px 20px;
    }
    .profile-name h2 {
        font-size: 18px;
    }
    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    .btn-logout {
        width: 100%;
        justify-content: center;
    }
    .btn-change-password {
        margin-top: 8px;
        margin-left: 36px;
    }
    .profile-field {
        flex-wrap: wrap;
    }
    .modal-content {
        padding: 24px 20px;
    }
}

/* Animation for page transitions */
.fade-in {
animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* Page Transitions */
main {
animation: pageFadeIn 0.3s ease forwards;
}

@keyframes pageFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

.fade-out {
animation: pageFadeOut 0.28s ease forwards;
}

@keyframes pageFadeOut {
from { opacity: 1; }
to { opacity: 0; }
}

/* Loading overlay for page transitions */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--primary-color);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.active {
opacity: 1;
visibility: visible;
}

.loading-spinner {
width: 50px;
height: 50px;
border: 3px solid rgba(0, 195, 255, 0.3);
border-radius: 50%;
border-top-color: var(--accent-color);
animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
to {
transform: rotate(360deg);
}
}

/* Smooth scrolling for anchor links */
html {
scroll-behavior: smooth;
}

/* Prevent scroll during transition */
body.no-scroll {
overflow: hidden;
}


/* Забыли пароль внутри формы */
.forgot-password-inline {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password-inline:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Увеличенная кнопка регистрации */
.register-link-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    padding: 16px 32px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    background-color: transparent;
}

.register-link-large:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.register-link-large i {
    font-size: 18px;
}

/* Registration Page Styles */
.registration-section {
    padding: 80px 0;
    min-height: calc(100vh - 600px);
}

.registration-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.registration-form-container {
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.registration-header {
    text-align: center;
    margin-bottom: 40px;
}

.registration-header i {
    font-size: 60px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.registration-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.registration-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
    background-color: var(--secondary-color);
    padding: 6px;
    border-radius: var(--border-radius);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.registration-form label .optional {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 13px;
}

.btn-register {
    width: 100%;
    padding: 16px 32px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    text-align: center;
}

.btn-register:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-register i {
    transition: transform 0.3s ease;
}

.btn-register:hover i {
    transform: translateX(5px);
}

.registration-extra {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.login-link {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-link a:hover {
    text-decoration: underline;
}

/* Responsive для registration */
@media (max-width: 768px) {
    .registration-form-container {
        padding: 35px 25px;
    }

    .registration-header h2 {
        font-size: 28px;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .registration-section {
        padding: 60px 0;
    }

    .registration-form-container {
        padding: 30px 20px;
    }

    .registration-header i {
        font-size: 48px;
    }

    .registration-header h2 {
        font-size: 24px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
    }

    .tab-btn i {
        font-size: 14px;
    }
}

/* =======================================================
   HEADER — nav collapse at 1080px
   ======================================================= */
@media (max-width: 1080px) {
    .header { padding: 15px 0; }
    .header-right { gap: 8px; }
    .nav {
        position: fixed; top: 70px; left: 0; width: 100%;
        background-color: var(--primary-color); padding: 20px;
        box-shadow: var(--shadow); transform: translateY(-100%);
        opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
    }
    .nav.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; }
    .nav-item { margin: 0 0 20px 0; }
    .nav-item.profile-desktop { display: none; }
    .nav-item.profile-mobile { display: block; order: -1; }
    .theme-toggle { order: 1; margin-left: auto; margin-right: 0; width: 44px; height: 44px; flex-shrink: 0; }
    .cart-widget { order: 2; margin-left: 0 !important; flex-shrink: 0; }
    .cart-toggle { width: 44px; height: 44px; }
    .mobile-menu-btn { display: block; order: 3; margin-left: 0; flex-shrink: 0; }
    .theme-icon { font-size: 17px; }
}

/* Footer — tablet */
@media (max-width: 1024px) {
    .footer { padding: 40px 0 28px; }
    .footer-top { flex-direction: column; align-items: flex-start; gap: 32px; }
    .footer-bottom { grid-template-columns: 1fr; gap: 20px; align-items: start; }
    .footer-legal { text-align: left; max-width: none; }
    .footer-legal > .footer-legal-line:first-child { white-space: normal; }
    .footer-legal-ids,
    .footer-legal-contacts { justify-content: flex-start; }
}

/* Footer — mobile */
@media (max-width: 600px) {
    .footer-legal-ids,
    .footer-legal-contacts { column-gap: 10px; }
}

/* Small phone tightening */
@media (max-width: 480px) {
    .header-right { gap: 6px; }
    .theme-toggle { width: 38px; height: 38px; }
    .cart-toggle { width: 38px; height: 38px; }
    .theme-icon { font-size: 15px; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
.hero-title {
font-size: 54px;
}

.support-strip {
grid-template-columns: 1fr;
gap: 24px;
text-align: center;
}

.support-strip__logo {
min-height: auto;
}

.support-strip__partner {
gap: 18px;
min-height: auto;
}

.support-strip__text {
max-width: 680px;
margin: 0 auto;
}

.section-title {
font-size: 36px;
}

.about-content {
gap: 40px;
}

.mission-vision {
grid-template-columns: 1fr;
}

.timeline::after {
left: 31px;
margin-left: 0;
}

.timeline {
max-width: 760px;
}

.timeline-item {
width: 100%;
padding: 10px 25px 22px 70px;
}

.timeline-item:nth-child(even) {
left: 0;
}

.timeline-content {
min-height: 0;
}

.timeline-item:nth-child(odd)::after,
.timeline-item:nth-child(even)::after {
left: 17px;
right: auto;
}
}

@media (max-width: 968px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .login-form-container {
        order: 1;
    }

    .login-info {
        order: 2;
    }
}

@media (max-width: 768px) {
.services-about-features {
grid-template-columns: 1fr;
gap: 20px;
margin-top: 30px;
}

.services-feature-item {
width: 100%;
padding: 25px 20px;
}

.section-about {
display: flex;
flex-direction: column;
gap: 40px;
}

.feature-item {
width: 100%;
padding: 30px 20px;
min-height: auto;
}

.about-features {
grid-template-columns: 1fr;
gap: 20px;
width: 100%;
margin-top: 30px;
margin-left: 0;
}

.supporters-grid {
grid-template-columns: 1fr;
gap: 20px;
}

.partners-title {
font-size: 28px;
}

.support-strip {
padding: 34px 28px;
border-radius: var(--border-radius);
}

.support-strip__logo-img--fasie {
max-width: min(100%, 320px);
max-height: 130px;
}

.support-strip__logo-img--platform {
max-width: min(100%, 270px);
max-height: 150px;
}

.hero {
padding: 150px 0 80px;
}

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

.hero-btns {
flex-direction: column;
gap: 15px;
}

.hero-stats {
flex-direction: column;
gap: 30px;
}

.about-content,
.contact-content {
grid-template-columns: 1fr;
}

.about-features {
grid-template-columns: 1fr;
}

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

.section-title {
font-size: 32px;
}

.page-header {
padding: 140px 0 60px;
}

.values-grid {
grid-template-columns: repeat(2, 1fr);
}

.team-grid {
grid-template-columns: repeat(2, 1fr);
}

.login-form-container {
padding: 35px 25px;
}

.login-header h2 {
font-size: 28px;
}

.form-footer {
flex-direction: column;
align-items: stretch;
}

.remember-me {
justify-content: center;
}

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

.login-info {
grid-template-columns: 1fr;
}
}

@media (max-width: 576px) {
.services-about-features {
grid-template-columns: 1fr;
gap: 15px;
}

.services-feature-item {
padding: 20px 15px;
}

.partners-section {
padding: 60px 0;
}

.partners-header {
margin-bottom: 32px;
}

.support-strip {
gap: 22px;
padding: 28px 20px;
}

.support-strip__text {
font-size: 15px;
line-height: 1.6;
}

.support-strip__logo-img--fasie {
max-width: min(100%, 270px);
max-height: 112px;
}

.support-strip__logo-img--platform {
max-width: min(100%, 230px);
max-height: 130px;
}

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

.partner-logo-box--icon {
font-size: 44px;
}

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

.section-title {
font-size: 28px;
}

.section-subtitle {
font-size: 16px;
}

.section-subtitle-about {
font-size: 16px;
}

.section-subtitle-products {
font-size: 16px;
}

.timeline {
margin-top: 36px;
}

.timeline::after {
left: 24px;
}

.timeline-item {
padding-left: 56px;
padding-right: 0;
}

.timeline-content {
height: auto;
min-height: 0;
padding: 68px 20px 24px;
}

.timeline-item:nth-child(odd)::after,
.timeline-item:nth-child(even)::after {
left: 10px;
}

.timeline-year {
font-size: 20px;
top: 24px;
left: 20px;
right: 20px;
}

.contact-form {
padding: 25px;
}

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

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

.mission-card, .vision-card {
padding: 30px 20px;
}

.theme-toggle {
width: 40px;
height: 40px;
margin-left: auto;
}

.theme-icon {
font-size: 16px;
}

.login-section {
padding: 60px 0;
}

.login-form-container {
padding: 30px 20px;
}

.login-header i {
font-size: 48px;
}

.login-header h2 {
font-size: 24px;
}

.input-wrapper .form-control {
font-size: 14px;
}
}


/* ===== Validation Styles ===== */
.form-control.is-invalid {
    border-color: var(--danger-color) !important;
    background-color: rgba(255, 61, 61, 0.05);
}
.form-control.is-valid {
    border-color: var(--success-color) !important;
}
.field-error {
    display: block;
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}
.password-hint {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 10px;
    display: none;
    font-size: 13px;
}
.password-hint.visible {
    display: block;
}
.password-hint strong {
    color: var(--text-color);
    font-size: 13px;
}
.password-hint ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}
.password-hint li {
    padding: 3px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.password-hint li::before {
    content: '✗';
    color: var(--danger-color);
    font-weight: 700;
    font-size: 12px;
    width: 14px;
    flex-shrink: 0;
}
.password-hint li.ok::before {
    content: '✓';
    color: var(--success-color);
}
.password-hint li.ok {
    color: var(--text-color);
}
/* Cart widget */
.cart-widget { position: relative; margin-left: 12px; flex-shrink: 0; }
.cart-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-color); display: inline-flex; align-items: center; justify-content: center; color: var(--text-color); text-decoration: none; background: transparent; position: relative; transition: var(--transition); }
.cart-toggle:hover { border-color: var(--accent-color); transform: scale(1.05); }
.cart-count { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; border-radius: 10px; display: none; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--accent-color); color: #111; padding: 0 5px; }
.cart-preview { position: absolute; top: calc(100% + 10px); right: 0; width: 320px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 16px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease; z-index: 20; box-shadow: var(--shadow); }
.cart-widget:hover .cart-preview { opacity: 1; visibility: visible; transform: translateY(0); }
.cart-preview h4 { margin-bottom: 12px; font-size: 15px; }
.cart-preview-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.cart-preview-item:last-child { border-bottom: none; }
.cart-preview-total { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--border-color); font-weight: 700; font-size: 14px; }
.cart-preview-actions { display: flex; gap: 8px; }
.cart-preview-actions .btn { flex: 1; padding: 8px 10px; font-size: 12px; text-align: center; }
.cart-empty { color: var(--text-secondary); font-size: 14px; padding: 8px 0; }

/* Product price + cart button alignment */
.product-price { margin-top: auto; padding-top: 10px; font-size: 18px; font-weight: 700; color: var(--accent-color); text-align: left; }
.add-cart-btn { width: 100%; margin: 10px 0 0; margin-top: 10px !important; }
.add-cart-btn.added { border-color: var(--success-color); color: var(--success-color); }

/* Checkout */
.checkout-section { padding: 42px 0 80px; }
.checkout-layout { display: grid; grid-template-columns: 1.8fr 1fr; gap: 24px; align-items: start; }
.checkout-items { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 24px; }
.checkout-summary { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 24px; position: sticky; top: 110px; }
.checkout-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-color); padding: 16px 0; }
.checkout-item:last-child { border-bottom: 0; }
.checkout-item h4 { margin-bottom: 6px; }
.checkout-item p { color: var(--text-secondary); font-size: 14px; }
.checkout-item-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.checkout-item-controls button { border: 1px solid var(--border-color); background: transparent; color: var(--text-color); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.checkout-item-controls button:hover { transform: translateY(-2px); border-color: var(--accent-color); box-shadow: 0 6px 16px rgba(244, 122, 17, 0.24); }
.checkout-item-controls button:active { transform: translateY(0); }
.checkout-item-controls .remove-btn { margin-left: 8px; color: var(--danger-color); border-color: rgba(255, 61, 61, 0.3); }
.checkout-item-controls .remove-btn:hover { border-color: var(--danger-color); box-shadow: 0 6px 16px rgba(255, 61, 61, 0.2); }
.checkout-summary h3 { margin-bottom: 18px; font-size: 18px; }
.checkout-line { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--text-secondary); font-size: 15px; }
.checkout-line.total { color: var(--text-color); font-size: 17px; font-weight: 700; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--border-color); }
.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 16px 0; }
.promo-row input { border: 1px solid var(--border-color); border-radius: 10px; background: transparent; color: var(--text-color); padding: 10px 14px; font-family: 'Inter', sans-serif; font-size: 14px; transition: border-color .2s; }
.promo-row input:focus { outline: none; border-color: var(--accent-color); }
#createOrder { width: 100%; margin-top: 6px; }

/* Orders in profile */
.orders-list { display: grid; gap: 14px; }
.order-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-status { color: #111; background: var(--accent-color); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.order-meta { color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.order-items { margin: 0; padding-left: 18px; color: var(--text-secondary); }
.order-total { margin-top: 10px; font-weight: 700; }

/* Empty cart state */
.cabinet-empty { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.cabinet-empty i { font-size: 48px; color: var(--border-color); margin-bottom: 16px; }
.cabinet-empty h3 { color: var(--text-color); margin-bottom: 8px; }

body.light-mode .cart-toggle { border-color: var(--border-color); background: transparent; }
body.light-mode .cart-preview { background: var(--card-bg); border-color: var(--border-color); }
@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
@media (max-width: 767px) {
  .cart-widget { margin-left: 0; }
  .cart-preview { width: 280px; right: -60px; }
}

/* ================================
   Profile boot loader (без мерцания)
   ================================ */
.profile-boot-loader{
    position: fixed;
    inset: 0;
    display: flex;              /* показываем по умолчанию, JS скрывает */
    align-items: center;
    justify-content: center;
    z-index: 3000;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.light-mode .profile-boot-loader{
    background: rgba(255, 255, 255, 0.65);
}

.profile-loader-ring{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid rgba(255, 145, 0, 0.20);
    border-top-color: var(--accent-color);
    border-right-color: rgba(255, 145, 0, 0.55);
    box-shadow: 0 0 0 8px rgba(255, 145, 0, 0.06);
    animation: navielSpin 0.85s linear infinite;
}

@keyframes navielSpin{
    to { transform: rotate(360deg); }
}
/* =======================================================
   NEWS — Homepage block
   ======================================================= */
.news-home {
    padding: var(--section-padding);
    background-color: var(--secondary-color);
}

.news-home__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 20px;
}

.news-home__title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
}

.news-home__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-top: 14px;
    transition: var(--transition);
}
.news-home__link:hover { color: var(--accent-color); }
.news-home__link i { font-size: 12px; transition: transform .2s; }
.news-home__link:hover i { transform: translateX(4px); }

.news-home__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.news-home__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Featured (big) card */
.news-home-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.news-home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.news-home-card--featured {
    grid-column: 1;
    grid-row: 1 / 3;
}

.news-home-card__image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.news-home-card--featured .news-home-card__image {
    height: 100%;
    min-height: 360px;
}
.news-home-card:not(.news-home-card--featured) .news-home-card__image {
    height: 200px;
}

.news-home-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.news-home-card:hover .news-home-card__image img {
    transform: scale(1.05);
}

/* Overlay gradient for featured card */
.news-home-card--featured .news-home-card__image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    pointer-events: none;
}

.news-home-card--featured .news-home-card__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px;
    z-index: 2;
}
.news-home-card--featured { position: relative; }

.news-home-card--featured .news-home-card__date {
    color: rgba(255,255,255,.7);
}
.news-home-card--featured .news-home-card__title {
    font-size: 22px;
    color: #fff;
}

/* Regular (small) card */
.news-home-card:not(.news-home-card--featured) .news-home-card__body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-home-card__date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.news-home-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
}

/* =======================================================
   NEWS — Listing page /news
   ======================================================= */
.news-listing-section {
    padding: 0 0 100px;
}

.news-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 48px;
    border-bottom: 2px solid var(--border-color);
}

.news-tab {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color .25s;
}
.news-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform .25s;
}
.news-tab:hover { color: var(--text-color); }
.news-tab.active { color: var(--accent-color); }
.news-tab.active::after { transform: scaleX(1); }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}
.news-loading i { margin-right: 8px; }

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Horizontal card on /news page */
.news-card-horizontal {
    display: grid;
    grid-template-columns: 360px 1fr;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.news-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,.2);
    border-color: var(--accent-color);
}

.news-card-image {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}
.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.news-card-horizontal:hover .news-card-image img {
    transform: scale(1.05);
}
.news-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    font-size: 48px;
    color: var(--border-color);
}

.news-card-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card-date {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-color);
    margin-bottom: 12px;
}

.news-card-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-readtime {
    font-size: 13px;
    color: var(--text-secondary);
}
.news-card-readtime i { margin-right: 4px; }

.news-load-more {
    text-align: center;
    margin-top: 40px;
}

/* =======================================================
   NEWS — Article page
   ======================================================= */
.article-hero {
    position: relative;
    width: 100%;
    height: 420px;
    background-color: var(--secondary-color);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.3) 100%);
}

.article-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 0;
}

.breadcrumb--light a,
.breadcrumb--light span {
    color: rgba(255,255,255,.85);
}
.breadcrumb--light a:hover { color: #fff; }
.breadcrumb--light i { color: rgba(255,255,255,.4); }

.article-section {
    padding: 50px 0 60px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-category {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
}
.article-category--company {
    background: rgba(255,145,0,.15);
    color: var(--accent-color);
}
.article-category--company:hover { background: rgba(255,145,0,.3); }
.article-category--industry {
    background: rgba(0,212,106,.15);
    color: var(--success-color);
}
.article-category--industry:hover { background: rgba(0,212,106,.3); }

.article-date,
.article-readtime {
    font-size: 14px;
    color: var(--text-secondary);
}
.article-date i,
.article-readtime i { margin-right: 5px; }

.article-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-color);
    margin-bottom: 24px;
}

.article-share {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.article-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.article-share-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Article rich text content */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-color);
}
.article-content p {
    margin-bottom: 20px;
}
.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    color: var(--text-color);
}
.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--card-bg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}
.article-content img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

/* =======================================================
   RELATED articles block
   ======================================================= */
.related-section {
    padding: 60px 0 100px;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 36px;
    color: var(--text-color);
}

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

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    border-color: var(--accent-color);
}

.related-card__image {
    height: 180px;
    overflow: hidden;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.related-card:hover .related-card__image img {
    transform: scale(1.06);
}
.related-card__image i {
    font-size: 40px;
    color: var(--border-color);
}

.related-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card__date {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.related-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card__readtime {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: auto;
}

/* =======================================================
   NEWS — Responsive
   ======================================================= */
@media (max-width: 1024px) {
    .news-home__grid {
        grid-template-columns: 1fr;
    }
    .news-home-card--featured {
        grid-column: 1;
        grid-row: auto;
    }
    .news-home-card--featured .news-home-card__image {
        min-height: 280px;
    }
    .news-card-horizontal {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 768px) {
    .news-home__title { font-size: 28px; }
    .news-home__header { flex-direction: column; gap: 8px; }
    .news-home__link { margin-top: 0; }

    .news-home__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .news-home-card--featured .news-home-card__image {
        min-height: 220px;
    }
    .news-home-card--featured .news-home-card__title { font-size: 18px; }
    .news-home-card--featured .news-home-card__body { padding: 20px; }

    .news-card-horizontal {
        grid-template-columns: 1fr;
    }
    .news-card-image {
        min-height: 200px;
        max-height: 220px;
    }
    .news-card-body {
        padding: 20px;
    }
    .news-card-title { font-size: 18px; }

    .news-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .news-tab {
        padding: 14px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .article-hero { height: 280px; }
    .article-title { font-size: 26px; }
    .article-content { font-size: 16px; }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .news-home__title { font-size: 24px; }
    .article-hero { height: 220px; }
    .article-title { font-size: 22px; }
    .article-meta { gap: 10px; }
    .article-body { padding: 0 4px; }
}
/* === TBD Product Cards === */
.product-card--tbd {
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.product-card--tbd > *:not(.product-tbd-overlay) {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    user-select: none;
}

.product-tbd-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.product-tbd-overlay span {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-primary, #fff);
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    opacity: 0.85;
}

/* Header logo image */
.logo {
    line-height: 0;
}

.logo-image {
    display: block;
    height: 34px;
    width: auto;
    max-width: min(48vw, 220px);
    filter: brightness(0) invert(1);
}

body.light-mode .logo-image {
    filter: none;
}

@media (max-width: 768px) {
    .logo-image {
        height: 28px;
        max-width: 160px;
    }
}
