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

:root {
    --color-bg-primary: #F6F1E7;
    --color-bg-secondary: #DCE3D5;
    --color-accent-dark: #1C3B32;
    --color-accent: #B08D57;
    --color-text: #2A2A28;
    --color-white: #FFFFFF;
    --border-radius-pill: 999px;
    --border-radius-card: 28px;
    --border-radius-large: 32px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1rem;
}

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(246, 241, 231, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-accent-dark);
}

.header__logo img {
    height: 128px;
    width: 128px;
}

.header__nav {
    display: flex;
    gap: 30px;
}

.header__nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.header__nav-link:hover {
    color: var(--color-accent);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius-pill);
    background: rgba(176, 141, 87, 0.1);
}

.header__contact-item {
    font-size: 0.85rem;
    color: var(--color-accent-dark);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.header__burger-line {
    width: 25px;
    height: 3px;
    background: var(--color-accent-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   MOBILE MENU
   =================================== */
.mobile-menu {
    position: fixed;
    top: 100px;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-bg-primary);
    z-index: 999;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu--active {
    right: 0;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-accent-dark);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-menu__link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
}

.mobile-menu__link:hover {
    color: var(--color-accent);
}

.mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--color-accent);
}

.mobile-menu__contact {
    font-size: 0.9rem;
    color: var(--color-accent-dark);
}

.mobile-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu__overlay--active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(176, 141, 87, 0.3);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn--outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* ===================================
   SECTION STYLES
   =================================== */
.section {
    padding: 180px 0;
}

.section--bg-secondary {
    background-color: var(--color-bg-secondary);
}

.section__title {
    text-align: center;
    margin-bottom: 60px;
}

.section__title h2 {
    color: var(--color-accent-dark);
}

/* ===================================
   WAVE DIVIDER
   =================================== */
.wave-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-divider--top svg {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

/* ===================================
   HERO
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    z-index: 2;
}

.hero__badge {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    color: var(--color-accent-dark);
    font-size: 0.9rem;
    margin-bottom: 25px;
    background: rgba(176, 141, 87, 0.1);
}

.hero__title {
    color: var(--color-accent-dark);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 50% 50% 0 0;
    clip-path: ellipse(100% 85% at 50% 100%);
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.card--asymmetric {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-large);
    margin-bottom: 20px;
}

.card__title {
    color: var(--color-accent-dark);
    margin-bottom: 15px;
}

.card__text {
    color: var(--color-text);
    opacity: 0.9;
    margin-bottom: 15px;
}

.card__price {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: var(--border-radius-pill);
    font-weight: 600;
}

/* ===================================
   SERVICES GRID
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.services-grid__card:nth-child(odd) {
    background: var(--color-bg-secondary);
}

/* ===================================
   ADVANTAGES
   =================================== */
.advantages__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantages__item {
    text-align: center;
}

.advantages__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantages__icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
}

.advantages__title {
    color: var(--color-accent-dark);
    margin-bottom: 10px;
}

/* ===================================
   STATISTICS
   =================================== */
.statistics {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.statistics__item {
    text-align: center;
    position: relative;
}

.statistics__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: var(--color-accent);
}

.statistics__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
}

.statistics__label {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
}

/* ===================================
   WARNING PANEL
   =================================== */
.warning-panel {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius-card);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}

.warning-panel__title {
    color: var(--color-accent-dark);
    margin-bottom: 20px;
}

.warning-panel__text {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===================================
   TIMELINE
   =================================== */
.timeline {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.timeline__item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.timeline__marker {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.25rem;
}

.timeline__title {
    color: var(--color-accent-dark);
    margin-bottom: 10px;
}

/* ===================================
   TEAM
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.team__member {
    text-align: center;
}

.team__photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--color-accent);
}

.team__name {
    color: var(--color-accent-dark);
    margin-bottom: 5px;
}

.team__position {
    color: var(--color-accent);
    font-weight: 500;
}

/* ===================================
   VALUES
   =================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value__item {
    text-align: center;
}

.value__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.value__icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-accent);
}

.value__title {
    color: var(--color-accent-dark);
    margin-bottom: 15px;
}

/* ===================================
   CONTACT
   =================================== */
.contact-card {
    background: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact__item {
    text-align: center;
}

.contact__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.contact__icon svg {
    width: 100%;
    height: 100%;
    fill: var(--color-accent);
}

.contact__text {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* ===================================
   FORMS
   =================================== */
.form {
    max-width: 600px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-accent-dark);
    font-weight: 500;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E0D5C5;
    border-radius: var(--border-radius-pill);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--color-white);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form__input--error,
.form__textarea--error {
    border-color: #E74C3C;
}

.form__input--error + .form__error,
.form__textarea--error + .form__error {
    display: block;
}

.form__success {
    display: none;
    background: #27AE60;
    color: var(--color-white);
    padding: 15px 20px;
    border-radius: var(--border-radius-pill);
    text-align: center;
    margin-top: 20px;
}

.form__success--visible {
    display: block;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-accent-dark);
    color: var(--color-white);
    padding: 60px 0 30px;
    position: relative;
}

.footer__wave {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.footer__wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer__logo img {
    height: 128px;
    width: 128px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__contact {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   LEGAL PAGES
   =================================== */
.legal-section {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section h2 {
    color: var(--color-accent-dark);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-section h2:first-child {
    margin-top: 0;
}

.legal-section p,
.legal-section li {
    color: var(--color-text);
    line-height: 1.8;
}

.legal-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 10px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__content {
        order: 2;
    }
    
    .hero__image-wrapper {
        order: 1;
    }
    
    .statistics__item:not(:last-child)::after {
        display: none;
    }
    
    .statistics {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header__nav,
    .header__contacts {
        display: none;
    }
    
    .header__burger {
        display: flex;
    }
    
    .hero__image {
        height: 350px;
    }
    
    .timeline {
        flex-direction: column;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .contact__info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero__badge {
        font-size: 0.75rem;
        padding: 8px 15px;
    }
    
    .statistics__number {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
}

/* ===================================
   COOKIE POPUP
   =================================== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    color: var(--color-light);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-popup--visible {
    display: block;
}

.cookie-popup__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-popup__text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-popup__buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-popup__link {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.cookie-popup__link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-popup__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-popup__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-popup__buttons .btn {
        width: 100%;
    }
}
