/*
Theme Name: Aero Expert
Theme URI: https://aero-expert.ru/
Author: Aero Expert migration
Description: WordPress theme for the Aero Expert OpenCart migration.
Version: 0.1.0
Text Domain: aeroexpert
*/

:root {
    --ae-blue: #0464a3;
    --ae-dark: #102b3f;
    --ae-ink: #202b33;
    --ae-muted: #687780;
    --ae-surface: #f3f6f8;
    --ae-line: #dce4e8;
    --ae-radius: 22px;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ae-ink);
    background: #fff;
    font-family: "SF Pro Display", Arial, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.ae-container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.ae-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--ae-line);
    backdrop-filter: blur(14px);
}
.ae-header-row { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.ae-logo { flex: 0 0 68px; display: block; }
.ae-logo img { width: 64px; display: block; }
.ae-nav { display: flex; align-items: center; gap: 24px; margin-right: auto; }
.ae-nav a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.ae-nav a:hover { color: var(--ae-blue); }
.ae-header-contacts { display: grid; gap: 3px; text-align: right; }
.ae-header-contacts a { text-decoration: none; }
.ae-header-contacts a:first-child { font-size: 18px; font-weight: 700; }
.ae-header-contacts a:last-child { color: var(--ae-blue); font-size: 14px; }
.ae-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ae-blue); color: #fff; font-size: 22px; }

.ae-hero {
    min-height: 650px;
    display: grid;
    align-items: center;
    color: #fff;
    background: linear-gradient(90deg, rgba(11,37,55,.94), rgba(11,37,55,.45)), url('/image/catalog/image/aero-hom-page-top-image.png') center/cover no-repeat;
}
.ae-hero-content { max-width: 820px; padding: 100px 0; }
.ae-kicker { margin-bottom: 18px; color: #8ed2ff; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ae-hero h1 { margin: 0 0 24px; color: #fff; font-size: clamp(42px, 6vw, 82px); line-height: .98; letter-spacing: -.04em; }
.ae-hero p { max-width: 720px; margin: 0 0 34px; color: rgba(255,255,255,.83); font-size: clamp(18px, 2vw, 24px); line-height: 1.45; }
.ae-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ae-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ae-blue); color: #fff; font-weight: 700; text-decoration: none; }
.ae-button--light { background: #fff; color: var(--ae-dark); }

.ae-section { padding: 86px 0; }
.ae-section--muted { background: var(--ae-surface); }
.ae-section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.ae-section h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; letter-spacing: -.035em; }
.ae-section-head > p { max-width: 560px; margin: 0; color: var(--ae-muted); font-size: 18px; line-height: 1.55; }
.ae-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ae-card { position: relative; overflow: hidden; min-height: 260px; padding: 28px; border: 1px solid var(--ae-line); border-radius: var(--ae-radius); background: #fff; box-sizing: border-box; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ae-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(27,64,86,.12); }
.ae-card-image { aspect-ratio: 16/10; margin: -28px -28px 24px; overflow: hidden; background: #dce4e8; }
.ae-card-image img { width: 100%; height: 100%; object-fit: cover; }
.ae-card-type { margin-bottom: 10px; color: var(--ae-blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ae-card h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.18; }
.ae-card p { margin: 0; color: var(--ae-muted); line-height: 1.5; }

.ae-page-hero { padding: 70px 0 44px; background: var(--ae-dark); color: #fff; }
.ae-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: rgba(255,255,255,.62); font-size: 14px; }
.ae-breadcrumbs a { color: inherit; text-decoration: none; }
.ae-page-hero h1 { max-width: 1000px; margin: 0; color: #fff; font-size: clamp(36px, 5vw, 68px); line-height: 1.03; letter-spacing: -.035em; }
.ae-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding: 58px 0 88px; }
.ae-content { min-width: 0; font-size: 18px; line-height: 1.65; }
.ae-content h2, .ae-content h3 { color: var(--ae-ink); line-height: 1.15; }
.ae-content table { width: 100%; border-collapse: collapse; }
.ae-content td, .ae-content th { padding: 12px; border: 1px solid var(--ae-line); }
.ae-sidebar { align-self: start; position: sticky; top: 110px; padding: 24px; border-radius: var(--ae-radius); background: var(--ae-surface); }
.ae-sidebar-title { margin-bottom: 16px; font-size: 20px; font-weight: 700; }
.ae-sidebar a { display: block; padding: 10px 0; border-bottom: 1px solid var(--ae-line); color: var(--ae-dark); text-decoration: none; }
.ae-product-lead { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; margin-bottom: 48px; }
.ae-product-image { overflow: hidden; border-radius: var(--ae-radius); background: var(--ae-surface); }
.ae-product-image img { width: 100%; display: block; }
.ae-product-meta { display: grid; gap: 12px; align-content: start; }
.ae-product-meta-row { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ae-line); }
.ae-product-meta-row span:first-child { color: var(--ae-muted); }
.ae-listing { padding: 20px 0 88px; }
.ae-pagination { margin-top: 36px; }
.ae-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ae-surface); text-decoration: none; }
.ae-pagination .current { background: var(--ae-blue); color: #fff; }

.ae-site-footer { padding: 64px 0 28px; background: #0b2537; color: #fff; }
.ae-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 36px; }
.ae-footer-logo img { width: 150px; }
.ae-footer-title { margin-bottom: 14px; color: #7fc8f8; font-weight: 700; }
.ae-footer-links { display: grid; gap: 10px; }
.ae-footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.ae-footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); font-size: 14px; }

@media (max-width: 980px) {
    .ae-menu-toggle { display: block; margin-left: auto; }
    .ae-header-contacts { display: none; }
    .ae-nav { display: none; position: absolute; inset: 82px 0 auto; padding: 22px 20px; background: #fff; border-bottom: 1px solid var(--ae-line); flex-direction: column; align-items: flex-start; }
    .ae-nav.is-open { display: flex; }
    .ae-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ae-page-layout, .ae-product-lead { grid-template-columns: 1fr; }
    .ae-sidebar { position: static; }
    .ae-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .ae-container { width: min(100% - 28px, 1280px); }
    .ae-header-row { min-height: 70px; }
    .ae-logo { flex-basis: 52px; }
    .ae-logo img { width: 50px; }
    .ae-nav { top: 70px; }
    .ae-hero { min-height: 560px; }
    .ae-hero-content { padding: 72px 0; }
    .ae-section { padding: 62px 0; }
    .ae-section-head { display: block; }
    .ae-section-head > p { margin-top: 18px; }
    .ae-grid, .ae-footer-grid { grid-template-columns: 1fr; }
    .ae-card { min-height: 220px; }
    .ae-page-hero { padding: 48px 0 34px; }
    .ae-page-layout { padding: 40px 0 64px; }
}

