/* ==========================================================================
   IComSys Corporate Theme Styles
   Colors: Primary #1B3A5C (dark blue), Accent #2E86C1 (blue), #F5F7FA (light bg)
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #1B3A5C;
    --color-accent: #2E86C1;
    --color-accent-hover: #2472A8;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-alt: #F5F7FA;
    --color-border: #E0E5EC;
    --font-main: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-hover);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn--outline:hover {
    background: #fff;
    color: var(--color-primary);
}

.btn--lg {
    padding: 16px 48px;
    font-size: 18px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-header__logo .site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.site-header__logo img {
    max-height: 50px;
    width: auto;
}

.site-header__nav .main-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.site-header__nav .main-menu li a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.site-header__nav .main-menu li a:hover,
.site-header__nav .main-menu li.current-menu-item a {
    color: var(--color-accent);
}

.site-header__nav .main-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.2s;
}

.site-header__nav .main-menu li a:hover::after,
.site-header__nav .main-menu li.current-menu-item a::after {
    width: 100%;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header__phone {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.site-header__phone:hover {
    color: var(--color-accent);
}

/* Language switcher */
.lang-switcher {
    display: flex;
    list-style: none;
    gap: 8px;
}

.lang-switcher li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 4px 8px;
    border-radius: 3px;
}

.lang-switcher li.active a {
    background: var(--color-accent);
    color: #fff;
}

/* Burger */
.site-header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
}

.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.site-header__burger span:nth-child(1) { top: 0; }
.site-header__burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.site-header__burger span:nth-child(3) { bottom: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__bg {
    background: var(--color-primary);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 120px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 58, 92, 0.75);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    color: #fff;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 20px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 80px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 48px;
}

/* Page Hero */
.page-hero {
    background: var(--color-primary);
    padding: 60px 0;
}

.page-hero__title {
    color: #fff;
    font-size: 40px;
    font-weight: 700;
}

/* ==========================================================================
   Directions Grid (Front Page)
   ========================================================================== */
.directions__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.direction-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.direction-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.direction-card__icon {
    color: var(--color-accent);
    margin-bottom: 16px;
}

.direction-card h3 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.direction-card p {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ==========================================================================
   Advantages
   ========================================================================== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.advantage {
    text-align: center;
}

.advantage__number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 8px;
}

.advantage h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.advantage p {
    color: var(--color-text-light);
    font-size: 15px;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    background: var(--color-primary);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 32px;
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-intro__image img {
    border-radius: 8px;
}

.competences__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.competence {
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.competence h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* ==========================================================================
   Products Page
   ========================================================================== */
.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-card__icon {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.product-card h3 {
    color: var(--color-primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--color-text-light);
    font-size: 15px;
}

/* ==========================================================================
   Services Page
   ========================================================================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.service-card {
    padding: 40px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    position: relative;
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-card__num {
    font-size: 64px;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.service-card h3 {
    color: var(--color-primary);
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Contacts Page
   ========================================================================== */
.contacts__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contacts__details {
    margin-top: 32px;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-item h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 18px;
}

.contacts__form {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: 8px;
}

.contacts__form h2 {
    color: var(--color-primary);
    margin-bottom: 24px;
}

/* ==========================================================================
   Entry Content
   ========================================================================== */
.entry-content h2 {
    color: var(--color-primary);
    margin: 24px 0 12px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul, .entry-content ol {
    margin: 0 0 16px 24px;
}

/* ==========================================================================
   Page Content
   ========================================================================== */
.page-content {
    padding: 48px 0;
}

.page-title {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer__desc {
    margin-top: 16px;
    font-size: 14px;
}

.site-footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.site-footer .footer-menu {
    list-style: none;
}

.site-footer .footer-menu li {
    margin-bottom: 8px;
}

.site-footer .footer-menu li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.site-footer .footer-menu li a:hover {
    color: #fff;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

.site-footer__col .site-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .directions__grid,
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .site-header__nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 16px 20px;
    }

    .site-header__nav.is-open {
        display: block;
    }

    .site-header__nav .main-menu {
        flex-direction: column;
        gap: 0;
    }

    .site-header__nav .main-menu li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .site-header__burger {
        display: block;
    }

    .site-header__phone {
        display: none;
    }

    .hero__bg {
        padding: 80px 0;
        min-height: auto;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 16px;
    }

    .section {
        padding: 48px 0;
    }

    .section__title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .directions__grid,
    .advantages__grid,
    .products__grid,
    .competences__grid {
        grid-template-columns: 1fr;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
    }

    .contacts__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .page-hero__title {
        font-size: 28px;
    }
}
