/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TildaSans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: flex-end;
    text-align: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4A90E2;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4A90E2;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #4A90E2;
}

/* Hero Section */
.hero {
    height: 60vh;
    /* при желании замените на 60svh для iOS */
    background-image:
        linear-gradient(135deg, rgba(136, 136, 136, 0.5) 0%, rgba(136, 136, 136, 0.5) 100%),
        url('background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    /* безопасно по умолчанию */
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
}

@media (hover:hover) and (pointer:fine) {
    .hero {
        background-attachment: fixed;
    }
}

@supports (height: 1svh) {
    .hero {
        height: 60svh;
    }
}

.hero-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 60px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-arrow {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 2px solid white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.arrow-link:hover {
    background: white;
    transform: scale(1.1);
}

.arrow-link:hover svg path {
    stroke: #4A90E2;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f3f8fc;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
}

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4A90E2;
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-description p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.about-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4A90E2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-circle:hover {
    transform: scale(1.1);
    background: #357ABD;
}

/* Activity Section */
.activity {
    padding: 100px 0;
    background: white;
}

.activity-title {
    text-align: center;
    margin-bottom: 80px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.activity-item {
    background: #f3f8fc;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.activity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #4A90E2;
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

.activity-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.4;
}

.activity-item-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contacts Section */
.contacts {
    padding: 60px 20px;
    background: #f3f8fc;
}

.contacts .container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #222;
    text-align: center;
}

/* Контент теперь всегда колонкой */
.contacts-content {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* Карточка */
.contact-item {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* Заголовок карточки с подчёркиванием на всю ширину */
.card-title {
    font-size: 20px;
    margin: 0 0 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    width: 100%;
}

/* Ряд "подпись: значение" */
.field-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
}

.field-label {
    flex: 1;
    font-weight: 600;
    color: #111;
    min-width: 140px;
    max-width: 220px;
}

.field-value {
    flex: 2;
    color: #444;
    line-height: 1.55;
    word-break: break-word;
}

.phone {
    font-weight: 600;
}

.field-value.email,
.field-value.email a {
    color: #ff8562;
    text-decoration: none;
}

.field-value.email a:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }

    .card-title {
        font-size: 18px;
    }

    .field-row {
        flex-direction: column;
        gap: 4px;
    }

    .field-label,
    .field-value {
        min-width: 0;
        max-width: none;
    }
}


/* Footer */
.footer {
    background: #2c3e50;
    padding: 40px 0;
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logos {
    display: flex;
    gap: 20px;
    /* расстояние между логотипами */
    align-items: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 0.8;
    /* небольшой эффект при наведении */
}

.footer-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-list {
        gap: 20px;
    }

    .hero {
        height: 50vh;
        margin-top: 60px;
        background-size: cover;
        background-position: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .activity-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .about-icons {
        gap: 20px;
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: 45vh;
        margin-top: 50px;
        background-size: cover;
        background-position: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .activity-item {
        padding: 30px 20px;
    }

    .contact-item .phone {
        font-size: 1.5rem;
    }
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.activity-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.activity-item:nth-child(1) {
    animation-delay: 0.1s;
}

.activity-item:nth-child(2) {
    animation-delay: 0.2s;
}

.activity-item:nth-child(3) {
    animation-delay: 0.3s;
}

.activity-item:nth-child(4) {
    animation-delay: 0.4s;
}

.activity-item:nth-child(5) {
    animation-delay: 0.5s;
}

.activity-item:nth-child(6) {
    animation-delay: 0.6s;
}