/* --- ГЛОБАЛЬНЫЕ СТИЛИ (Этап 0) --- */
:root {
    --color-powder: #F5EBE0;
    /* Пудровый базовый */
    --color-powder-dark: #D5BDAF;
    /* Темная пудра */
    --color-brown: #4E342E;
    /* Глубокий коричневый */
    --color-brown-light: #6D4C41;
    --color-white: #FFFFFF;
    --color-text: #2C1B18;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-powder);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn--header {
    background-color: var(--color-brown);
    color: var(--color-white);
    font-size: 0.9rem;
}

.btn--header:hover {
    background-color: var(--color-brown-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 52, 46, 0.2);
}

/* --- ХЕДЕР (Этап 1) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header--scrolled {
    background: rgba(245, 235, 224, 0.8);
    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;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-brown);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-brown);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

/* --- ФУТЕР (Этап 2) --- */
.footer {
    background-color: var(--color-brown);
    color: var(--color-powder);
    padding: 80px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.logo--footer .logo__text {
    color: var(--color-powder);
    margin-bottom: 20px;
    display: inline-block;
}

.footer__description {
    opacity: 0.8;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--color-white);
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer__links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.icon-sm {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.footer__bottom {
    border-top: 1px solid rgba(245, 235, 224, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Mobile Adaptive */
@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav {
        display: none;
    }

    .burger {
        display: block;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}
/* --- HERO SECTION --- */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(213, 189, 175, 0.3), transparent);
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-powder-dark);
    color: var(--color-brown);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--color-brown);
    margin-bottom: 25px;
}

.hero__title span {
    color: var(--color-brown-light);
    font-weight: 300;
}

.hero__text {
    font-size: 1.1rem;
    color: var(--color-text);
    max-width: 540px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero__btns {
    display: flex;
    gap: 20px;
}

.btn--primary {
    background-color: var(--color-brown);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-text);
    transform: translateY(-3px);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-brown);
    border: 1px solid var(--color-brown);
}

.btn--secondary:hover {
    background-color: var(--color-brown);
    color: var(--color-white);
}

/* Визуальная часть */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__shape-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero__svg {
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(78, 52, 46, 0.15));
}

.hero__image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 5px solid var(--color-white);
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__dot {
    position: absolute;
    background: var(--color-brown-light);
    border-radius: 50%;
    z-index: -1;
}

.hero__dot--1 {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 10%;
    opacity: 0.3;
}

.hero__dot--2 {
    width: 80px;
    height: 80px;
    bottom: 10%;
    left: 0;
    opacity: 0.1;
}

@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }

    .hero__text {
        margin: 0 auto 40px;
    }

    .hero__btns {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }
}
/* --- SERVICES --- */
.services {
    padding: 100px 0;
    background-color: var(--color-white);
}

.section-head {
    margin-bottom: 60px;
    max-width: 700px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-brown);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title span {
    font-weight: 300;
    font-style: italic;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-powder);
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--color-white);
    border-color: var(--color-powder-dark);
    box-shadow: 0 20px 40px rgba(78, 52, 46, 0.08);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: var(--color-brown);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 25px;
}

.service-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-brown);
}

.service-card__text {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.service-card__list {
    border-top: 1px solid rgba(78, 52, 46, 0.1);
    padding-top: 20px;
}

.service-card__list li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.service-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-brown-light);
}

/* --- CASES --- */
.cases {
    padding: 100px 0;
    background-color: var(--color-powder);
}

.cases__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.cases__tag {
    color: var(--color-brown-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.cases__title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin: 20px 0 30px;
    color: var(--color-brown);
}

.cases__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-brown);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.cases__items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.case-item:nth-child(2) {
    margin-top: 40px;
}

.case-item__image {
    height: 100%;
    width: 100%;
}

.case-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.case-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(78, 52, 46, 0.9), transparent);
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-item:hover .case-item__overlay {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 992px) {
    .cases__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-item:nth-child(2) {
        margin-top: 0;
    }
}
/* --- EXPERTISE --- */
.expertise {
    padding: 120px 0;
    background-color: var(--color-white);
}

.expertise__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.tag {
    color: var(--color-brown-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.skills {
    margin-top: 40px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-brown);
}

.skill-bar {
    height: 6px;
    background: var(--color-powder);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--color-brown);
    width: 0;
    /* Анимируется через JS */
}

.expertise__image {
    position: relative;
}

.img-main {
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(78, 52, 46, 0.1);
}

.exp-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--color-brown);
    color: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    max-width: 240px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.exp-card__icon {
    margin-bottom: 15px;
    color: var(--color-powder-dark);
}

/* --- BLOG --- */
.blog {
    padding: 100px 0;
    background-color: var(--color-powder);
}

.text-center {
    text-align: center;
    margin-bottom: 60px;
}

.text-center .section-title {
    margin-left: auto;
    margin-right: auto;
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(78, 52, 46, 0.1);
}

.blog-card__img {
    position: relative;
    height: 220px;
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-card__body {
    padding: 30px;
}

.blog-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-brown);
    line-height: 1.4;
}

.blog-card__excerpt {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

.blog-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-brown-light);
}

@media (max-width: 992px) {
    .expertise__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .exp-card {
        bottom: 20px;
        left: 20px;
    }
}
/* --- CONTACT SECTION --- */
.contact {
    padding: 120px 0;
    background-color: var(--color-white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact__lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.contact__item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact__item i {
    color: var(--color-brown-light);
}

.contact__item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.6;
}

.contact__item p {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-brown);
}

.form {
    background: var(--color-powder);
    padding: 50px;
    border-radius: 30px;
    position: relative;
}

.form__group {
    margin-bottom: 20px;
}

.form__input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--color-powder-dark);
    border-radius: 12px;
    background: var(--color-white);
    font-family: inherit;
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-brown);
    box-shadow: 0 0 0 4px rgba(78, 52, 46, 0.05);
}

.form__captcha {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form__input--captcha {
    width: 80px;
}

.form__checkbox {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    cursor: pointer;
}

.btn--full {
    width: 100%;
}

.form__success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-brown);
    color: var(--color-white);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-powder);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-menu.is-active {
    right: 0;
}

.mobile-nav__list {
    text-align: center;
}

.mobile-nav__list li {
    margin-bottom: 30px;
}

.mobile-nav__list a {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-brown);
}

.burger.is-active span {
    background: transparent;
}

.burger.is-active span::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.is-active span::after {
    transform: rotate(-45deg) translate(7px, -7px);
}

.burger span,
.burger span::before,
.burger span::after {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-brown);
    transition: 0.3s;
    content: '';
}

.burger span::before {
    margin-bottom: 6px;
}

.burger span::after {
    margin-top: 6px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--color-white);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-popup p {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .cookie-popup {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
/* --- СТИЛИ ДЛЯ ВНУТРЕННИХ СТРАНИЦ --- */
.pages {
    padding: 160px 0 100px;
    min-height: 80vh;
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 3.5rem);
    color: var(--color-brown);
    margin-bottom: 30px;
    line-height: 1.2;
}

.pages p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 40px;
    opacity: 0.85;
}

/* Сетка карточек на странице контактов */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.contact-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid var(--color-powder-dark);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(78, 52, 46, 0.05);
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    background: var(--color-powder);
    color: var(--color-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 25px;
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-brown);
}

.contact-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 3em;
}

.contact-link {
    font-weight: 700;
    color: var(--color-brown-light);
    font-size: 1.1rem;
    word-break: break-all;
}

.contact-address {
    font-style: normal;
    font-weight: 600;
    color: var(--color-brown);
    line-height: 1.5;
}

.contact-extra {
    border-top: 1px solid var(--color-powder-dark);
    padding-top: 40px;
}

.contact-extra a {
    color: var(--color-brown-light);
    text-decoration: underline;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pages {
        padding-top: 120px;
    }

    .contact-card {
        padding: 30px;
    }
}