/* ===== CSS Variables - Orange Theme ===== */
:root {
    --primary: #f97316;
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --secondary-color: #ea580c;
    --primary-light: #fb923c;
    --accent: #fbbf24;
    --accent-color: #fbbf24;
    --btn-text: #ffffff;
    --button-text-color: #ffffff;
    --header-text: #ffffff;
    --header-text-color: #ffffff;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --gray-dark: #94a3b8;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn--outline {
    background: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
}

.btn--outline:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--btn-text);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn--white:hover {
    background: transparent;
    color: var(--white);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    color: var(--dark);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
}

.burger {
    display: none;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.burger span,
.burger::before,
.burger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.burger::before { top: 0; }
.burger span { top: 50%; transform: translateY(-50%); }
.burger::after { bottom: 0; }

/* ===== Hero ===== */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--header-text);
    text-align: center;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section--gray {
    background: var(--light);
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark);
}

.section__footer {
    text-align: center;
    margin-top: 40px;
}

/* ===== Categories ===== */
.categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card__icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-card__count {
    color: var(--secondary);
    font-size: 14px;
}

/* ===== Tools Grid ===== */
.tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tool-card__image {
    height: 200px;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tool-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card__image i {
    font-size: 64px;
    color: var(--gray-dark);
}

.tool-card__content {
    padding: 20px;
}

.tool-card__category {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.tool-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-card__price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.tool-card__price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--secondary);
}

.tool-card__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 20px;
}

.tool-card__status--available {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.tool-card__status--unavailable {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ===== Advantages ===== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage {
    text-align: center;
    padding: 30px;
}

.advantage__icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}

.advantage__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.advantage__text {
    color: var(--secondary);
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta__text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.logo--footer {
    color: var(--white);
    margin-bottom: 15px;
}

.footer__desc {
    color: var(--gray-dark);
    font-size: 14px;
}

.footer__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer__links li,
.footer__contacts li,
.footer__schedule li {
    margin-bottom: 10px;
}

.footer__links a:hover {
    color: var(--primary);
}

.footer__contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contacts i {
    color: var(--primary);
    width: 20px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--gray-dark);
    font-size: 14px;
}

/* ===== Loading ===== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
    color: var(--secondary);
    grid-column: 1 / -1;
}

.loading i {
    font-size: 32px;
    color: var(--primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 15px;
    }
    
    .header__contacts {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero__title {
        font-size: 32px;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section__title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}


/* ===== Page Header ===== */
.page-header {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.page-header__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== About Section ===== */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about__content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark);
}

.about__content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--dark);
}

.about__content p {
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about__list {
    margin-top: 15px;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--dark);
}

.about__list i {
    color: var(--success);
    font-size: 18px;
}

/* ===== Placeholder Image ===== */
.placeholder-image {
    background: linear-gradient(135deg, var(--gray) 0%, #d1d5db 100%);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--gray-dark);
    min-height: 300px;
    padding: 30px;
}

.placeholder-image i {
    font-size: 64px;
    opacity: 0.5;
}

.placeholder-image span {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== Stats Section ===== */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat {
    padding: 30px;
}

.stat__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat__label {
    font-size: 16px;
    color: var(--secondary);
}

/* ===== Team Section ===== */
.section__subtitle {
    text-align: center;
    color: var(--secondary);
    margin-top: -35px;
    margin-bottom: 40px;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team__member {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team__member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team__photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    min-height: auto;
}

.team__photo i {
    font-size: 48px;
}

.team__name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.team__role {
    color: var(--secondary);
    font-size: 14px;
}

/* ===== Responsive About ===== */
@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about__image {
        order: -1;
    }
    
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat__number {
        font-size: 36px;
    }
    
    .page-header__title {
        font-size: 28px;
    }
}
