/* ========================================
   Сброс и базовые настройки
   ======================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #1a2332; }
::-webkit-scrollbar-thumb { background: #f59e0b; border-radius: 5px; }
::selection { background: #f59e0b; color: #1a2332; }

/* ========================================
   Шапка
   ======================================== */
.header {
    background: #1a2332;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

.logo:hover .logo-img { opacity: 0.85; }

.contacts-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.contacts-top a { color: #fff; text-decoration: none; font-weight: 500; transition: color 0.3s; }

.contacts-top a:hover { color: #f59e0b; }

/* Ссылка MAX в шапке */
.max-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}

.max-link:hover {
    background: #f59e0b !important;
    color: #1a2332 !important;
    border-color: #f59e0b;
}

/* Иконка MAX */
.max-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.max-icon.max-icon-lg {
    width: 24px;
    height: 24px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav a { color: #ccc; text-decoration: none; font-weight: 500; transition: color 0.3s; }

.nav a:hover { color: #f59e0b; }

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    background:
        linear-gradient(rgba(26, 35, 50, 0.78), rgba(26, 35, 50, 0.78)),
        url('hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 130px 0;
    text-align: center;
}

.hero .container > * { animation: fadeUp 0.8s ease both; }
.hero .container > :nth-child(2) { animation-delay: 0.15s; }
.hero .container > :nth-child(3) { animation-delay: 0.3s; }

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* ========================================
   Кнопки
   ======================================== */
.btn-primary {
    display: inline-block;
    background: #f59e0b;
    color: #1a2332;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
    display: inline-block;
    padding: 13px 38px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover { background: #fff; color: #1a2332; }

/* ========================================
   Бегущая строка брендов (бесшовная)
   ======================================== */
.brands {
    background: #fff;
    padding: 28px 0;
    overflow: hidden;
    border-bottom: 1px solid #eef2f7;
}

.brands-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.brands-group {
    display: flex;
    flex-shrink: 0;
}

.brands:hover .brands-track { animation-play-state: paused; }

.brand-item {
    margin-right: 70px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #b0bac6;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: color 0.3s;
}

.brand-item:hover { color: #f59e0b; }

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   Секции + акцент под заголовками
   ======================================== */
section { padding: 80px 0; }

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1a2332;
    position: relative;
    padding-bottom: 18px;
}

section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 70px;
    height: 4px;
    background: #f59e0b;
    border-radius: 2px;
}

/* Анимация появления */
.fade-in { opacity: 0; }
.fade-in.visible { opacity: 1; animation: fadeUp 0.7s ease; }

/* ========================================
   О компании
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p { margin-bottom: 15px; font-size: 1.1rem; color: #555; }

.about-text strong { color: #1a2332; }

.about-stats { display: flex; flex-direction: column; gap: 20px; }

.stat {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #f59e0b;
}

.stat-number { display: block; font-size: 2rem; font-weight: 700; color: #1a2332; }

.stat-label { color: #666; font-size: 0.9rem; }

/* ========================================
   Каталог с фото
   ======================================== */
.catalog { background: #f8fafc; }

.catalog-subtitle {
    text-align: center;
    max-width: 750px;
    margin: -30px auto 50px;
    color: #666;
    font-size: 1.1rem;
}

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

.catalog-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border-top: 4px solid #f59e0b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.catalog-img-wrap {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 18px;
}

.catalog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.catalog-item:hover .catalog-img { transform: scale(1.06); }

.catalog-item h3 { color: #1a2332; margin-bottom: 15px; font-size: 1.3rem; }

.catalog-item ul { list-style: none; }

.catalog-item li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 9px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.45;
}

.catalog-item li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: #f59e0b;
    font-weight: 700;
}

.catalog-cta { text-align: center; margin-top: 50px; }

/* ========================================
   Результаты клиентов
   ======================================== */
.results { background: #1a2332; }

.results h2 { color: #fff; }

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

.result-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    color: #fff;
    transition: transform 0.3s, border-color 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.5);
}

.result-industry {
    color: #f59e0b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.result-card h3 { margin-bottom: 8px; font-size: 1.25rem; }

.result-material { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; margin-bottom: 18px; }

.result-compare {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    font-size: 1rem;
}

.result-was { color: rgba(255, 255, 255, 0.45); text-decoration: line-through; }

.result-arrow { color: #f59e0b; font-weight: 700; }

.result-now { font-weight: 700; }

.result-metrics { display: flex; gap: 30px; }

.result-metric b { display: block; font-size: 1.7rem; color: #f59e0b; }

.result-metric span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }

/* ========================================
   Преимущества
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eef2f7;
    border-bottom: 4px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.advantage:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-bottom-color: #f59e0b;
}

.advantage-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
}

.advantage h3 { color: #1a2332; margin-bottom: 10px; font-size: 1.2rem; }

.advantage p { color: #666; }

/* ========================================
   Отзывы
   ======================================== */
.reviews { background: #f8fafc; }

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

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.review-stars { color: #f59e0b; margin-bottom: 15px; letter-spacing: 3px; font-size: 1.1rem; }

.review-text { color: #555; font-size: 0.95rem; font-style: italic; margin-bottom: 20px; flex: 1; }

.review-author { display: flex; align-items: center; gap: 12px; }

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a2332;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.review-name { font-weight: 700; color: #1a2332; }

.review-company { font-size: 0.85rem; color: #666; }

/* ========================================
   SEO-текст
   ======================================== */
.seo-text { background: #fff; }

.seo-text p {
    color: #555;
    font-size: 1.05rem;
    max-width: 900px;
    margin: 0 auto 15px;
}

.seo-text h3 {
    color: #1a2332;
    font-size: 1.3rem;
    max-width: 900px;
    margin: 25px auto 12px;
}

/* ========================================
   Контакты
   ======================================== */
.contacts {
    background: linear-gradient(135deg, #1a2332 0%, #2d4a5c 100%);
    color: #fff;
}

.contacts h2 { color: #fff; }

.contacts-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 50px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.5);
}

.contact-card-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    background: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.contact-card-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
}

a.contact-card-value:hover { color: #f59e0b; }

.contacts-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contacts-text h3 { font-size: 1.7rem; margin-bottom: 15px; color: #fff; }

.contacts-text p { color: rgba(255, 255, 255, 0.8); font-size: 1.05rem; margin-bottom: 20px; }

.contacts-text-list { list-style: none; margin-bottom: 20px; }

.contacts-text-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.contacts-text-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #f59e0b;
    font-weight: 700;
}

/* Кнопка MAX в контактах */
.max-btn {
    background: #fff !important;
    color: #1a2332 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.max-btn:hover {
    background: #f59e0b !important;
    color: #1a2332 !important;
}

/* Карта 2ГИС — на всю ширину */
.map-wrap {
    margin-top: 60px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.map-wrap iframe {
    width: 100% !important;
    height: 420px !important;
    display: block;
    border: 0;
}

.map-wrap .dg-widget-link { display: none; }

.map-wrap > div[style*="width"] { max-width: 100%; }

/* ========================================
   Форма
   ======================================== */
.contact-form {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.contact-form h3 { margin-bottom: 20px; color: #1a2332; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea { height: 120px; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: #f59e0b; }

.contact-form .btn-primary { width: 100%; }

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.consent input { width: auto; margin: 3px 0 0; accent-color: #f59e0b; }

.consent a { color: #2d4a5c; }

.consent a:hover { color: #f59e0b; }

/* ========================================
   Футер
   ======================================== */
.footer { background: #141c29; color: #ccc; padding: 60px 0 25px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-logo { height: 44px; width: auto; margin-bottom: 15px; }

.footer-col p { color: #9aa5b1; font-size: 0.95rem; margin-bottom: 10px; }

.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 1.05rem; }

.footer-col a { display: block; color: #9aa5b1; text-decoration: none; margin-bottom: 10px; transition: color 0.3s; }

.footer-col a:hover { color: #f59e0b; }

/* Ссылка MAX в футере */
.footer-max-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    color: #f59e0b !important;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.footer-max-link:hover {
    background: #f59e0b !important;
    color: #1a2332 !important;
    border-color: #f59e0b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom a { color: #9aa5b1; }

.footer-bottom a:hover { color: #f59e0b; }

.footer-note { font-size: 0.85rem; margin-top: 10px; opacity: 0.7; }

/* ========================================
   Кнопка "Наверх"
   ======================================== */
#scrollTop {
    position: fixed;
    right: 25px;
    bottom: 95px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f59e0b;
    color: #1a2332;
    font-size: 1.3rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#scrollTop.show { opacity: 1; visibility: visible; transform: none; }

#scrollTop:hover { background: #d97706; }

/* ========================================
   Страница политики конфиденциальности
   ======================================== */
.policy { padding: 60px 0; }

.policy h1 { color: #1a2332; margin-bottom: 25px; }

.policy h2 {
    text-align: left;
    font-size: 1.3rem;
    margin: 30px 0 12px;
    padding-bottom: 0;
}

.policy h2::after { display: none; }

.policy p, .policy li { color: #555; margin-bottom: 10px; }

.policy ul { padding-left: 22px; }

.policy a { color: #2d4a5c; }

/* ========================================
   Доступность
   ======================================== */
.visually-hidden,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Адаптивность
   ======================================== */
@media (max-width: 992px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .results-grid, .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 70px 0; background-attachment: scroll; }
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    section { padding: 50px 0; }
    section h2 { font-size: 1.6rem; margin-bottom: 30px; }
    .catalog-subtitle, .contacts-subtitle { margin: -15px auto 30px; }
    .logo-img { height: 38px; }
    .about-content, .contacts-bottom, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { text-align: center; }
    .footer-logo { margin: 0 auto 15px; }
    .contacts-text { text-align: center; }
    .contacts-text-list { display: inline-block; text-align: left; }
    .header-top { flex-direction: column; text-align: center; }
    .contacts-top { justify-content: center; gap: 10px; }
    .nav { justify-content: center; gap: 15px; }
    .catalog-grid, .advantages-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .contact-cards { grid-template-columns: 1fr; }
    .contacts-top { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 1.5rem; }
    .btn-primary, .btn-secondary { padding: 12px 30px; font-size: 1rem; }
    .about-stats { flex-direction: row; flex-wrap: wrap; }
    .stat { flex: 1; min-width: 120px; }
    .stat-number { font-size: 1.5rem; }
}
