/*
Theme Name: My Auto Service
Theme URI: https://myautoservice.local
Author: Mira
Author URI: https://myautoservice.local
Description: Custom WordPress theme for My Auto Service
Version: 1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.2
Text Domain: myautoservice
*/

:root{
    --bg:#111111;
    --dark:#070707;
    --card:#1c1c1c;
    --gray:#707070;
    --accent:#d94b4b;
    --text:#f5f5f5;
    --muted:#b5b5b5;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, sans-serif;
    background:var(--bg);
    color:var(--text);
}

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:90px;
    padding:0 7%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:rgba(7,7,7,0.9);
    backdrop-filter:blur(12px);
    z-index:1000;
}

.hero-logo{
    width:380px;
    max-width:90%;
    filter:
        drop-shadow(0 0 15px rgba(255,46,46,0.30))
        drop-shadow(0 0 35px rgba(255,46,46,0.15));
}

nav{
    display:flex;
    gap:35px;
}

nav a{
    color:white;
    text-decoration:none;
    text-transform:uppercase;
    font-weight:700;
    font-size:14px;
    letter-spacing:1px;
    transition:0.3s;
}

nav a:hover{
    color:var(--accent);
}

.hero{
    min-height:100vh;
    background:
    linear-gradient(90deg, rgba(0,0,0,0.95), rgba(0,0,0,0.55)),
   url("assets/images/DSC02366.jpg");
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    padding:0 7%;
}

.hero-content{
    max-width:760px;
}

.hero span,
.section-title span,
.split-section span,
.contact-text span{
    color:var(--accent);
    text-transform:uppercase;
    font-weight:800;
    letter-spacing:3px;
}

.hero h1{
    font-size:64px;
    line-height:1.05;
    margin:20px 0;
}

.hero p{
    color:var(--muted);
    font-size:20px;
    line-height:1.7;
}

.hero-buttons{
    margin-top:35px;
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn{
    padding:16px 32px;
    border-radius:50px;
    text-decoration:none;
    font-weight:700;
    letter-spacing:1px;
    transition:all .3s ease;
}

.primary{
    background:var(--accent);
    color:white;
    border:2px solid var(--accent);
    border-radius:50px;
}

.secondary{
    background:transparent;
    color:white;
    border:2px solid var(--accent);
    border-radius:50px;
}

.btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.20),
        transparent
    );
    transition:.6s;
}

.btn:hover::before{
    left:100%;
}

.primary:hover{
    background:#e16363;
    transform:translateY(-5px);
    box-shadow:
        0 10px 25px rgba(217,75,75,.35);
}

.secondary:hover{
    background:rgba(217,75,75,.12);
    border-color:#e16363;
    transform:translateY(-5px);
    box-shadow:
        0 10px 25px rgba(217,75,75,.25);
}
.section{
    padding:110px 7%;
}

.section-title{
    text-align:center;
    margin-bottom:55px;
}

.section-title h2,
.split-section h2,
.contact-text h2{
    font-size:44px;
    margin-top:15px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
}

.card{
    background:linear-gradient(145deg, #202020, #141414);
    padding:40px;
    border-radius:24px;
    border:1px solid rgba(255,255,255,0.08);
    transition:0.3s;
}

.card:hover{
    transform:translateY(-10px);
    border-color:var(--accent);
}

.card h3{
    color:var(--accent);
    font-size:26px;
    margin-bottom:15px;
}

.card p{
    color:var(--muted);
    line-height:1.6;
}

.split-section{
    padding:110px 7%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
    background:#161616;
}

.split-section p{
    color:var(--muted);
    line-height:1.8;
    font-size:18px;
    margin-top:20px;
}

.cars{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
}

.car-card{
    background:var(--card);
    border-radius:24px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.08);
}

.car-img{
    height:260px;
    background-size:cover;
    background-position:center;
}

.img1{
    background-image:url("assets/images/DSC02366.jpg");
}

.img2{
    background-image:url("https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=900&q=80");
}

.img3{
    background-image:url("https://images.unsplash.com/photo-1525609004556-c46c7d6cf023?auto=format&fit=crop&w=900&q=80");
}

.car-card h3{
    padding:25px 25px 5px;
    font-size:24px;
}

.car-card p{
    padding:0 25px;
    color:var(--muted);
}

.car-card a{
    display:inline-block;
    margin:25px;
    color:var(--accent);
    font-weight:800;
    text-decoration:none;
}

.contact-section{
    padding:110px 7%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    background:#0b0b0b;
}

.contact-text p{
    color:var(--muted);
    line-height:1.8;
    margin-top:20px;
    font-size:18px;
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.contact-form input,
.contact-form textarea{
    width:100%;
    padding:18px;
    background:#1b1b1b;
    border:1px solid rgba(255,255,255,0.1);
    color:white;
    border-radius:14px;
    font-size:16px;
}

.contact-form textarea{
    height:160px;
    resize:none;
}

.contact-form button{
    padding:18px;
    border:none;
    border-radius:40px;
    background:var(--accent);
    color:white;
    text-transform:uppercase;
    font-weight:800;
    cursor:pointer;
    font-size:16px;
}

footer{
    padding:50px 7%;
    text-align:center;
    background:#050505;
    color:var(--muted);
}

footer img{
    height:90px;
    margin-bottom:20px;
}

@media(max-width:900px){
    .navbar{
        height:auto;
        flex-direction:column;
        padding:15px;
        gap:15px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:18px;
    }

    .hero h1{
        font-size:42px;
    }

    .cards,
    .cars,
    .split-section,
    .contact-section{
        grid-template-columns:1fr;
    }
}
.newspaper {
    background:#f4ead2;
    color:#2b1d12;
    padding:40px;
    font-family:Georgia, serif;
    border:6px double #3a2618;
    margin:40px auto;
    max-width:1100px;
}

.paper-header {
    text-align:center;
    border-bottom:4px double #3a2618;
    margin-bottom:30px;
    padding-bottom:20px;
}

.paper-header h1 {
    font-size:56px;
    margin:10px 0;
    text-transform:uppercase;
    letter-spacing:3px;
}

.date,
.subtitle {
    font-size:18px;
}

.news-grid {
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:25px;
}

.news-grid article {
    border-top:2px solid #3a2618;
    padding-top:15px;
}

.news-grid h2,
.news-grid h3 {
    margin-bottom:10px;
}

.main-article {
    grid-row:span 2;
    background:rgba(255,255,255,0.25);
    padding:20px;
}

.main-article h2 {
    font-size:34px;
}

.main-article span {
    background:#3a2618;
    color:#f4ead2;
    padding:5px 10px;
    font-size:14px;
}

button {
    background:#3a2618;
    color:#f4ead2;
    border:none;
    padding:10px 18px;
    cursor:pointer;
    font-family:Georgia, serif;
}

button:hover {
    background:#6b3f22;
}

@media (max-width:768px) {
    .news-grid {
        grid-template-columns:1fr;
    }

    .paper-header h1 {
        font-size:36px;
    }
}

/* ==================================
   Галерия за автомобилите
================================== */

.car-card {
    display:flex;
    flex-direction:column;
    min-width:0;
    overflow:hidden;
    background:#111;
}

.car-gallery {
    width:100%;
    background:#111;
}

.gallery-main {
    position:relative;
    width:100%;
    aspect-ratio:4 / 3;
    overflow:hidden;
    background:#0b0b0b;
}

.gallery-open {
    display:block;
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    padding:0;
    border:0;
    background:transparent;
    cursor:zoom-in;
}

.main-car-image {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:
        opacity 0.2s ease,
        transform 0.35s ease;
}

.gallery-open:hover .main-car-image {
    transform:scale(1.025);
}

.main-car-image.is-changing {
    opacity:0.35;
}

/* Стрелки върху основната снимка */

.gallery-arrow {
    position:absolute;
    top:50%;
    z-index:999;
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid rgba(255,255,255,0.55);
    border-radius:50%;
    background:rgba(0,0,0,0.65);
    color:#fff;
    font-size:25px;
    line-height:1;
    cursor:pointer;
    pointer-events:auto;
    transform:translateY(-50%);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.gallery-arrow:hover {
    background:#b68a42;
    transform:translateY(-50%) scale(1.08);
}

.gallery-prev {
    left:12px;
}

.gallery-next {
    right:12px;
}

/* Брояч 1 / 11 */

.gallery-counter {
    position:absolute;
    right:12px;
    bottom:12px;
    z-index:10;
    padding:5px 10px;
    border-radius:20px;
    background:rgba(0,0,0,0.72);
    color:#fff;
    font-size:13px;
    line-height:1;
    pointer-events:none;
}

/* Малки снимки */

.gallery-thumbnails {
    display:flex;
    gap:8px;
    width:100%;
    padding:10px;
    overflow-x:auto;
    overflow-y:hidden;
    background:#171717;
    scroll-behavior:smooth;
    scrollbar-width:thin;
    scrollbar-color:#777 #252525;
}

.thumbnail {
    flex:0 0 82px;
    width:82px;
    height:60px;
    padding:0;
    overflow:hidden;
    border:2px solid transparent;
    border-radius:5px;
    background:#222;
    opacity:0.58;
    cursor:pointer;
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.thumbnail:hover {
    opacity:1;
    transform:translateY(-2px);
}

.thumbnail.active {
    border-color:#b68a42;
    opacity:1;
}

.thumbnail img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.gallery-thumbnails::-webkit-scrollbar {
    height:7px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background:#252525;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    border-radius:10px;
    background:#777;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background:#b68a42;
}

/* Съдържание под галерията */

.car-card-content {
    display:flex;
    flex:1;
    flex-direction:column;
    padding:20px;
}

.car-card-content h3 {
    margin:0 0 10px;
}

.car-card-content p {
    margin:0 0 20px;
}

.car-button {
    margin-top:auto;
}
/* ==================================
   Голям изглед на снимката
================================== */

.lightbox[hidden] {
    display:none;
}

.lightbox {
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:60px 80px;
    background:rgba(0,0,0,0.94);
    backdrop-filter:blur(4px);
}

.lightbox-image {
    display:block;
    max-width:100%;
    max-height:calc(100vh - 120px);
    object-fit:contain;
    user-select:none;
    -webkit-user-drag:none;
}

.lightbox-close {
    position:absolute;
    top:15px;
    right:24px;
    width:48px;
    height:48px;
    padding:0;
    border:0;
    background:transparent;
    color:#fff;
    font-size:46px;
    line-height:1;
    cursor:pointer;
}

.lightbox-arrow {
    position:absolute;
    top:50%;
    width:50px;
    height:50px;
    padding:0;
    border:1px solid rgba(255,255,255,0.45);
    border-radius:50%;
    background:rgba(0,0,0,0.65);
    color:#fff;
    font-size:27px;
    cursor:pointer;
    transform:translateY(-50%);
}

.lightbox-arrow:hover {
    background:#b68a42;
}

.lightbox-prev {
    left:20px;
}

.lightbox-next {
    right:20px;
}

.lightbox-counter {
    position:absolute;
    bottom:20px;
    left:50%;
    padding:7px 14px;
    border-radius:20px;
    background:rgba(0,0,0,0.75);
    color:#fff;
    transform:translateX(-50%);
}

/* ==================================
   Адаптация за телефон
================================== */

@media (max-width:700px) {
    .gallery-arrow {
        width:38px;
        height:38px;
        font-size:21px;
    }

    .gallery-prev {
        left:8px;
    }

    .gallery-next {
        right:8px;
    }

    .thumbnail {
        flex-basis:72px;
        width:72px;
        height:53px;
    }

    .lightbox {
        padding:55px 12px 70px;
    }

    .lightbox-image {
        max-height:calc(100vh - 125px);
    }

    .lightbox-arrow {
        width:42px;
        height:42px;
        font-size:22px;
    }

    .lightbox-prev {
        left:8px;
    }

    .lightbox-next {
        right:8px;
    }

    .lightbox-close {
        top:8px;
        right:10px;
    }
}
/* ==================================================
   СТРАНИЦА НА ОТДЕЛЕН АВТОМОБИЛ
================================================== */

.single-car {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
    padding: 70px 6%;
    background: #111111;
    color: #ffffff;
}

.single-car *,
.single-car-hero,
.single-car-heading,
.single-car-gallery {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

.single-car-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
    align-items: center;
    gap: 50px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 80px;
}

.single-car-main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #1c1c1c;
}

.single-car-main-image img {
    display: block !important;
    width: 100% !important;
    height: 620px !important;
    object-fit: cover;
    visibility: visible !important;
    opacity: 1 !important;
}

.single-car-heading {
    display: block !important;
}

.single-car-label {
    margin-bottom: 12px;
    color: #d94b4b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.single-car-heading h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
}

.single-car-year {
    margin-bottom: 32px;
    color: #d1d1d1;
    font-size: 20px;
}

.single-car-contact-button {
    display: inline-block;
    padding: 16px 24px;
    border: 1px solid #d94b4b;
    border-radius: 8px;
    background: #d94b4b;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.single-car-contact-button:hover {
    background: transparent;
    color: #d94b4b !important;
}

.single-car-gallery {
    display: block !important;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.single-car-gallery h2 {
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 36px;
}

.single-car-gallery .wp-block-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.single-car-gallery .wp-block-image {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.single-car-gallery .wp-block-image img {
    display: block !important;
    width: 100% !important;
    height: 320px !important;
    object-fit: cover;
    border-radius: 10px;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 900px) {
    .single-car {
        padding: 40px 20px;
    }

    .single-car-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .single-car-main-image img {
        height: 450px !important;
    }

    .single-car-gallery .wp-block-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .single-car-main-image img {
        height: 300px !important;
    }

    .single-car-gallery .wp-block-gallery {
        grid-template-columns: 1fr;
    }

    .single-car-gallery .wp-block-image img {
        height: 280px !important;
    }
}
.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.contact-links a {
    display: inline-block;
    padding: 14px 22px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-links a:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-3px);
}

.contact-map {
    overflow: hidden;
    min-height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 450px;
}
.contact-form-wrapper {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: #161616;
}

.contact-form-wrapper h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 36px;
}

.contact-form-wrapper label {
    display: block;
    margin-bottom: 18px;
    color: #ffffff;
    font-weight: 700;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    margin-top: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    outline: none;
    background: #222222;
    color: #ffffff;
    font-size: 16px;
}

.contact-form-wrapper textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--accent);
}

.contact-form-wrapper input[type="submit"] {
    width: auto;
    padding: 16px 30px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form-wrapper input[type="submit"]:hover {
    background: transparent;
    color: var(--accent);
}

@media (max-width: 600px) {
    .contact-form-wrapper {
        padding: 25px 18px;
    }
}
/* По-открояваща се контактна форма */

.contact-form-wrapper {
    background:
        linear-gradient(
            145deg,
            #321515 0%,
            #211313 45%,
            #161616 100%
        );
    border: 1px solid rgba(217, 75, 75, 0.75);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(217, 75, 75, 0.12);
}

.contact-form-wrapper h2 {
    color: #ffffff;
}

.contact-form-wrapper h2::after {
    content: "";
    display: block;
    width: 75px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 10px;
    background: var(--accent);
}

.contact-form-wrapper label {
    color: #ffffff;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    background: rgba(8, 8, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: #a9a9a9;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 75, 75, 0.16);
}

.contact-form-wrapper input[type="submit"] {
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(217, 75, 75, 0.3);
}
/* Изчистена форма без външна рамка */

.contact-form-wrapper {
    max-width: 1050px;
    padding: 30px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.contact-form-wrapper h2 {
    color: var(--accent);
    font-size: 42px;
}

.contact-form-wrapper h2::after {
    display: none;
}

.contact-form-wrapper label {
    color: #ffffff;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    background: #f3f3f3;
    border: none;
    border-radius: 8px;
    color: #111111;
    box-shadow: none;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: #777777;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: 3px solid rgba(217, 75, 75, 0.35);
    border: none;
    box-shadow: none;
}

.contact-form-wrapper input[type="submit"] {
    padding: 17px 38px;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: #ffffff;
    box-shadow: none;
}

.contact-form-wrapper input[type="submit"]:hover {
    background: #e16363;
    color: #ffffff;
}
/* Компактна контактна форма */

.contact-form-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 20px auto 0;
    padding: 20px 0;
}

.contact-form-wrapper h2 {
    margin-bottom: 24px;
    font-size: 32px;
}

.contact-form-wrapper label {
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 7px;
    font-size: 15px;
}

.contact-form-wrapper textarea {
    min-height: 110px;
    max-height: 160px;
}

.contact-form-wrapper input[type="submit"] {
    padding: 13px 26px;
    font-size: 14px;
}

.contact-form-wrapper .wpcf7-form p {
    margin-bottom: 12px;
}

/* ==================================================
   ИНТЕРАКТИВНА КНИГА
================================================== */

.restoration-book {
    width: 100%;
    max-width: 980px;
    margin: 35px auto;
    perspective: 1800px;
}

.book-shell {
    position: relative;
    min-height: 500px;
    padding: 12px;
    border-radius: 12px;
    background:
        linear-gradient(
            90deg,
            #321d13,
            #6a432b 49%,
            #2a180f 51%,
            #593821
        );
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.book-spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 476px;
    transform-style: preserve-3d;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.book-spread[hidden] {
    display: none;
}

.book-spread.turn-next {
    opacity: 0;
    transform: rotateY(-20deg) translateX(-4%);
}

.book-spread.turn-previous {
    opacity: 0;
    transform: rotateY(20deg) translateX(4%);
}

.book-page {
    position: relative;
    min-width: 0;
    padding: 55px 45px 58px;
    overflow: hidden;
    color: #2a1c13;
    font-family: Georgia, "Times New Roman", serif;

    background:
        linear-gradient(
            rgba(255, 252, 239, 0.9),
            rgba(244, 232, 202, 0.92)
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 27px,
            rgba(78, 54, 33, 0.06) 28px
        );
}

.book-page-left {
    border-radius: 5px 0 0 5px;
    box-shadow:
        inset -22px 0 28px -25px
        rgba(45, 27, 15, 0.8);
}

.book-page-right {
    border-radius: 0 5px 5px 0;
    box-shadow:
        inset 22px 0 28px -25px
        rgba(45, 27, 15, 0.8);
}

.book-page-left::after,
.book-page-right::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(73, 45, 25, 0.18);
}

.book-page-left::after {
    right: 0;
}

.book-page-right::before {
    left: 0;
}

.book-kicker {
    margin: 0 0 22px;
    color: #a3312d;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.book-page h2,
.book-page h3 {
    margin: 0 0 25px;
    color: #21140d;
    line-height: 1.08;
}

.book-page h2 {
    font-size: clamp(34px, 4vw, 54px);
}

.book-page h3 {
    font-size: clamp(27px, 3vw, 38px);
}

.book-page p {
    margin: 0 0 20px;
    color: #4a382a;
    font-size: 17px;
    line-height: 1.7;
}

.book-cover-page {
    text-align: center;
}

.book-emblem {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin: 35px auto 0;
    border: 2px solid #a3312d;
    border-radius: 50%;
    color: #a3312d;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 2px;
}

.book-page-number {
    position: absolute;
    right: 28px;
    bottom: 22px;
    color: #7d6653;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.book-page-left .book-page-number {
    right: auto;
    left: 28px;
}

.book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.book-nav {
    min-width: 125px;
    padding: 12px 20px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    background: transparent;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.book-nav:hover:not(:disabled) {
    background: var(--accent);
    transform: translateY(-2px);
}

.book-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.book-status {
    min-width: 48px;
    color: #d8cfc7;
    text-align: center;
    font-weight: 700;
}

/* Книга на телефон */

@media (max-width: 800px) {

    .restoration-book {
        grid-column: 1 / -1;
    }

    .book-shell,
    .book-spread {
        min-height: 0;
    }

    .book-spread {
        grid-template-columns: 1fr;
    }

    .book-page {
        min-height: 420px;
        padding: 42px 30px 50px;
    }

.book-page-left {
    display: none;
}

.book-page-left::after {
    display: none;
}

    .book-page-right {
        border-radius: 5px;
        box-shadow: none;
    }

    .book-page-right::before {
        display: none;
    }

    .book-controls {
        gap: 12px;
    }

    .book-nav {
        min-width: 105px;
        padding: 11px 14px;
    }
}
/* Разширяване на книгата на цялата ширина */

#restoration {
    grid-template-columns: 1fr;
}

#restoration > div:first-child {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: center;
}

.restoration-book {
    width: 100%;
    max-width: 1300px;
    margin: 30px auto;
}

.book-shell {
    min-height: 540px;
}

.book-spread {
    min-height: 516px;
}

.book-page {
    padding: 55px 65px 60px;
}

.book-page h2 {
    font-size: clamp(36px, 3.5vw, 52px);
}

.book-page h3 {
    font-size: clamp(28px, 2.5vw, 38px);
    overflow-wrap: break-word;
}

.book-page p {
    font-size: 18px;
    line-height: 1.75;
}

@media (max-width: 800px) {
    .book-shell,
    .book-spread {
        min-height: 0;
    }

    .book-page {
        padding: 42px 30px 50px;
    }

    .book-page h3 {
        font-size: 28px;
    }

    .book-page p {
        font-size: 16px;
    }
}
/* Значително по-светла начална снимка */

.hero {
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.28) 42%,
            rgba(0, 0, 0, 0.05) 75%,
            transparent 100%
        ),
        linear-gradient(
            rgba(255, 255, 255, 0.17),
            rgba(255, 255, 255, 0.17)
        ),
        url("assets/images/DSC02366.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
}
/* По-широки карти без грозно изрязване */
.cars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1500px;
    margin: 0 auto;
}

.car-card {
    overflow: hidden;
    border-radius: 18px;
}

.car-card img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    background: #181818;
}

/* Два автомобила на ред при по-малък екран */
@media (max-width: 1100px) {
    .cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Един автомобил на ред при телефон */
@media (max-width: 700px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }

    .car-card img {
        height: 260px;
    }
}
/* Професионална начална секция */
.hero {
    min-height: 780px;
    background:
        linear-gradient(
            90deg,
            rgba(5, 5, 5, 0.92) 0%,
            rgba(5, 5, 5, 0.72) 30%,
            rgba(5, 5, 5, 0.20) 58%,
            rgba(5, 5, 5, 0.02) 100%
        ),
        url("assets/images/DSC02366.jpg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    width: 100%;
    max-width: 730px;
    padding-top: 55px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75);
}

.hero-content h1 {
    max-width: 680px;
    margin: 18px 0 24px;
    font-size: clamp(42px, 4.4vw, 68px);
    line-height: 1.02;
    letter-spacing: -1.5px;
}

.hero-content .eyebrow {
    font-size: 18px;
    letter-spacing: 5px;
}

.hero-content p {
    max-width: 660px;
    font-size: 19px;
    line-height: 1.65;
    color: #eeeeee;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 34px;
}

.hero-buttons .btn {
    min-width: 250px;
    padding: 17px 28px;
    font-size: 17px;
}

/* Телефон */
@media (max-width: 760px) {
    .hero {
        min-height: 720px;
        background-position: 58% center;
    }

    .hero-content {
        padding-top: 30px;
    }

    .hero-content h1 {
        font-size: 42px;
        line-height: 1.08;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: 0;
    }
}
/* Окончателно компактна начална секция */
.hero {
    min-height: 700px !important;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.55) 28%,
            rgba(0, 0, 0, 0.12) 55%,
            rgba(0, 0, 0, 0) 78%
        ),
        url("assets/images/DSC02366.jpg") !important;

    background-size: cover !important;
    background-position: center !important;
}

.hero-content {
    max-width: 580px !important;
    padding-top: 25px !important;
}

.hero-content h1,
.hero h1 {
    width: 580px !important;
    max-width: 100% !important;
    margin: 14px 0 22px !important;
    font-size: 48px !important;
    line-height: 1.08 !important;
    letter-spacing: -1px !important;
}

.hero-content .eyebrow {
    font-size: 15px !important;
    letter-spacing: 4px !important;
}

.hero-content p {
    max-width: 570px !important;
    margin: 0 0 26px !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
}

.hero-buttons {
    gap: 14px !important;
    margin-top: 25px !important;
}

.hero-buttons .btn {
    min-width: 0 !important;
    padding: 15px 23px !important;
    font-size: 15px !important;
}

/* За по-малки лаптопи */
@media (max-width: 1200px) {
    .hero-content h1,
    .hero h1 {
        width: 500px !important;
        font-size: 42px !important;
    }
}
/* Правилно позициониране на началната снимка */
.hero {
    min-height: 700px !important;

    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.48) 30%,
            rgba(0, 0, 0, 0.10) 58%,
            rgba(0, 0, 0, 0.02) 100%
        ),
        url("assets/images/DSC02366.jpg") !important;

    background-size: cover !important;
    background-position: center 28% !important;
    background-repeat: no-repeat !important;
}
/* По-ярка и кинематографична начална снимка */
.hero {
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.48) 24%,
            rgba(0, 0, 0, 0.12) 45%,
            rgba(0, 0, 0, 0.02) 72%,
            transparent 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.12) 0%,
            transparent 40%,
            rgba(0, 0, 0, 0.16) 100%
        ),
        url("assets/images/DSC02366.jpg") !important;

    background-size: cover !important;
    background-position: center 28% !important;
}

/* Лек премиум ефект върху текста */
.hero-content {
    padding: 34px 38px !important;
    border-left: 3px solid #e34b4b;
    background: linear-gradient(
        90deg,
        rgba(5, 5, 5, 0.45),
        rgba(5, 5, 5, 0)
    );
    border-radius: 4px;
}
/* Бутон за връщане най-горе */
#back-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;

    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(217, 75, 75, 0.92);
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.38);
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #ffffff;
    color: #d94b4b;
    transform: translateY(-4px);
}

#back-to-top:focus-visible {
    outline: 3px solid rgba(217, 75, 75, 0.45);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    #back-to-top {
        right: 18px;
        bottom: 18px;
        width: 46px;
        height: 46px;
        font-size: 23px;
    }
}
/* ==================================================
   ПРОФЕСИОНАЛЕН FOOTER
================================================== */

.site-footer {
    position: relative;
    padding: 70px 7% 0;
    overflow: hidden;
    color: #d7d7d7;
    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(217, 75, 75, 0.13),
            transparent 30%
        ),
        #101010;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 7%;
    width: 90px;
    height: 3px;
    background: #d94b4b;
}

.footer-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 70px;
}

.footer-logo {
    display: block;
    width: 210px;
    height: auto;
    margin-bottom: 22px;
}

.footer-brand p {
    max-width: 460px;
    margin: 0;
    color: #a9a9a9;
    font-size: 16px;
    line-height: 1.8;
}

.footer-column h3 {
    position: relative;
    margin: 12px 0 25px;
    color: #ffffff;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-navigation,
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-navigation {
    gap: 13px;
}

.footer-navigation a,
.footer-social-link {
    position: relative;
    color: #a9a9a9;
    font-size: 15px;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-navigation a:hover,
.footer-social-link:hover {
    color: #d94b4b;
    transform: translateX(5px);
}

.footer-social-link + .footer-social-link {
    margin-top: 14px;
}

.footer-bottom {
    width: 100%;
    max-width: 1350px;
    margin: 55px auto 0;
    padding: 23px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

.footer-bottom a {
    color: #b9b9b9;
    font-size: 14px;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #d94b4b;
}

/* Таблет и телефон */
@media (max-width: 850px) {
    .site-footer {
        padding: 55px 25px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .footer-bottom {
        margin-top: 40px;
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ========================================
   СЕКЦИЯ ЗА НАС
======================================== */

.about-section {
    position: relative;
    padding: 110px 30px;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(226, 73, 73, 0.08),
            transparent 35%
        ),
        #151515;
    color: #ffffff;
    overflow: hidden;
}

.about-container {
    width: min(1320px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 80px;
    align-items: center;
}

/* Снимка */

.about-image {
    position: relative;
    min-height: 650px;
}

.about-image img {
    width: 100%;
    height: 650px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    filter: brightness(0.85) contrast(1.05);
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    pointer-events: none;
}

.about-experience {
    position: absolute;
    right: -30px;
    bottom: 45px;
    width: 175px;
    height: 175px;
    padding: 20px;
    background: #e34d4d;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.about-experience strong {
    display: block;
    font-size: 48px;
    line-height: 1;
}

.about-experience span {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Текст */

.about-content {
    max-width: 670px;
}

.about-label {
    display: inline-block;
    margin-bottom: 22px;
    color: #e34d4d;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 4px;
}

.about-content h2 {
    margin: 0 0 30px;
    color: #ffffff;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.about-content h2 span {
    color: #e34d4d;
}

.about-content p {
    margin: 0 0 20px;
    color: #bdbdbd;
    font-size: 18px;
    line-height: 1.8;
}

.about-content .about-intro {
    color: #ffffff;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.6;
}

/* Трите предимства */

.about-features {
    margin: 38px 0;
    padding: 26px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-feature span {
    display: block;
    margin-bottom: 8px;
    color: #e34d4d;
    font-size: 14px;
    font-weight: 800;
}

.about-feature p {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

/* Бутон */

.about-button {
    display: inline-flex;
    min-height: 58px;
    padding: 0 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid #e34d4d;
    border-radius: 50px;
    background: #e34d4d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.about-button:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Таблет */

@media (max-width: 1000px) {
    .about-section {
        padding: 85px 25px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .about-image {
        min-height: 540px;
    }

    .about-image img {
        height: 540px;
    }

    .about-experience {
        right: 25px;
        bottom: -35px;
    }

    .about-content {
        max-width: none;
    }
}

/* Телефон */

@media (max-width: 650px) {
    .about-section {
        padding: 65px 18px;
    }

    .about-image {
        min-height: 420px;
    }

    .about-image img {
        height: 420px;
    }

    .about-experience {
        right: 15px;
        bottom: -28px;
        width: 135px;
        height: 135px;
    }

    .about-experience strong {
        font-size: 38px;
    }

    .about-content h2 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .about-content p,
    .about-content .about-intro {
        font-size: 17px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-feature {
        display: grid;
        grid-template-columns: 35px 1fr;
        align-items: center;
    }

    .about-feature span {
        margin: 0;
    }

    .about-button {
        width: 100%;
    }
}
/* Видео в секцията „За нас“ */

.about-image video {
    width: 100%;
    height: 650px;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
    filter: brightness(0.8) contrast(1.08);
}

.about-video {
    overflow: hidden;
    border-radius: 4px;
}

@media (max-width: 1000px) {
    .about-image video {
        height: 540px;
    }
}

@media (max-width: 650px) {
    .about-image video {
        height: 420px;
    }
}
/* ===== ЦЕНТРИРАНА СЕКЦИЯ „ЗА НАС“ ===== */

.about-section {
    padding: 85px 24px;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(229, 73, 73, 0.09),
            transparent 38%
        ),
        #141414;
    overflow: hidden;
}

.about-section .about-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 65px;
}

/* Центрирано видео */

.about-section .about-image.about-video {
    position: relative;
    width: min(1000px, 100%);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.about-section .about-image.about-video iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: #000;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.5);
}

/* Компактна значка */

.about-section .about-experience {
    position: absolute;
    right: 25px;
    bottom: -25px;
    width: auto;
    height: auto;
    min-width: 190px;
    padding: 16px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 12px;
    background: #e54949;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.about-section .about-experience strong {
    margin: 0;
    color: #fff;
    font-size: 31px;
    line-height: 1;
}

.about-section .about-experience span {
    margin: 0;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

/* Текст под видеото */

.about-section .about-content {
    width: min(1000px, 100%);
    max-width: none;
    margin: 0 auto;
}

.about-section .about-label {
    display: block;
    margin: 0 0 12px;
    color: #e54949;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

.about-section .about-content h2 {
    max-width: 850px;
    margin: 0 auto 28px;
    color: #fff;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -1px;
    text-align: center;
}

.about-section .about-intro {
    max-width: 850px;
    margin: 0 auto 26px;
    color: #fff;
    font-size: 21px;
    line-height: 1.55;
    text-align: center;
}

.about-section .about-content > p {
    max-width: 900px;
    margin: 0 auto 20px;
    color: #cfcfcf;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
}

/* Трите предимства отдолу */

.about-section .about-values {
    width: 100%;
    margin-top: 42px;
    padding-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-section .about-value {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.about-section .about-value:hover {
    border-color: rgba(229, 73, 73, 0.45);
    transform: translateY(-4px);
    transition: 0.25s ease;
}

/* Таблет и телефон */

@media (max-width: 800px) {
    .about-section {
        padding: 65px 20px;
    }

    .about-section .about-container {
        gap: 55px;
    }

    .about-section .about-values {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 55px 15px;
    }

    .about-section .about-image.about-video iframe {
        border-radius: 12px;
    }

    .about-section .about-experience {
        right: 10px;
        bottom: -22px;
        min-width: 155px;
        padding: 13px 16px;
    }

    .about-section .about-experience strong {
        font-size: 26px;
    }

    .about-section .about-experience span {
        font-size: 11px;
    }

    .about-section .about-content h2 {
        font-size: 35px;
    }

    .about-section .about-intro {
        font-size: 18px;
    }

    .about-section .about-content > p {
        font-size: 16px;
    }
}
/* ==================================================
   НОВА ПРОФЕСИОНАЛНА СЕКЦИЯ „ЗА НАС“
================================================== */

.story-section {
    padding: 100px 24px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(229, 73, 73, 0.1),
            transparent 30%
        ),
        #141414;
}

.story-container {
    width: min(1280px, 100%);
    margin: 0 auto;
}

/* Видео */

.story-video {
    position: relative;
    width: 100%;
}

.story-video iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.55);
}

/* Малка значка */

.story-experience {
    position: absolute;
    top: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 22px;
    border-radius: 100px;
    color: #fff;
    background: #e54949;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.story-experience strong {
    font-size: 30px;
    line-height: 1;
}

.story-experience span {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Карта със заглавието */

.story-heading-card {
    position: relative;
    width: min(920px, calc(100% - 80px));
    margin: -90px auto 0;
    padding: 48px 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: #fff;
    text-align: center;
    background: rgba(17, 17, 17, 0.96);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45);
    z-index: 4;
}

.story-heading-card > span {
    display: block;
    margin-bottom: 15px;
    color: #e54949;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.story-heading-card h2 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(38px, 5vw, 67px);
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.story-heading-card h2 em {
    color: #e54949;
    font-style: normal;
}

.story-heading-card p {
    max-width: 760px;
    margin: 0 auto;
    color: #d3d3d3;
    font-size: 18px;
    line-height: 1.65;
}

/* Двете текстови колони */

.story-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    margin-top: 85px;
}

.story-column {
    position: relative;
    padding-left: 26px;
    border-left: 2px solid rgba(229, 73, 73, 0.65);
}

.story-number {
    display: block;
    margin-bottom: 14px;
    color: #e54949;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
}

.story-column h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 27px;
    line-height: 1.25;
}

.story-column p {
    margin: 0;
    color: #c5c5c5;
    font-size: 16px;
    line-height: 1.8;
}

/* Трите качества */

.story-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 70px;
}

.story-value {
    min-height: 210px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.story-value:hover {
    transform: translateY(-6px);
    border-color: rgba(229, 73, 73, 0.65);
    background: rgba(229, 73, 73, 0.06);
}

.story-value > span {
    color: #e54949;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.story-value h3 {
    margin: 24px 0 12px;
    color: #fff;
    font-size: 23px;
}

.story-value p {
    margin: 0;
    color: #bfbfbf;
    font-size: 15px;
    line-height: 1.65;
}

/* Таблет */

@media (max-width: 900px) {
    .story-section {
        padding: 75px 20px;
    }

    .story-heading-card {
        width: calc(100% - 40px);
        margin-top: -50px;
        padding: 40px 30px;
    }

    .story-columns {
        grid-template-columns: 1fr;
        gap: 45px;
        margin-top: 65px;
    }
}

/* Телефон */

@media (max-width: 650px) {
    .story-section {
        padding: 55px 14px;
    }

    .story-video iframe {
        border-radius: 12px;
    }

    .story-experience {
        top: 10px;
        right: 10px;
        padding: 10px 14px;
    }

    .story-experience strong {
        font-size: 23px;
    }

    .story-experience span {
        font-size: 9px;
    }

    .story-heading-card {
        width: calc(100% - 18px);
        margin-top: -20px;
        padding: 30px 20px;
        border-radius: 13px;
    }

    .story-heading-card h2 {
        font-size: 34px;
    }

    .story-heading-card p {
        font-size: 16px;
    }

    .story-columns {
        margin-top: 50px;
    }

    .story-values {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }

    .story-value {
        min-height: 0;
    }
}
/* Изчистена секция „За нас“ без огромна карта */

.story-heading-card {
    width: min(1000px, 100%);
    margin: 55px auto 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.story-heading-card h2 {
    max-width: 900px;
    margin: 0 auto 22px;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.08;
}

.story-heading-card p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

.story-columns {
    margin-top: 65px;
}
/* Видеото завършва историята */

.story-video {
    width: min(980px, 100%);
    margin: 75px auto 0;
}

.story-video iframe {
    border-radius: 16px;
}

/* ===== МОБИЛНА ВЕРСИЯ ===== */
@media (max-width: 650px) {
    body {
        overflow-x: hidden;
    }

    .navbar {
        height: auto;
        min-height: 118px;
        padding: 7px 12px 9px;
        gap: 5px;
        flex-direction: column;
        justify-content: center;
    }

    .navbar .logo {
        display: block;
        line-height: 0;
    }

    .hero-logo {
        width: 130px;
        max-width: 130px;
        max-height: 72px;
        object-fit: contain;
    }

    .navbar nav {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 11px;
        overflow-x: auto;
        padding: 4px 0 5px;
        scrollbar-width: none;
    }

    .navbar nav::-webkit-scrollbar {
        display: none;
    }

    .navbar nav a {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .hero {
        min-height: 100svh;
        padding: 155px 22px 50px;
        align-items: center;
        background-position: 62% center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 35px;
        line-height: 1.08;
        margin: 14px 0;
        overflow-wrap: normal;
        word-break: normal;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.5;
    }

    .hero-buttons {
        margin-top: 25px;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px 16px;
        text-align: center;
        font-size: 14px;
    }
}
/* Финална корекция на логото за телефон */
@media (max-width: 650px) {
    .navbar .logo {
        width: 160px;
        height: 72px;
        background: url("assets/images/LOGO.png") center 47% / 230% auto no-repeat;
    }

    .navbar .logo .hero-logo {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }
}
/* Поправка на мобилното лого */
@media (max-width: 650px) {
    .navbar {
        min-height: 145px;
    }

    .navbar .logo {
        width: 175px;
        height: 105px;
        background-size: 190% auto;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero {
        padding-top: 180px;
    }
}
/* Компактно мобилно лого и правилно начало на hero секцията */
@media (max-width: 650px) {
    .navbar {
        min-height: 125px;
    }

    .navbar .logo {
        width: 145px;
        height: 82px;
        background-size: 190% auto;
        background-position: center center;
    }

    .hero {
        min-height: 100svh;
        padding: 150px 22px 45px;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 30px;
    }
}
/* Подредба на автомобилните карти на телефон */
@media (max-width: 650px) {
    .car-card > .car-card-image {
        display: block;
        width: 100%;
        margin: 0;
    }

    .car-card-content {
        min-height: 0;
        padding: 24px 20px 26px;
        align-items: center;
        text-align: center;
    }

    .car-card-content h3 {
        margin: 0 0 14px;
        padding: 0;
        font-size: 26px;
        line-height: 1.2;
    }

    .car-card-content h3 a {
        display: inline;
        margin: 0;
    }

    .car-card-content p {
        margin: 0 0 20px;
        padding: 0;
        font-size: 17px;
    }

    .car-card-content .car-button {
        display: inline-block;
        margin: 6px 0 0;
        padding: 12px 20px;
        border: 1px solid var(--accent);
        border-radius: 30px;
    }
}
/* Подредба на контактната секция на телефон */
@media (max-width: 650px) {
    .contact-section {
        padding: 60px 18px;
        gap: 35px;
    }

    .contact-text {
        text-align: center;
    }

    .contact-form-wrapper {
        margin: 10px auto 0;
        padding: 10px 0;
    }

    .contact-form-wrapper h2 {
        margin-bottom: 25px;
        text-align: center;
        font-size: 28px;
    }

    .contact-form-wrapper label {
        text-align: left;
    }

    .contact-form-wrapper input[type="submit"] {
        display: block;
        margin: 20px auto 0;
        padding: 14px 30px;
        font-size: 15px;
    }

    .contact-form-wrapper .wpcf7-response-output {
        margin: 20px 0 0;
        text-align: center;
    }
}
/* Компактна карта на телефон */
@media (max-width: 650px) {
    .contact-map {
        min-height: 270px;
        height: 270px;
        border-radius: 14px;
    }

    .contact-map iframe {
        height: 270px;
    }
}
/* Центриран бутон в страницата на автомобил */
@media (max-width: 650px) {
    .single-car-contact-button {
        display: flex;
        width: 100%;
        min-height: 72px;
        padding: 14px 20px;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.35;
    }
}
/* Бутон „Назад към автомобилите“ */
.single-car-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    padding: 10px 17px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    background: #181818;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.25s ease;
}

.single-car-back-link:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff !important;
}

@media (max-width: 650px) {
    .single-car-back-link {
        margin-bottom: 18px;
        padding: 10px 15px;
        font-size: 13px;
    }
}
/* Активна секция в главното меню */
.navbar nav a {
    transition: color 0.25s ease;
}

.navbar nav a.is-active {
    color: #d94b4b !important;
}
