/* === СОЛНЕЧНАЯ ПАЛИТРА АНАПЫ === */
:root {
    /* Основные цвета: песок и солнце */
    --color-primary: #D4A373;     /* Теплый песчаный, как пляжи Анапы */
    --color-primary-dark: #BC8A5F; /* Более насыщенный для акцентов и ховеров */
    --color-accent: #F4A261;      /* Солнечный янтарь */
    --color-accent-hover: #E76F51; /* Коралловый закат для ярких кнопок */
    --color-bg: #FFFBF5;          /* Теплый, почти белый фон */
    --color-surface: #FFFFFF;
    --color-text: #4A3B32;        /* Темно-коричневый для текста, мягче черного */
    --color-text-light: #8C7569;  /* Светло-коричневый для описаний */
    --color-border: #F0E6D6;      /* Цвет границ, как высохшая глина */
    --color-success: #2A9D8F;     /* Бирюзовый для акцентов одобрения */

    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;

    --container-max-width: 1200px;
    --section-padding: 70px 0;
    --border-radius: 16px;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--color-border);
    border-radius: var(--border-radius);
    object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Типографика */
.section-header { text-align: center; margin-bottom: 50px; }
.section-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--color-text);
}
.section-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}
.text--highlight { color: var(--color-accent-hover); }

/* Кнопки в солнечном стиле */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.2;
}
.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-surface);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}
.btn--accent {
    background-color: var(--color-accent-hover);
    color: var(--color-surface);
    border-color: var(--color-accent-hover);
}
.btn--accent:hover {
    background-color: #D45D44;
}
.btn--large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Шапка */
.header {
    background-color: var(--color-surface);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}
.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; z-index: 101; }
.logo__icon { font-size: 28px; }
.logo__text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav__list { display: flex; gap: 20px; }
.main-nav__link {
    color: var(--color-text-light);
    font-weight: 500;
    transition: var(--transition);
}
.main-nav__link:hover { color: var(--color-primary-dark); }

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 5px;
}
.burger-menu__line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* HERO */
.hero {
    background: linear-gradient(180deg, #FFFBF5 0%, #FDF3E7 100%);
    padding-top: 50px;
    padding-bottom: 60px;
}
.hero__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 16px;
    text-align: center;
}
.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
    text-align: center;
    max-width: 550px;
}
.hero__actions {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}
.hero__stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__number {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent-hover);
}
.stat__label { font-size: 13px; color: var(--color-text-light); }
.hero__image .image-placeholder { width: 100%; height: 280px; }

/* УСЛУГИ */
.services { padding: var(--section-padding); background-color: var(--color-surface); }
.services__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.service-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.06); }
.service-card__image .image-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 0;
}
.service-card__content { padding: 28px; }
.service-card__title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--color-text);
}
.service-card__text { color: var(--color-text-light); margin-bottom: 24px; font-size: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.feature-list__item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--color-text); }
.checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-success);
    position: relative;
    flex-shrink: 0;
}
.checkmark::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 5px;
    height: 10px;
    border: solid var(--color-surface);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.service-card__btn { width: 100%; }

/* О НАС */
.about { padding: var(--section-padding); }
.about__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}
.about__image .image-placeholder { width: 100%; height: 300px; }
.about__text { margin-bottom: 24px; color: var(--color-text-light); font-size: 16px; }
.about__benefits { display: flex; flex-direction: column; gap: 20px; }
.benefit { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.benefit__icon { font-size: 24px; }

/* CTA */
.cta { padding: var(--section-padding); }
.cta__block {
    background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
    border-radius: var(--border-radius);
    padding: 50px 24px;
    text-align: center;
    color: var(--color-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.cta__title {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 4px;
}
.cta__subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Блок с контактами внутри CTA */
.cta__contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.cta__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
}
.cta__contact-icon {
    font-size: 22px;
}
.cta__contact-link {
    color: var(--color-surface);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}
.cta__contact-link:hover {
    color: #FFF;
    text-decoration: none;
}
.cta__contact-text {
    color: rgba(255, 255, 255, 0.95);
}

/* ПОДВАЛ */
.footer {
    background-color: var(--color-surface);
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}
.footer__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}
.footer__brand { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--color-text); }
.footer__address, .footer__legal { font-size: 14px; color: var(--color-text-light); margin-top: 6px; }
.footer__phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-accent-hover);
    transition: var(--transition);
}
.footer__phone:hover { color: var(--color-primary-dark); }
.footer__hours {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 4px;
}
.footer__nav-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 16px;
}
.footer__nav-list a {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 2;
    transition: var(--transition);
}
.footer__nav-list a:hover { color: var(--color-accent-hover); }

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

@media (min-width: 768px) {
    .section-title { font-size: 38px; }
    .hero__container { flex-direction: row; text-align: left; }
    .hero__content { flex: 1; }
    .hero__image { flex: 1; }
    .hero__title, .hero__subtitle { text-align: left; }
    .hero__actions { justify-content: flex-start; }
    .hero__stats { justify-content: flex-start; }
    .about__container { flex-direction: row; }
    .about__image { flex: 1; }
    .about__content { flex: 1; }
    .cta__contact-details {
        flex-direction: row;
        gap: 30px;
    }
    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    .services__grid { flex-direction: row; gap: 40px; }
    .service-card { flex: 1; }
}

@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-surface);
        flex-direction: column;
        justify-content: center;
        padding: 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }
    .main-nav--active { right: 0; }
    .main-nav__list { flex-direction: column; gap: 25px; text-align: center; margin-bottom: 30px; }
    .main-nav__link { font-size: 20px; }
    .burger-menu { display: flex; }
    .burger-menu--active .burger-menu__line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger-menu--active .burger-menu__line:nth-child(2) { opacity: 0; }
    .burger-menu--active .burger-menu__line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}