:root {
    --primary-color: #E60000;
    --primary-hover: #cc0000;
    --text-color: #000000;
    --bg-color: #FFFFFF;
    --bg-light: #F5F5F7;
    --footer-bg: #1A1A1A;
    --footer-text: #FFFFFF;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

main {
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #222222;
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background-color 0.2s, opacity 0.2s;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.95);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background-color: #fcebeb;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.error-message {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/image11.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-content .btn {
    margin-top: auto;
}

.service-content h3 {
    margin-bottom: 10px;
    font-weight: 900;
}

.service-desc {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-copy {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.status {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-new {
    background: #e0f2fe;
    color: #0284c7;
}

.status-progress {
    background: #fef3c7;
    color: #d97706;
}

.status-done {
    background: #dcfce7;
    color: #16a34a;
}

.auth-container {
    max-width: 800px;
    margin: 60px auto;
}

.logo img {
    height: 50px !important;
    width: auto;
}

.slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 74px);
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/image06.jpg');
}

.slider-content-static {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.slider-content-static h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.slider-content-static p {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: center;
}

.review-avatar {
    width: 85px;
    height: 85px;
    border-radius: 15px;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-name {
    font-weight: 900;
    font-size: 1.3rem;
}

.review-stars {
    color: #FFD700;
    font-size: 1.2rem;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: 0.3s;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Планшеты */
@media (max-width: 1024px) {
    .container {
        padding: 0 25px;
    }

    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-card {
        gap: 30px;
    }

    .about-col {
        min-width: 280px;
    }

    .section-padding {
        padding-top: 40px;
    }

    .slider-content-static h1 {
        font-size: 3rem;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .slider-content-static h1 {
        font-size: 2.5rem;
    }

    .slider-content-static p {
        font-size: 1
    }

    .burger-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        transition: 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    nav a {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-content>div:nth-child(2),
    .footer-content>div:nth-child(3) {
        display: none;
    }

    .footer-content>div:first-child p {
        margin: 0 auto;
    }

    .services-grid,
    .reviews-grid,
    #applicationsList {
        grid-template-columns: 1fr !important;
    }

    .card {
        padding: 20px;
    }

    .card[style*="flex-wrap: wrap"] {
        flex-direction: column;
    }

    .card[style*="align-items: center"] div {
        width: 100%;
    }

    .admin-table {
        min-width: 600px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        padding: 5px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

.logo-img {
    height: 50px;
}

.nav-link-primary {
    color: var(--primary-color);
}

.btn-light {
    background: white;
    color: black;
}

.section-padding {
    padding-top: 60px;
}

.about-card {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-col {
    flex: 1;
    min-width: 300px;
}

.about-text {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.footer-logo-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo-img {
    height: 50px;
}

.footer-links-desktop {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .footer-links-desktop {
        display: none !important;
    }
}
