/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #ffffff;
    color: #0B1F3A;
    line-height: 1.6;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);

    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

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

.logo {
    font-weight: 600;
    font-size: 18px;
    color: #0B1F3A;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =========================
   PHONE
========================= */
.phone {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.phone:hover {
    opacity: 0.8;
}

/* =========================
   LANGUAGE
========================= */
.lang button {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.2);
    color: #0B1F3A;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.lang button:hover {
    background: rgba(0,0,0,0.05);
}

/* =========================
   SOCIAL ICONS
========================= */
.socials {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f5f9;
    border-radius: 10px;

    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: #0B1F3A;
}

.social-icon:hover {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    transform: translateY(-3px) scale(1.05);
}

.social-icon:hover svg {
    fill: #fff;
}

/* =========================
   HERO
========================= */
.hero {
    padding: 90px 0;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;

    animation: fadeUp 1s ease forwards;
}

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.7;

    animation: fadeUp 1.3s ease forwards;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;

    animation: fadeUp 1.6s ease forwards;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    text-decoration: none;

    box-shadow: 0 10px 25px rgba(0,198,255,0.3);
    transition: 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 15px 35px rgba(0,198,255,0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(0,0,0,0.2);
    padding: 12px 20px;
    border-radius: 10px;
    color: #0B1F3A;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

/* =========================
   SECTIONS
========================= */
section {
    padding: 70px 0;
}

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

/* =========================
   CARDS
========================= */
.service-card,
.about-card,
.process-step,
.tour-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;

    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);

    transition: all 0.3s ease;
}

.service-card:hover,
.about-card:hover,
.process-step:hover,
.tour-card:hover {
    transform: translateY(-6px) scale(1.02);
}

/* =========================
   GRIDS
========================= */
.services-grid,
.about-grid,
.process-grid,
.tours-grid {
    display: grid;
    gap: 20px;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-grid,
.process-grid,
.tours-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* =========================
   PROCESS
========================= */
.step-number {
    font-size: 20px;
    color: #3b82f6;
    margin-bottom: 5px;
}

/* =========================
   TOURS
========================= */

.tour-img {
    height: 140px;
    border-radius: 10px;
    margin-bottom: 10px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;

    transition: transform 0.4s ease;
}

/* затемнение поверх картинки */
.tour-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* hover эффект */
.tour-card:hover .tour-img {
    transform: scale(1.05);
}

/* =========================
   FAQ
========================= */

.faq-item.active {
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.faq-item {
    margin-bottom: 10px;
}

/* QUESTION */
.faq-question {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    cursor: pointer;
    transition: 0.25s ease;
}

.faq-question:hover {
    background: #e2e8f0;
}

/* ICON */
.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #4facfe;
    stroke-width: 2;
}

/* ROTATE ICON */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ANSWER */
.faq-answer {
    max-height: 0;
    overflow: hidden;

    opacity: 0;
    padding: 0 15px;

    transition: all 0.3s ease;
}

/* ACTIVE STATE */
.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding: 10px 15px 15px;
}

/* =========================
   FOOTER
========================= */
.footer {
    border-top: 1px solid #e2e8f0;
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer a {
    display: block;
    color: #3b82f6;
    text-decoration: none;
}

.footer a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    opacity: 0.6;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .hero-title {
        font-size: 30px;
    }

    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* =========================
   DARK HEADER + FOOTER
========================= */

.header {
    background: #0B1F3A !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
    color: #fff;
}

.phone {
    color: #4facfe;
}

.lang button {
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.lang button:hover {
    background: rgba(255,255,255,0.1);
}

.social-icon {
    background: rgba(255,255,255,0.08);
}

.social-icon svg {
    fill: #fff;
}


/* FOOTER */
.footer {
    background: #0B1F3A;
    border-top: none;
}

.footer a {
    color: #4facfe;
}

.footer-bottom {
    color: rgba(255,255,255,0.6);
}

.lang button.active {
    background: #4facfe;
    color: #fff;
    border-color: transparent;
}

/* =========================
   CONTACT FORM FIX
========================= */

.contact {
    background: #f8fafc;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto; /* центр */

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;

    border-radius: 10px;
    border: 1px solid #e2e8f0;

    font-size: 14px;
    outline: none;

    transition: 0.2s;
}

/* фокус */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 2px rgba(79,172,254,0.2);
}

/* textarea */
.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* кнопка */
.contact-form button {
    width: 100%;
    text-align: center;
}

/* =========================
   LOCAL TOUR IMAGES
========================= */

.tour-card:nth-child(1) .tour-img {
    background-image: url('./images/paris.jpg');
}

.tour-card:nth-child(2) .tour-img {
    background-image: url('./images/tokyo.jpg');
}

.tour-card:nth-child(3) .tour-img {
    background-image: url('./images/ny.jpg');
}

.tour-card:nth-child(4) .tour-img {
    background-image: url('./images/london.jpg');
}

/* =========================
   ABOUT / FOUNDER
========================= */

.about-container {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* выравниваем по верху */
}

.about-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%; /* лицо по центру, чуть выше */

    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #6a5af9, #ff7a18) border-box;

    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-avatar:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    max-width: 600px;
}

/* адаптив */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-avatar {
        object-position: top;
    }
}