/* ==================== 
   CSS Variables 
   ==================== */
:root {
    --primary-color: #dd3333;
    --primary-dark: #c02828;
    --secondary-color: #dd5a5a;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
    --header-height: 80px;
    --transition: all 0.3s ease;
}

/* ==================== 
   Reset & Base Styles 
   ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ==================== 
   Utility Classes 
   ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section--gray {
    background-color: var(--bg-gray);
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.2;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==================== 
   Header & Navigation 
   ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.shrink {
    padding: 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav__logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.header.shrink .nav__logo img {
    height: 40px;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
    color: var(--text-color);
}

/* ==================== 
   Hero Section 
   ==================== */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel__container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide--active {
    opacity: 1;
    visibility: visible;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(221, 51, 51, 0.3) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-slide--active .hero__content {
    animation: fadeInUp 1s ease;
}

.hero__label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Carousel Controls */
.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-carousel__arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel__arrow--prev {
    left: 2rem;
}

.hero-carousel__arrow--next {
    right: 2rem;
}

/* Carousel Indicators */
.hero-carousel__indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-carousel__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-carousel__indicator--active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 
   About Section 
   ==================== */
.about__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about__text {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about__values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.values__list {
    list-style: none;
    padding: 0;
}

.values__list li {
    padding-left: 1.5rem;
    margin-bottom: 0.875rem;
    position: relative;
    color: var(--text-light);
}

.values__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Testimonials */
.testimonials {
    position: relative;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.testimonial {
    display: none;
    animation: fadeIn 0.5s ease;
}

.testimonial.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial__image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-gray);
}

.testimonial__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: center;
}

.testimonial__text p {
    margin: 0;
}

.testimonial__author {
    text-align: center;
}

.testimonial__name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.testimonial__position {
    font-size: 0.875rem;
    color: var(--text-light);
}

.testimonial__nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-color);
}

.testimonial__btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==================== 
   Services Section 
   ==================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
    min-height: 280px;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service__image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service:hover .service__image img {
    transform: scale(1.05);
}

.service__content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.service__list {
    list-style: none;
}

.service__list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==================== 
   Events Section 
   ==================== */
.events-section {
    background: var(--bg-color);
}

.events__header {
    text-align: center;
    margin-bottom: 3rem;
}

.events__label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.events__cta {
    margin-top: 2rem;
    text-align: center;
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.events__item {
    background: white;
    padding: 0 0 2rem 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

.events__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.events__icon {
    width: 100%;
    height: 180px;
    margin: 0 0 1.5rem 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.events__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.events__item:hover .events__icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.events__item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    padding: 0 1.5rem;
}

.events__item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding: 0 1.5rem;
}

/* ==================== 
   Partners Section 
   ==================== */
.partners {
    background: var(--bg-gray);
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.partner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
    min-height: 120px;
}

.partner:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.partner img {
    max-height: 80px;
    width: auto;
}

.partner--sophos,
.partner--xpose {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner__text-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0091d4;
    letter-spacing: 2px;
}

.partner__text-logo--xpose {
    color: var(--primary-color);
    font-weight: 800;
}

/* ==================== 
   Contact Section 
   ==================== */
.contact {
    padding: 0;
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
    min-height: 600px;
}

.contact__map {
    position: relative;
    width: 100%;
    height: 100%;
}

.contact__map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact__info {
    background: white;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact__info .section__title {
    margin-bottom: 2.5rem;
    font-size: 2.25rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact__icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact__icon svg {
    width: 26px;
    height: 26px;
}

.contact__text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.contact__text strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.contact__text a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact__text a:hover {
    text-decoration: underline;
}

/* ==================== 
   Footer 
   ==================== */
.footer {
    background-color: #2c2c2c;
    padding: 2rem 0;
    text-align: center;
}

.footer__content {
    margin-bottom: 1.5rem;
}

.footer__section {
    margin-bottom: 1rem;
}

.footer__title {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__contacts {
    color: #d0d0d0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer__contacts p {
    margin-bottom: 1rem;
}

.footer__contacts a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__contacts a:hover {
    color: var(--secondary-color);
}

.footer__text {
    color: #d0d0d0;
    font-size: 0.9375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* ==================== 
   Scroll to Top Button 
   ==================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== 
   Responsive Design 
   ==================== */
@media screen and (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__subtitle {
        font-size: 1rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero-carousel__arrow {
        width: 40px;
        height: 40px;
    }

    .hero-carousel__arrow--prev {
        left: 1rem;
    }

    .hero-carousel__arrow--next {
        right: 1rem;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about__values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .events__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service {
        grid-template-columns: 200px 1fr;
        min-height: 240px;
    }

    .service__content {
        padding: 2rem 1.5rem;
    }

    .partners__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .partner {
        padding: 1.25rem;
        min-height: 100px;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact__map {
        min-height: 400px;
    }

    .contact__info {
        padding: 3rem 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: white;
        padding: 4rem 2rem;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 100;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .nav__link {
        font-size: 1.125rem;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
    }

    .nav__toggle {
        display: block;
        font-size: 1.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .service {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service__image {
        height: 200px;
    }

    .service__content {
        padding: 2rem;
    }

    .events__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .events__item {
        padding: 0 0 1.75rem 0;
    }
    
    .events__icon {
        height: 150px;
    }
    
    .events__item h3,
    .events__item p {
        padding: 0 1.25rem;
    }

    .partners__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .partner {
        padding: 1rem;
        min-height: 90px;
    }

    .contact__map {
        min-height: 350px;
    }

    .contact__info {
        padding: 2.5rem 1.5rem;
    }

    .contact__details {
        gap: 2rem;
    }

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .testimonials {
        padding: 1.5rem;
    }

    .service__image {
        height: 180px;
    }

    .service__content {
        padding: 1.5rem;
    }

    .service__title {
        font-size: 1.25rem;
    }

    .events__icon {
        width: 100px;
        height: 100px;
    }

    .events__item h3 {
        font-size: 1.125rem;
    }

    .partners__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact__info {
        padding: 2rem 1.25rem;
    }

    .contact__info .section__title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .contact__details {
        gap: 1.5rem;
    }

    .contact__item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .contact__icon {
        width: 48px;
        height: 48px;
    }
}
