/* ============================================================
   СТИЛИ САЙТА "ГИДЕОНН" (гидеонн.рф)
   Авторский шаблон для гида-экскурсовода
   ============================================================ */


/* ============ СБРОС И БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #fdfdfd;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea {
    font: inherit;
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230,126,34,.15);
}

/* ============ ОБЩИЕ КОМПОНЕНТЫ ============ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2c3e50;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e67e22;
    margin: .75rem auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: .9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    cursor: pointer;
}
.btn--primary {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    box-shadow: 0 4px 14px rgba(230,126,34,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,126,34,.45); }
.btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--sm {
    padding: .6rem 1.2rem;
    font-size: .9rem;
}

/* ============ ШАПКА ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .85rem 1.25rem;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}
.logo__svg { width: 70px; height: 30px; }
.logo__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: .5px;
}
.logo__text::first-letter { color: #e67e22; }

/* Навигация */
.nav__list { display: flex; gap: 1.75rem; }
.nav__link {
    font-weight: 500;
    position: relative;
    padding: .3rem 0;
}
.nav__link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: #e67e22;
    transition: width .25s ease;
}
.nav__link:hover,
.nav__link--active { color: #e67e22; }
.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

/* Контакты в шапке */
.header__contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header__phone {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}
.header__phone:hover { color: #e67e22; }

.socials { display: flex; gap: .5rem; }
.socials__link {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f5;
    color: #2c3e50;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.socials__link svg { width: 18px; height: 18px; }
.socials__link:hover {
    background: #e67e22;
    color: #fff;
    transform: translateY(-2px);
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
}
.burger span {
    display: block;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
/* ============ DROPDOWN-МЕНЮ ============ */
.nav__item--dropdown {
    position: relative;
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: .5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 99;
    list-style: none;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-link {
    display: block;
    padding: .6rem 1.25rem;
    color: #2c3e50;
    font-size: .95rem;
    transition: background .2s ease, color .2s ease;
    white-space: nowrap;
}

.nav__dropdown-link:hover {
    background: #f8f9fa;
    color: #e67e22;
}

.nav__dropdown-divider {
    padding: .5rem 1.25rem;
    margin: .4rem 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    background: #fdfdfd;
}

.nav__dropdown-divider span {
    display: block;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7f8c8d;
}

/* Адаптивность для dropdown на мобильных */
@media (max-width: 768px) {
    .nav__item--dropdown {
        width: 100%;
    }
    
    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 8px;
        margin-top: .5rem;
        padding: .5rem;
        display: none;
    }
    
    .nav__item--dropdown.nav--open .nav__dropdown {
        display: block;
    }
    
    .nav__dropdown-link {
        padding: .5rem 1rem;
        font-size: .9rem;
    }
    
    .nav__dropdown-divider {
        margin: .3rem 0;
        padding: .4rem 1rem;
    }
}

/* ============ HERO (ГЛАВНАЯ) ============ */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(44,62,80,.85), rgba(230,126,34,.7)),
        url('https://gideonn.ru/fon/photo-1467269204594-9661b134dd2b.jfif') center/cover no-repeat;
}
.hero__inner { padding: 4rem 1.25rem; max-width: 780px; }
.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.hero__title span { color: #f39c12; }
.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: .95;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ ПРЕИМУЩЕСТВА (ГЛАВНАЯ) ============ */
.features { padding: 5rem 0; background: #f8f9fa; }
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,.1);
}
.feature-card__icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: .6rem; color: #2c3e50; }
.feature-card p { color: #555; font-size: .95rem; }

/* ============ ВИДЕО (ГЛАВНАЯ) ============ */
.video-section { padding: 5rem 0; }
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.video-section__note {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
    font-size: .9rem;
}

/* ============ ПОДВАЛ ============ */
.footer {
    background: #1a252f;
    color: #bdc3c7;
    padding: 3rem 0 0;
}
.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}
.footer__about { margin-top: 1rem; font-size: .9rem; line-height: 1.6; }
.footer__nav li { margin-bottom: .5rem; }
.footer__nav a:hover { color: #e67e22; }
.footer p { margin-bottom: .5rem; }
.footer p a:hover { color: #e67e22; }
.socials--footer .socials__link {
    background: rgba(255,255,255,.08);
    color: #ecf0f1;
}
.socials--footer .socials__link:hover { background: #e67e22; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem 0;
    text-align: center;
    font-size: .85rem;
}
.logo--footer .logo__text { color: #fff; }

/* ============ HERO-БАННЕР ВНУТРЕННИХ СТРАНИЦ ============ */
.page-hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    text-align: center;
}
.page-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: .5rem;
}
.page-hero__subtitle { opacity: .85; }

/* ============ СТРАНИЦА "ОБО МНЕ" ============ */
.about { padding: 4rem 0; }
.about__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}
.about__photo-placeholder {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    background: #ecf0f1;
}
.about__content h2 {
    font-size: 2rem;
    margin-bottom: .3rem;
    color: #2c3e50;
}
.about__role {
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.about__content p { margin-bottom: 1rem; color: #555; }
.about__content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 .75rem;
    color: #2c3e50;
}
.about__list {
    list-style: none;
    margin-bottom: 1rem;
}
.about__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .5rem;
    color: #555;
}
.about__list li::before {
    content: '';
    position: absolute;
    left: 0; top: .55rem;
    width: 8px; height: 8px;
    background: #e67e22;
    border-radius: 50%;
}

/* ============ СТРАНИЦА "ЭКСКУРСИИ" ============ */
.exc-intro {
    padding: 2.5rem 0 0;
    text-align: center;
}
.exc-intro__text {
    max-width: 760px;
    margin: 0 auto;
    color: #555;
    font-size: 1.05rem;
}
.exc-section { padding: 4rem 0; }
.exc-section--alt { background: #f8f9fa; }

.exc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.75rem;
}
.exc-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.exc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}
.exc-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #e67e22;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.exc-card__badge--new { background: #27ae60; }
.exc-card__title {
    font-size: 1.3rem;
    margin-bottom: .75rem;
    color: #2c3e50;
    padding-right: 4rem;
}
.exc-card__meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    color: #7f8c8d;
}
.exc-card__desc {
    color: #555;
    font-size: .95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.exc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}
.exc-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e67e22;
}

/* ============ СТРАНИЦА "МАРШРУТЫ" ============ */
.routes { padding: 4rem 0; }
.route {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    border-left: 5px solid #e67e22;
}
.route__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.route__type {
    display: inline-block;
    padding: .3rem .8rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .5rem;
}
.route__type--auto { background: #3498db; color: #fff; }
.route__type--walk { background: #27ae60; color: #fff; }
.route__title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: .3rem;
}
.route__meta {
    color: #7f8c8d;
    font-size: .9rem;
}
.route__desc {
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.route__points {
    counter-reset: point;
    list-style: none;
    padding-left: 0;
}
.route__points li {
    position: relative;
    padding: .75rem 0 .75rem 3rem;
    border-left: 2px dashed #dfe4ea;
    margin-left: 1rem;
}
.route__points li::before {
    counter-increment: point;
    content: counter(point);
    position: absolute;
    left: -1rem;
    top: .6rem;
    width: 2rem;
    height: 2rem;
    background: #e67e22;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 2px 6px rgba(230,126,34,.35);
}
.route__points li:last-child { border-left-color: transparent; }

/* ============ СТРАНИЦА "КОНТАКТЫ" ============ */
.contacts-main { padding: 4rem 0; }
.contacts-main__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.contact-block {
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.contact-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}
.contact-block__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}
.contact-block h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: .75rem;
}
.contact-block__value {
    color: #e67e22;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-block;
    word-break: break-word;
}
.contact-block__value:hover { color: #d35400; }
.contact-block__hint {
    color: #7f8c8d;
    font-size: .85rem;
    margin-top: .5rem;
}

.info-section { padding: 0 0 4rem; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}
.info-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 2rem;
}
.info-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: #2c3e50;
}
.info-list { list-style: none; }
.info-list li {
    display: flex;
    justify-content: space-between;
    padding: .6rem 0;
    border-bottom: 1px solid #ecf0f1;
    gap: 1rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list span { color: #555; }
.info-list strong { color: #2c3e50; }
.info-note {
    margin-top: 1rem;
    font-size: .9rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Карта */
.map-section {
    padding: 4rem 0;
    background: #f8f9fa;
}
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 50%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    background: #ecf0f1;
}
.map-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.map-note {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
    font-size: .9rem;
}

/* ============ CTA-БЛОК (общий для всех страниц) ============ */
.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    text-align: center;
}
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: .75rem;
}
.cta p {
    opacity: .9;
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}


/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

/* Планшеты */
@media (max-width: 900px) {
    .about__grid { grid-template-columns: 1fr; }
    .about__photo { max-width: 320px; margin: 0 auto; }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .burger { display: flex; }

    .nav {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,.1);
        padding: 1.5rem;
        transform: translateY(-150%);
        transition: transform .3s ease;
    }
    .nav.nav--open { transform: translateY(0); }
    .nav__list { flex-direction: column; gap: 1rem; }

    .header__contacts { display: none; }
    .header__inner { padding: .75rem 1rem; }

    .hero { min-height: 420px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }

    /* Экскурсии */
    .exc-card__footer { flex-direction: column; align-items: flex-start; }
    .exc-card__price { font-size: 1.1rem; }

    /* Маршруты */
    .route { padding: 1.5rem 1.25rem; }
    .route__title { font-size: 1.25rem; }
    .route__points li { padding-left: 2.5rem; }

    /* Контакты */
    .info-list li { flex-direction: column; gap: .2rem; }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    .logo__text { font-size: 1.05rem; }
    .logo__svg { width: 55px; height: 24px; }
    .features, .video-section { padding: 3rem 0; }
    .section-title { margin-bottom: 1.75rem; }

    .exc-section, .routes, .contacts-main, .map-section { padding: 3rem 0; }
    .contact-block { padding: 1.5rem 1rem; }
    .route__header { flex-direction: column; }
}