:root {
    --neon-blue: #00f7ff;
    --neon-blue-dark: #00c4cc;
    --neon-glow: 0 0 10px rgba(0, 247, 255, 0.5), 0 0 20px rgba(0, 247, 255, 0.3), 0 0 30px rgba(0, 247, 255, 
0.2);
    --text-glow: 0 0 5px rgba(0, 247, 255, 0.5);
    --gradient-dark: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    --gradient-blue: linear-gradient(45deg, var(--neon-blue), #0066ff);
    --font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    color: #ddd;
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    background: #000;
}

.background-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.background-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.background-slide.active {
    opacity: 1;
}

@keyframes backgroundFade {
    0%, 90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

#slide1 { background-image: url('images/photo1.jpg'); }
#slide2 { background-image: url('images/photo2.jpg'); }
#slide3 { background-image: url('images/photo3.jpg'); }
#slide4 { background-image: url('images/photo4.jpg'); }
#slide5 { background-image: url('images/photo5.jpg'); }
#slide6 { background-image: url('images/photo6.jpg'); }
#slide7 { background-image: url('images/photo7.jpg'); }

h2, h3, .advantage-title, .advantage-text, .price-name, .price-value {
    color: #fff;
    font-family: var(--font-family);
}

.btn, .phone, .service p, section p {
    text-shadow: var(--text-glow);
}

.price-category {
    font-size: 1.7em;
    color: #fff;
    background: rgba(0, 247, 255, 0.15);
    padding: 20px;
    border: 1px solid var(--neon-blue);
    cursor: pointer;
    width: 100%;
    text-align: left;
    margin-top: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.7),
                 1px -1px 0 rgba(0,0,0,0.7),
                -1px 1px 0 rgba(0,0,0,0.7),
                 1px 1px 0 rgba(0,0,0,0.7);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.1);
    display: flex;
    align-items: center;
}

.price-category::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    margin-left: auto;
    transition: transform 0.3s ease;
}

.price-category.active::after {
    transform: rotate(180deg);
}

.price-category:hover {
    transform: translateY(-2px);
    background: rgba(0, 247, 255, 0.25);
    box-shadow: var(--neon-glow);
}

.price-category.active {
    background: rgba(0, 247, 255, 0.3);
    box-shadow: var(--neon-glow);
}

.header-bg {
    display: none;
}

.header-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
}

.header-bg1 { background-image: url('images/car-circuit1.jpg'); animation: slideshow 60s infinite; }
.header-bg2 { background-image: url('images/car-circuit2.jpg'); animation: slideshow 60s infinite 20s; }
.header-bg3 { background-image: url('images/car-circuit3.jpg'); animation: slideshow 60s infinite 40s; }

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    position: relative;
    z-index: 1000;
    overflow: hidden;
    min-height: 150px;
    border-bottom: 1px solid var(--neon-blue);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    gap: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 20px;
}

.logo-container img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.5));
}

.header-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-social a {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 2.4em;
    transition: all 0.3s ease;
    border-radius: 20px;
    background: rgba(0, 247, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    padding: 0;
}

.header-social a:hover {
    background: var(--gradient-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.slogan {
    color: #fff;
    font-size: 2.4em;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: -1px -1px 0 rgba(0,0,0,0.7),
                 1px -1px 0 rgba(0,0,0,0.7),
                -1px 1px 0 rgba(0,0,0,0.7),
                 1px 1px 0 rgba(0,0,0,0.7),
                 0 0 20px rgba(0, 247, 255, 0.7);
    flex: 1;
    padding: 0 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: -1px -1px 0 rgba(0,0,0,0.7),
                     1px -1px 0 rgba(0,0,0,0.7),
                    -1px 1px 0 rgba(0,0,0,0.7),
                     1px 1px 0 rgba(0,0,0,0.7),
                     0 0 20px rgba(0, 247, 255, 0.7);
    }
    to {
        text-shadow: -1px -1px 0 rgba(0,0,0,0.7),
                     1px -1px 0 rgba(0,0,0,0.7),
                    -1px 1px 0 rgba(0,0,0,0.7),
                     1px 1px 0 rgba(0,0,0,0.7),
                     0 0 30px rgba(0, 247, 255, 0.9);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.btn {
    font-family: var(--font-family);
    background: rgba(0, 247, 255, 0.15);
    color: #fff;
    padding: 15px 30px;
    border: 1px solid var(--neon-blue);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--text-glow);
    font-size: 1.2em;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 247, 255, 0.25);
    box-shadow: var(--neon-glow);
    color: #fff;
}

.social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social a {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(0, 247, 255, 0.1);
}

.social a:hover {
    background: var(--gradient-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.form input, .form textarea {
    font-family: var(--font-family);
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.1em;
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid transparent;
    color: #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form input:focus, .form textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

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

.map {
    width: 100%;
    height: 400px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--neon-blue);
    box-shadow: var(--text-glow);
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service {
    background: var(--gradient-dark);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--neon-blue);
    animation: float 6s ease-in-out infinite;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.service-icon {
    font-size: 40px;
    color: var(--neon-blue);
    margin-bottom: 20px;
    text-shadow: var(--text-glow);
}

.service:hover .service-icon {
    text-shadow: var(--neon-glow);
}

h2 {
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: -1px -1px 0 #000,
                 1px -1px 0 #000,
                -1px 1px 0 #000,
                 1px 1px 0 #000;
}

h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.phone {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 136, 0, 0.5);
    transition: all 0.3s ease;
    font-size: 2em;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.phone:hover {
    color: #ff8800;
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.5),
                 0 0 20px rgba(255, 136, 0, 0.3),
                 0 0 30px rgba(255, 136, 0, 0.2);
}

.service p {
    font-size: 1.1em;
}

section p {
    font-size: 1.2em;
    line-height: 1.6;
}

.price-list {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 8px;
    border: 1px solid var(--neon-blue);
    backdrop-filter: blur(5px);
    padding: 30px;
    margin-top: 30px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--neon-blue);
    transition: all 0.3s ease;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    background: rgba(0, 247, 255, 0.1);
    margin: 10px 0;
}

.price-item:last-child {
    border-bottom: 1px solid var(--neon-blue);
}

.price-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 247, 255, 0.2);
    box-shadow: var(--neon-glow);
}

.price-name {
    font-size: 1.2em;
    color: #fff;
    flex: 1;
    font-weight: bold;
    font-family: var(--font-family);
    text-shadow: -1px -1px 0 rgba(0,0,0,0.7),
                 1px -1px 0 rgba(0,0,0,0.7),
                -1px 1px 0 rgba(0,0,0,0.7),
                 1px 1px 0 rgba(0,0,0,0.7);
}

.price-value {
    font-weight: bold;
    font-size: 1.3em;
    margin-left: 20px;
    font-family: var(--font-family);
    color: var(--neon-blue);
    text-shadow: -1px -1px 0 rgba(0,0,0,0.7),
                 1px -1px 0 rgba(0,0,0,0.7),
                -1px 1px 0 rgba(0,0,0,0.7),
                 1px 1px 0 rgba(0,0,0,0.7),
                 0 0 10px rgba(0, 247, 255, 0.5);
}

.price-content {
    display: none;
    padding: 10px 0;
    background: rgba(15, 15, 15, 0.5);
    border-radius: 8px;
    margin-top: 5px;
    backdrop-filter: blur(5px);
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.advantage-item {
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--neon-blue);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    background: rgba(15, 15, 15, 0.3);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
    background: rgba(15, 15, 15, 0.5);
}

.advantage-title {
    color: #fff;
    text-shadow: -0.3px -0.3px 0 #000,
                 0.3px -0.3px 0 #000,
                -0.3px 0.3px 0 #000,
                 0.3px 0.3px 0 #000;
    font-family: var(--font-family);
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advantage-title i {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2em;
    width: 30px;
    text-align: center;
    text-shadow: var(--neon-glow);
}

.advantage-text {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.5;
    font-family: var(--font-family);
    text-shadow: -0.3px -0.3px 0 #000,
                 0.3px -0.3px 0 #000,
                -0.3px 0.3px 0 #000,
                 0.3px 0.3px 0 #000;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        position: relative;
        box-sizing: border-box;
    }

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

    header {
        min-height: auto;
        padding: 10px;
    }

    .header-content {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .slogan {
        font-size: 1.1em;
        padding: 0 5px;
        line-height: 1.2;
        margin: 10px 0;
        text-align: center;
    }
    .phone {
        font-size: 1.6em;
        text-align: center;
    }
    .btn {
        font-size: 1.1em;
        padding: 12px 25px;
        width: 80%;
        text-align: center;
        margin: 0 auto;
    }
    .logo-container {
        width: 180px;
        height: auto;
        margin-bottom: 10px;
    }
    .logo-container img {
        width: 100%;
        height: auto;
    }
    h2 {
        font-size: 1.6em;
    }
    h3 {
        font-size: 1.2em;
    }
    .service p {
        font-size: 1em;
    }
    .price-list {
        padding: 20px 15px;
    }
    .price-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px 10px;
    }
    .price-category {
        font-size: 1.4em;
        padding: 15px;
    }
    .price-name {
        font-size: 1.1em;
    }
    .price-value {
        font-size: 1.2em;
        margin-left: 0;
    }
    .advantage-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    .advantage-text {
        font-size: 0.95em;
        line-height: 1.4;
    }
    .advantages {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    .advantage-item {
        padding: 20px 15px;
    }
    .advantages-section {
        padding: 30px 10px;
    }
    .advantages-content {
        padding: 0;
    }
    .header-social a {
        width: 40px;
        height: 40px;
        font-size: 1.8em;
    }
    .map {
        height: 300px;
    }
    footer div {
        padding: 0 10px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .advantages {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
}

@keyframes advantages-slideshow {
    0%, 20% {
        opacity: 1;
    }
    25%, 95% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.advantages-section {
    position: relative;
    padding: 60px 20px;
}

.advantages-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.advantages-bg, .advantages-bg1, .advantages-bg2, .advantages-bg3, .advantages-bg4 {
    display: none;
}

.header-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header-social a {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 2em;
    transition: all 0.3s ease;
    border-radius: 20px;
    background: rgba(0, 247, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
}

.header-social a:hover {
    background: var(--gradient-blue);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.header-social a[href*="instagram"] {
    href: "https://www.instagram.com/idiagnost.by?igsh=aG4xcDkxNWVocHNi";
}

.form input, .form textarea {
    background: #fff;
    color: #000;
}

.price-list, .price-item, .price-category {
    font-family: var(--font-family);
    font-weight: bold;
    color: #fff;
    text-shadow: -0.3px -0.3px 0 #000,
                 0.3px -0.3px 0 #000,
                -0.3px 0.3px 0 #000,
                 0.3px 0.3px 0 #000;
}

.price-name {
    color: #fff;
    text-shadow: -0.3px -0.3px 0 #000,
                 0.3px -0.3px 0 #000,
                -0.3px 0.3px 0 #000,
                 0.3px 0.3px 0 #000;
    font-weight: bold;
}

.price-value {
    font-weight: bold;
    color: #fff;
    text-shadow: -0.3px -0.3px 0 #000,
                 0.3px -0.3px 0 #000,
                -0.3px 0.3px 0 #000,
                 0.3px 0.3px 0 #000;
}

body, .advantage-text, .price-name, .price-value, .btn, .phone, .service p, section p {
    text-shadow: -0.3px -0.3px 0 #000,
                 0.3px -0.3px 0 #000,
                -0.3px 0.3px 0 #000,
                 0.3px 0.3px 0 #000;
}

main {
    background: url('images/photo1.jpg') no-repeat center center fixed;
    background-size: cover;
    animation: body-slideshow 90s infinite;
    transition: background-image 3s ease-in-out;
}

@keyframes body-slideshow {
    0%, 20% {
        background-image: url('images/photo1.jpg');
        opacity: 1;
    }
    21%, 40% {
        background-image: url('images/photo2.jpg');
        opacity: 1;
    }
    41%, 60% {
        background-image: url('images/photo3.jpg');
        opacity: 1;
    }
    61%, 80% {
        background-image: url('images/photo4.jpg');
        opacity: 1;
    }
    81%, 100% {
        background-image: url('images/photo5.jpg');
        opacity: 1;
    }
}

.advantage-title, .advantage-text, .price-name, .price-value {
    color: #fff;
    font-family: var(--font-family);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

footer {
    background: var(--gradient-dark);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer div {
    max-width: 1200px;
    margin: 0 auto;
}

footer h3 {
    color: var(--neon-blue);
    text-shadow: var(--neon-glow);
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 2px;
}

footer p {
    margin: 5px 0;
    color: #ddd;
}
