/* Avrora-Max — рекламное агентство */
:root {
    --am-navy: #0b1d3a;
    --am-navy-light: #132a52;
    --am-accent: #ff6b35;
    --am-accent-hover: #e85a28;
    --am-gold: #ffc857;
    --am-cyan: #2ec4b6;
    --am-text: #1a2332;
    --am-muted: #5c6b7a;
    --am-bg: #f4f6f9;
    --am-white: #ffffff;
    --am-radius: 1rem;
    --am-shadow: 0 12px 40px rgba(11, 29, 58, 0.12);
    --am-font: "Manrope", system-ui, sans-serif;
    --navbar-height: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--am-font);
    color: var(--am-text);
    background: var(--am-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

.site-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* ——— Navbar ——— */
.site-header .navbar {
    background: rgba(11, 29, 58, 0.92) !important;
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s, background 0.3s;
    min-height: var(--navbar-height);
}

.site-header .navbar.scrolled {
    box-shadow: var(--am-shadow);
    background: var(--am-navy) !important;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--am-accent), var(--am-gold));
    border-radius: 12px;
    color: var(--am-navy);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* ——— Buttons ——— */
.btn-am-primary {
    background: linear-gradient(135deg, var(--am-accent), #ff8f5a);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.6rem 1.35rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-am-primary:hover {
    background: linear-gradient(135deg, var(--am-accent-hover), var(--am-accent));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}

.btn-am-outline {
    border: 2px solid var(--am-navy);
    color: var(--am-navy);
    font-weight: 700;
    border-radius: 12px;
    background: transparent;
}

.btn-am-outline:hover {
    background: var(--am-navy);
    color: #fff;
}

.btn-am-ghost {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    background: transparent;
}

.btn-am-ghost:hover {
    background: #fff;
    color: var(--am-navy);
    border-color: #fff;
}

.btn-am-filter {
    background: #fff;
    border: 1px solid #dee2e6;
    color: var(--am-text);
    font-weight: 600;
    border-radius: 50px;
}

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

.text-am-accent {
    color: var(--am-accent) !important;
}

.text-gradient {
    background: linear-gradient(90deg, var(--am-gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ——— Sections ——— */
.section {
    padding: 4.5rem 0;
}

.section-light {
    background: var(--am-white);
}

.section-dark {
    background: var(--am-navy);
    color: #fff;
}

.section-dark .section-title,
.section-dark .section-subtitle {
    color: #fff;
}

.section-dark .section-label {
    color: var(--am-gold);
}

.section-cta {
    background: linear-gradient(135deg, var(--am-navy), var(--am-navy-light));
    padding: 4rem 0;
}

.section-header .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--am-accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--am-muted);
    max-width: 560px;
    font-size: 1.05rem;
}

/* ——— Hero ——— */
.hero-banner {
    position: relative;
    background: linear-gradient(125deg, var(--am-navy) 0%, #1a3a6b 45%, #2d1f4e 100%);
    overflow: hidden;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: var(--navbar-height);
}

.hero-banner__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.25), transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(46, 196, 182, 0.15), transparent 40%);
    pointer-events: none;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    color: var(--am-gold);
}

.hero-stat span {
    font-size: 0.8rem;
    opacity: 0.75;
}

.hero-visual {
    position: relative;
    height: 380px;
    min-width: 280px;
}

.hero-visual__card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--am-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 700;
    animation: float 6s ease-in-out infinite;
}

.hero-visual__card i {
    font-size: 1.5rem;
    color: var(--am-gold);
}

.hero-visual__card--1 { top: 4%; left: 30%; animation-delay: 0s; }
.hero-visual__card--2 { top: 28%; right: -4%; animation-delay: 0.8s; }
.hero-visual__card--3 { top: 52%; left: 8%; animation-delay: 1.6s; }
.hero-visual__card--4 { top: 58%; right: 10%; animation-delay: 2.4s; }
.hero-visual__card--5 { top: 18%; left: 38%; animation-delay: 1.2s; }
.hero-visual__card--6 { bottom: 1%; left: 0; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ——— Cards ——— */
.advantage-card,
.production-card {
    background: #fff;
    border-radius: var(--am-radius);
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.advantage-card:hover,
.production-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--am-shadow);
}

.advantage-card__icon,
.production-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 200, 87, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--am-accent);
    margin-bottom: 1rem;
}

.media-block {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.media-block--service .media-block__fallback {
    background: linear-gradient(135deg, #1a3a6b, #2ec4b6);
}

.media-block--portfolio .media-block__fallback {
    background: linear-gradient(135deg, #ff6b35, #ffc857);
}

.media-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-block__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.service-card {
    transition: transform 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
}

.portfolio-card__trigger {
    background: none;
    cursor: pointer;
}

.portfolio-card__trigger:hover .media-block__fallback {
    filter: brightness(1.05);
}

.badge-category {
    background: rgba(255, 107, 53, 0.12);
    color: var(--am-accent);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.35em 0.75em;
    border-radius: 50px;
}

.review-card {
    background: #fff;
    border-radius: var(--am-radius);
    padding: 1.5rem;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.review-card__stars {
    color: var(--am-gold);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.review-card__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--am-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ——— Quick order ——— */
.quick-order-box {
    overflow: visible;
    background: linear-gradient(135deg, var(--am-navy), #1e4078);
    border-radius: calc(var(--am-radius) * 1.5);
    padding: 2.5rem;
    box-shadow: var(--am-shadow);
}

.quick-order-form .form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.quick-order-form .form-control,
.quick-order-form .form-select {
    background-color: rgba(255, 255, 255, 0.96);
    color: var(--am-text);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.quick-order-form .form-select {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.quick-order-form .col-md-6:has(.form-select) {
    overflow: visible;
}

.quick-order-features li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ——— Page hero ——— */
.page-hero {
    background: linear-gradient(135deg, var(--am-navy), var(--am-navy-light));
    color: #fff;
    padding: 3rem 0 3.5rem;
    margin-top: calc(-1 * var(--navbar-height));
    padding-top: calc(var(--navbar-height) + 2rem);
}

.page-hero--compact {
    padding-bottom: 2.5rem;
}

.page-hero--compact + .section--after-hero {
    padding-top: 2rem;
}

.page-hero__title {
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.page-hero__subtitle {
    opacity: 0.8;
    font-size: 1.1rem;
    max-width: 600px;
}

.breadcrumb-am .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.breadcrumb-am .breadcrumb-item.active {
    color: #fff;
}

.breadcrumb-am .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* ——— Timeline ——— */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid var(--am-accent);
}

.timeline__item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__year {
    position: absolute;
    left: -2rem;
    transform: translateX(-50%);
    background: var(--am-accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    margin-left: -1.5rem;
}

.timeline__content {
    padding-left: 1.5rem;
}

/* ——— Contacts ——— */
.contact-info-card {
    background: #fff;
    border-radius: var(--am-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-list__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: rgba(255, 107, 53, 0.12);
    color: var(--am-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-list a {
    color: var(--am-navy);
    text-decoration: none;
    font-weight: 600;
}

.contact-list a:hover {
    color: var(--am-accent);
}

.map-embed iframe {
    display: block;
    border: 0;
}

/* ——— Footer ——— */
.site-footer {
    background: var(--am-navy);
    color: rgba(255, 255, 255, 0.85);
    margin-top: auto;
}

.footer-title {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contacts a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2;
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: var(--am-gold);
}

.footer-contacts li {
    margin-bottom: 0.5rem;
}

/* ——— Utilities ——— */
.flash-container {
    position: fixed;
    top: calc(var(--navbar-height) + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    width: min(100% - 2rem, 520px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.flash-container .flash-toast {
    pointer-events: auto;
    margin: 0;
    border: none;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.flash-container .alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.flash-container .alert-info {
    background: #cff4fc;
    color: #055160;
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--am-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 1040;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: #fff;
    transform: translateY(-4px);
}

.portfolio-modal__image {
    min-height: 240px;
    background: linear-gradient(135deg, var(--am-navy-light), var(--am-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-modal__image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.service-detail-media .media-block {
    aspect-ratio: 4/3;
    border-radius: var(--am-radius);
}

.service-features li {
    padding: 0.35rem 0;
    font-weight: 500;
}

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
    .hero-visual {
        display: none;
    }

    .quick-order-box {
        padding: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 575.98px) {
    :root {
        --navbar-height: 68px;
    }

    .hero-stats .col-4 {
        text-align: center;
    }
}

.why-us-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 200, 87, 0.12));
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.about-intro {
    border-left: 4px solid var(--am-accent);
}


/* ——— Orders & calculator ——— */
.order-status-card {
    border-left: 4px solid var(--am-accent);
}

.order-status-dl dt {
    font-weight: 600;
}

.status-badge--new { background: #6c757d; }
.status-badge--in_progress { background: #0d6efd; }
.status-badge--done { background: #198754; }
.status-badge--cancelled { background: #dc3545; }

.calc-result {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 200, 87, 0.15));
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.12) !important;
}

/* ——— Адаптивность: смартфон / планшет / ноутбук / монитор ——— */
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.85rem !important; }
    .hero-lead { font-size: 1rem; }
    .section { padding: 3rem 0; }
    .quick-order-box { padding: 1.5rem !important; }
    .footer-bottom { text-align: center; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-visual { min-height: 280px; }
    .advantage-card { padding: 1.25rem; }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-title { font-size: 3.25rem; }
    .section-title { font-size: 2.5rem; }
}

@media (min-width: 1920px) {
    .container { max-width: 1440px; }
    .hero-banner { padding-bottom: 2rem; }
}
