/* ===== Ankora — общий стиль сайта (дизайн-язык в духе pm.ru: бирюзовый акцент, светлый фон, скруглённые карточки) ===== */

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

:root {
    --black: #202632;
    --dark: #202632;
    --gray-dark: #4a4a4a;
    --gray: #8a8a8a;
    --gray-light: #e5e5e5;
    --bg-light: #f5f7f8;
    --white: #ffffff;
    --accent: #12a3a0;
    --accent-dark: #0d8481;
    --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

section { padding: 100px 0; }

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 60px;
    max-width: 700px;
    font-weight: 400;
    line-height: 1.8;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 42px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    border: none;
}

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

.btn-secondary { background: rgba(255,255,255,0.12); color: var(--white); border: 1.5px solid rgba(255,255,255,0.7); margin-left: 16px; }
.btn-secondary:hover { background: var(--white); color: var(--dark); }

/* ===== Top bar ===== */
.top-bar { background: var(--dark); color: var(--white); padding: 10px 0; font-size: 13px; }
.top-bar-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar-left { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.top-bar a { color: var(--white); text-decoration: none; transition: color 0.3s; }
.top-bar a:hover { color: var(--accent); }
.top-bar-right { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.callback-btn {
    background: var(--accent); color: var(--white); padding: 8px 18px; border: none;
    cursor: pointer; font-weight: 600; font-size: 12px;
    border-radius: 999px; transition: all 0.3s; font-family: inherit;
}
.callback-btn:hover { background: var(--accent-dark); }

/* ===== Header ===== */
header { background: var(--white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 24px; font-weight: 800; color: var(--dark); text-decoration: none; line-height: 1.2; }
.logo span { color: var(--accent); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--gray); }

nav ul { display: flex; list-style: none; gap: 32px; }
nav a { text-decoration: none; color: var(--dark); font-weight: 500; font-size: 15px; transition: color 0.3s; position: relative; }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
nav a:hover { color: var(--accent); }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--accent); }

.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px;
    background: none; border: none;
}
.mobile-menu-btn span { width: 25px; height: 2px; background: var(--dark); transition: all 0.3s; }
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero (главная) ===== */
.hero { margin-top: 0; height: calc(100vh - 80px); min-height: 520px; position: relative; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out;
    display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(16,30,36,0.72) 0%, rgba(16,30,36,0.3) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 0 40px; color: var(--white); }
.hero-content h1 { font-size: 56px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero-content p { font-size: 18px; font-weight: 400; max-width: 600px; margin-bottom: 40px; line-height: 1.6; }

.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; padding: 0; }
.hero-dot.active { background: var(--accent); }

/* ===== Простая шапка внутренних страниц ===== */
.page-header { padding: 100px 0; color: var(--white); text-align: center; position: relative; }
.page-header h1 { font-size: 48px; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; }
.page-header p { font-size: 17px; font-weight: 400; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.page-header .hero-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(16,30,36,0.6), rgba(16,30,36,0.6)); }

/* ===== Плейсхолдеры вместо фото =====
   Пока нет реальных фото — показываем аккуратную заглушку.
   Когда появятся фото: добавьте на этот же div атрибут
   style="background-image:url('images/имя-файла.jpg')" — заглушка
   автоматически перекроется настоящим фото. */
.photo-placeholder {
    position: relative;
    background: linear-gradient(135deg, #163a3a 0%, #1c4d4a 55%, #163a3a 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.photo-placeholder::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 14px);
}
.photo-placeholder .ph-content {
    position: relative; z-index: 1; text-align: center; padding: 0 20px; color: rgba(255,255,255,0.8);
}
.photo-placeholder .ph-icon { font-size: 30px; margin-bottom: 10px; opacity: 0.9; }
.photo-placeholder .ph-label { font-size: 12px; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); }

/* ===== Иконки категорий (в духе значков разделов на pm.ru) ===== */
.category-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(18,163,160,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin-bottom: 16px;
}

/* ===== Преимущества ===== */
.advantages { background: var(--white); }
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.advantage { padding: 36px 28px; background: var(--bg-light); border-radius: var(--radius); transition: all 0.3s; }
.advantage:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); }
.advantage-number { font-size: 40px; font-weight: 800; color: var(--accent); margin-bottom: 16px; }
.advantage h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.advantage p { color: var(--gray); font-size: 14px; line-height: 1.7; }

/* ===== Статистика ===== */
.stats { background: var(--dark); color: var(--white); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat { padding: 20px; }
.stat-value { font-size: 52px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-label { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.7); }

/* ===== Каталог (карточки на главной и на страницах категорий) ===== */
.catalog { background: var(--bg-light); }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.catalog-item { overflow: hidden; background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.05); transition: all 0.3s; }
.catalog-item:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(0,0,0,0.1); }
.catalog-image { height: 300px; }
.catalog-info { padding: 28px; }
.catalog-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.catalog-info p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.catalog-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; transition: opacity 0.3s; }
.catalog-link:hover { opacity: 0.7; }

/* ===== Карточки товаров на страницах категорий ===== */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.product-card { background: var(--white); overflow: hidden; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.06); transition: all 0.3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 16px 36px rgba(0,0,0,0.12); }
.product-image { height: 320px; }
.product-info { padding: 28px; }
.product-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.product-info p { color: var(--gray); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.product-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-feature { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray-dark); }
.product-feature::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ===== Этапы работы ===== */
.steps { background: var(--white); }
.steps-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; position: relative; }
.steps-container::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: var(--gray-light); }
.step { text-align: center; position: relative; }
.step-number { width: 56px; height: 56px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--white); margin: 0 auto 24px; position: relative; z-index: 1; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* ===== CTA ===== */
.cta { position: relative; padding: 100px 0; }
.cta .photo-placeholder { position: absolute; inset: 0; }
.cta::after { content: ''; position: absolute; inset: 0; background: rgba(16,30,36,0.55); }
.cta-content { position: relative; z-index: 1; text-align: center; color: var(--white); }
.cta-content h2 { font-size: 38px; font-weight: 800; margin-bottom: 18px; }
.cta-content p { font-size: 17px; font-weight: 400; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Шоурум / О компании ===== */
.showroom { background: var(--bg-light); }
.showroom-content, .about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.showroom-info h3, .about-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 18px; }
.showroom-info p, .about-text p { color: var(--gray); font-size: 16px; margin-bottom: 20px; line-height: 1.8; }
.showroom-details { margin-top: 30px; }
.showroom-detail { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.showroom-detail strong { font-size: 14px; min-width: 120px; display: block; }
.showroom-detail span { color: var(--gray); font-size: 14px; }
.showroom-image, .about-image { height: 440px; border-radius: var(--radius); overflow: hidden; }

/* ===== Контакты ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { font-size: 30px; font-weight: 800; margin-bottom: 28px; }
.contact-item { display: flex; gap: 18px; margin-bottom: 28px; align-items: flex-start; }
.contact-icon { width: 52px; height: 52px; background: rgba(18,163,160,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 21px; color: var(--accent); flex-shrink: 0; }
.contact-detail h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.contact-detail p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.contact-form { background: var(--bg-light); padding: 36px; border-radius: var(--radius); }
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 26px; }

/* ===== Формы ===== */
.form-group { margin-bottom: 18px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 18px; border: 1px solid var(--gray-light);
    font-family: inherit; font-size: 14px; background: var(--white); border-radius: 8px;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--gray); margin-top: 16px; }
.form-status { margin-top: 16px; font-size: 14px; display: none; padding: 12px 16px; border-radius: 8px; }
.form-status.show { display: block; }
.form-status.success { background: #e9f7ee; color: #1f7a43; }
.form-status.error { background: #fdecea; color: #b3261e; }

/* ===== Footer (двухъярусный: светлый верх + тёмная полоса снизу, как на pm.ru) ===== */
footer { background: var(--white); color: var(--dark); padding-top: 70px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 50px; }
.footer-logo { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.footer-logo span { color: var(--accent); }
.footer-about { color: var(--gray); font-size: 14px; line-height: 1.8; }
.footer-column h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 22px; color: var(--dark); text-transform: uppercase; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }
.footer-column a { color: var(--gray); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-column a:hover { color: var(--accent); }
.footer-bottom-bar { background: var(--dark); color: rgba(255,255,255,0.6); margin-top: 20px; }
.footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ===== Анимации ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeInUp 0.8s ease-out; }

/* ===== Адаптив ===== */
@media (max-width: 1200px) {
    .advantages-grid, .stats-grid, .steps-container, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-container::before { display: none; }
}

@media (max-width: 1024px) {
    .contact-grid, .showroom-content, .about-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-right span { display: none; }
    nav { position: fixed; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column;
          box-shadow: 0 10px 20px rgba(0,0,0,0.08); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    nav.open { max-height: 400px; }
    nav ul { flex-direction: column; gap: 0; padding: 10px 40px 20px; }
    nav ul li { border-bottom: 1px solid var(--gray-light); }
    nav ul li a { display: block; padding: 16px 0; }
    .mobile-menu-btn { display: flex; }

    .hero-content h1 { font-size: 32px; }
    .catalog-grid, .product-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .section-title { font-size: 28px; }
    .page-header h1 { font-size: 32px; }
    .btn-secondary { margin-left: 0; margin-top: 15px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
