:root {
    --color-primary: #5B3A1A;
    --color-primary-light: #8B7355;
    --color-primary-dark: #3E2610;
    --color-accent: #E3A945;
    --color-accent-light: #E0C872;
    --color-accent-dark: #A68932;
    --color-bg: #FDF8F3;
    --color-bg-card: #FFFFFF;
    --color-bg-section: #F7F0E9;
    --color-text: #2D2418;
    --color-text-light: #6B5D4F;
    --color-text-muted: #9E9184;
    --color-border: #E8DFD4;
    --color-success: #4CAF50;
    --color-badge-hit: #C4A24E;
    --color-badge-new: #2E7D32;
    --color-badge-sale: #C62828;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(91, 58, 26, 0.08);
    --shadow-md: 0 4px 12px rgba(91, 58, 26, 0.1);
    --shadow-lg: 0 8px 32px rgba(91, 58, 26, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.btn--primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
    background: var(--color-primary);
    color: #FFF;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Header */
.header {
    background: #FFF;
    border-bottom: 1px solid var(--color-border);
}

.header__top {
    background: var(--color-primary);
    color: var(--color-accent);
    font-size: 13px;
    padding: 6px 0;
}

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

.header__info-links {
    display: flex;
    gap: 20px;
}

.header__link {
    color: var(--color-accent);
    transition: color var(--transition);
}

.header__link:hover {
    color: #FFF;
}

.header__main {
    padding: 12px 0;
}

.header__main-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__logo-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
}

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.header__phone {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    transition: color var(--transition);
}

.header__phone:hover {
    color: var(--color-primary);
}


/* Hero */
.hero {
    padding: 60px 0;
    background: var(--color-bg-section);
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
}

.hero__stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

.hero__image {
    flex-shrink: 0;
    width: 460px;
    height: 400px;
}

.hero__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--color-text-light);
    margin-top: -24px;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Packages */
.packages {
    padding: 60px 0;
    background: var(--color-bg-section);
}

.packages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.package-card {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    border: 1px solid var(--color-border);
}

.package-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.package-card--featured {
    border: 2px solid var(--color-accent);
    transform: scale(1.03);
}

.package-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.package-card__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-primary-dark);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.package-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    margin-top: 8px;
}

.package-card__price {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.package-card__desc {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.5;
}

.package-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.package-card__list li {
    padding: 6px 0 6px 24px;
    font-size: 14px;
    color: var(--color-text);
    position: relative;
    line-height: 1.5;
}

.package-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.package-card__btn {
    width: 100%;
}

/* Form Section */
.form-section {
    padding: 60px 0;
    background: var(--color-primary-dark);
    color: #FFF;
}

.form-section__inner {
    display: flex;
    gap: 60px;
    align-items: center;
}

.form-section__info {
    flex: 1;
}

.form-section__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #FFF;
}

.form-section__text {
    font-size: 16px;
    color: var(--color-accent-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.form-section__benefits {
    list-style: none;
    padding: 0;
}

.form-section__benefits li {
    padding: 10px 0 10px 32px;
    font-size: 15px;
    color: #FFF;
    position: relative;
}

.form-section__benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 18px;
}

.form {
    flex: 1;
    max-width: 440px;
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 36px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-text);
    transition: border-color var(--transition);
    background: var(--color-bg);
}

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

.form__submit {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-bottom: 12px;
}

.form__note {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Why Us */
.why-us {
    padding: 60px 0;
    background: #FFF;
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-us__card {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.why-us__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-us__icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.why-us__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.why-us__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Works */
.works {
    padding: 60px 0;
    background: var(--color-bg-section);
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    background: #FFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.work-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.work-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.work-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
    opacity: 0.3;
}

.work-card__info {
    padding: 16px 20px;
}

.work-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.work-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.work-card__meta-item {
    font-weight: 600;
    color: var(--color-accent-dark);
}

.work-card__meta-divider {
    color: var(--color-text-muted);
}

/* Reviews */
.reviews {
    padding: 60px 0;
    background: #FFF;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-card__video {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.review-card__placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition);
}

.review-card__placeholder:hover {
    transform: scale(1.05);
}

.review-card__author {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.review-card__text {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    font-style: italic;
}

/* Blog */
.blog {
    padding: 60px 0;
    background: var(--color-bg-section);
}

.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: #FFF;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
    opacity: 0.15;
}

.blog-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.blog-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card__excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.blog-card__btn {
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: color var(--transition);
}

.blog-card__btn:hover {
    color: var(--color-primary-dark);
}

/* Blog Modal */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}

.blog-modal.open {
    display: block;
}

.blog-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.blog-modal__panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    max-width: 90vw;
    max-height: 80vh;
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 40px;
    overflow-y: auto;
}

.blog-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.blog-modal__close:hover {
    color: var(--color-text);
}

.blog-modal__content h2 {
    font-size: 24px;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

.blog-modal__content p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.blog-modal__content h3 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 12px;
    margin-top: 24px;
}

.blog-modal__content ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

.blog-modal__content li {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 6px;
}

/* Notification toast */
.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-primary-dark);
    color: #FFF;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    max-width: 380px;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.4s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-accent);
}

.notification__text {
    font-size: 14px;
    color: var(--color-accent-light);
    line-height: 1.5;
}

.notification__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-accent-light);
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    line-height: 1;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

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

.section-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-accent);
    transition: color var(--transition);
}

.section-link:hover {
    color: var(--color-primary-dark);
}


/* Footer */
.footer {
    background: var(--color-primary);
    color: var(--color-accent-light);
    padding: 48px 0 24px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer__logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.footer__logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.footer__logo-name {
    font-size: 20px;
    font-weight: 700;
    color: #FFF;
    line-height: 1.2;
}

.footer__logo-sub {
    font-size: 11px;
    color: var(--color-accent-light);
    letter-spacing: 0.5px;
}

.footer__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    transition: background var(--transition);
}

.footer__social:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.footer__title {
    font-size: 15px;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__link {
    display: block;
    font-size: 14px;
    color: var(--color-accent);
    padding: 4px 0;
    transition: color var(--transition);
}

.footer__link:hover {
    color: #FFF;
}

.footer__phone {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 8px;
}

.footer__email {
    display: block;
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.footer__address,
.footer__schedule {
    font-size: 14px;
    color: var(--color-accent);
    line-height: 1.6;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--color-accent);
}


/* Responsive */
@media (max-width: 1200px) {
    .packages__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .works__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .header__info-links {
        display: none;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__image {
        width: 380px;
        height: 320px;
    }

    .hero__title {
        font-size: 36px;
    }

    .form-section__inner {
        flex-direction: column;
        gap: 32px;
    }

    .form {
        max-width: 100%;
        width: 100%;
    }

    .form-section__title {
        font-size: 28px;
    }

    .packages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .works__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .package-card--featured {
        transform: none;
    }

    .package-card--featured:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header__contacts {
        display: none;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero__image {
        width: 100%;
        height: 260px;
    }

    .hero__title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-top: -16px;
        margin-bottom: 32px;
    }

    .packages__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .works__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .reviews__grid {
        grid-template-columns: 1fr;
    }

    .blog__grid {
        grid-template-columns: 1fr;
    }

    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .why-us__card {
        padding: 24px 16px;
    }

    .package-card {
        padding: 24px 20px;
    }

    .form {
        padding: 24px 20px;
    }

    .form-section__title {
        font-size: 24px;
    }

    .blog-modal__panel {
        padding: 24px 20px;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .works__grid {
        grid-template-columns: 1fr;
    }

    .why-us__grid {
        grid-template-columns: 1fr;
    }

    .notification {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}