/* =========================================================
   Общий «движок» анимаций страницы «О нас»
   (используется вместе с about.js — он проставляет data-reveal
   и оборачивает слова в .word на лету, т.к. текст приходит из админки)
   ========================================================= */
[data-reveal] {
    opacity: 0;
    transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease);
}
[data-reveal].is-visible { opacity: 1; }

.about-fade-up { transform: translateY(48px); }
.about-fade-up.is-visible { transform: translateY(0); }

.about-fade-scale { transform: scale(0.88); filter: blur(10px); }
.about-fade-scale.is-visible { transform: scale(1); filter: blur(0); }

.about-fade-left { transform: translateX(-70px) rotate(-3deg); filter: blur(6px); }
.about-fade-left.is-visible { transform: translateX(0) rotate(0deg); filter: blur(0); }

.about-fade-right { transform: translateX(70px) rotate(3deg); filter: blur(6px); }
.about-fade-right.is-visible { transform: translateX(0) rotate(0deg); filter: blur(0); }

[data-split] .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(32px) scale(0.92);
    filter: blur(6px);
    transition: opacity 1.3s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease);
}
[data-split].is-visible .word {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* Непрерывное фоновое «дыхание» мелких декоративных элементов */
.about-deco {
    position: absolute;
    pointer-events: none;
    color: var(--color-accent-dark);
    z-index: 0;
}
@keyframes aboutFloatA {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(7deg); }
}
@keyframes aboutFloatB {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12px, -16px) rotate(-6deg); }
}
@keyframes aboutFloatC {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(14px) scale(1.08); }
}
.about-float-a { animation: aboutFloatA 8s var(--ease) infinite; }
.about-float-b { animation: aboutFloatB 11s var(--ease) infinite; }
.about-float-c { animation: aboutFloatC 9s var(--ease) infinite; }

/* =========================================================
   Шапка: лого слева, заголовок с подзаголовком справа
   ========================================================= */
.about-hero {
    position: relative;
    padding: 158px 0 36px;
    overflow: hidden;
}
.about-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 56px;
    align-items: center;
}
.about-hero-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-hero-logo-ring {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 1px solid rgba(195, 177, 152, 0.4);
}
.about-hero-logo img {
    width: 100%;
    max-width: 170px;
    display: block;
    position: relative;
    z-index: 1;
}
.about-hero-text { position: relative; z-index: 1; }
.about-hero-title {
    font-size: clamp(32px, 4.2vw, 54px);
    margin-bottom: 18px;
}
.about-hero-subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-ink-soft);
    max-width: 560px;
}

.about-hero-deco-1 { top: 10%; right: 6%; width: 90px; height: 90px; opacity: 0.3; }
.about-hero-deco-2 { bottom: 0; left: 46%; width: 50px; height: 50px; opacity: 0.4; }
.about-hero-deco-3 { top: 60%; right: 22%; width: 14px; height: 14px; opacity: 0.5; }

@media (max-width: 760px) {
    .about-hero { padding: 140px 0 30px; }
    .about-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .about-hero-logo { justify-content: center; }
    .about-hero-subtitle { margin: 0 auto; }
}

/* =========================================================
   История: маленькое фото + крупный выразительный текст
   ========================================================= */
.about-story {
    position: relative;
    padding: 16px 0 100px;
    overflow: hidden;
}
.about-story-inner {
    position: relative;
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 56px;
    align-items: center;
}
.about-story-media {
    position: relative;
}
.about-story-media img {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft-sm);
}
.about-story-ring {
    position: absolute;
    top: -26px;
    right: -26px;
    width: 72px;
    height: 72px;
    opacity: 0.45;
    z-index: -1;
}
.about-story-dots {
    position: absolute;
    bottom: -20px;
    left: -24px;
    width: 60px;
    height: 60px;
    opacity: 0.35;
}
.about-story-title {
    font-size: clamp(30px, 3.6vw, 44px);
    margin-bottom: 22px;
}
.about-story-body p {
    color: var(--color-ink-soft);
    line-height: 1.8;
    font-size: 16.5px;
    margin-bottom: 18px;
    max-width: 560px;
}
.about-story-body p:first-of-type {
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--color-ink);
    line-height: 1.5;
}
.about-story-body p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
    .about-story { padding: 10px 0 70px; }
    .about-story-inner { grid-template-columns: 1fr; }
    .about-story-media img { max-width: 220px; margin: 0 auto; }
}

/* =========================================================
   Наши дома и как добраться
   ========================================================= */
.about-houses {
    padding: var(--section-pad) 0;
}
.about-houses-head {
    text-align: center;
    margin-bottom: 40px;
}
.about-houses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto 40px;
}
.about-house-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border: 1.5px solid rgba(43, 38, 32, 0.12);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.about-house-item:hover {
    border-color: var(--color-ink);
    transform: translateY(-2px);
}
.about-house-name {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-ink);
}
.about-house-address {
    font-size: 13.5px;
    color: var(--color-ink-soft);
    text-align: right;
}
.about-houses-directions {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.about-houses-directions h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--color-ink);
    margin: 0 0 10px;
}
.about-houses-directions p {
    color: var(--color-ink-soft);
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

/* =========================================================
   Отзывы (заменяют старый блок «ценностей»)
   ========================================================= */
.about-reviews {
    position: relative;
    padding: var(--section-pad) 0;
    overflow: hidden;
}
.about-reviews-head {
    margin: 0 auto 52px;
    text-align: center;
    max-width: 580px;
}
.about-reviews-head p {
    color: var(--color-ink-soft);
    margin-top: 14px;
    font-size: 16px;
}
.about-write-review-btn {
    margin-top: 22px;
}
/* Карусель отзывов — одна карточка на экран, со сменой по кругу */
.about-reviews-carousel {
    position: relative;
    max-width: 740px;
    margin: 0 auto;
}
.about-review-slide { display: none; }
.about-review-slide.is-active {
    display: block;
    animation: aboutReviewIn 0.8s var(--ease);
}
@keyframes aboutReviewIn {
    from { opacity: 0; transform: translateY(26px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.about-review-card {
    position: relative;
    background: var(--color-cream);
    border: 1px solid rgba(195, 177, 152, 0.35);
    border-radius: calc(var(--radius-lg) + 6px);
    padding: 56px 50px 38px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.about-review-quote {
    position: absolute;
    top: 0;
    left: 36px;
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 1;
    color: rgba(195, 177, 152, 0.45);
    pointer-events: none;
}
.about-review-stars {
    position: relative;
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--color-accent-dark);
    margin-bottom: 20px;
}
.about-review-stars .is-empty { color: rgba(43, 38, 32, 0.18); }
.about-review-text {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.55;
    color: var(--color-ink);
    margin-bottom: 30px;
}
.about-review-footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}
.about-review-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-ink);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
}
.about-review-meta strong { display: block; font-family: var(--font-body); font-size: 14.5px; }
.about-review-meta span {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ink-soft);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-white);
}

.about-reviews-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}
.about-reviews-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(43, 38, 32, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: var(--color-ink);
    flex-shrink: 0;
    transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.about-reviews-arrow:hover { background: var(--color-ink); color: var(--color-white); border-color: var(--color-ink); transform: scale(1.08); }
.about-reviews-dots { display: flex; align-items: center; gap: 9px; }
.about-reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(43, 38, 32, 0.2);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.about-reviews-dot.is-active { background: var(--color-ink); transform: scale(1.35); }

.about-empty-note { color: var(--color-ink-soft); text-align: center; }

.about-reviews-deco-1 { top: 6%; left: 2%; width: 60px; height: 60px; opacity: 0.3; }
.about-reviews-deco-2 { bottom: 8%; right: 4%; width: 90px; height: 90px; opacity: 0.25; }

@media (max-width: 640px) {
    .about-review-card { padding: 46px 26px 30px; }
    .about-review-quote { font-size: 90px; left: 22px; }
}

@media (max-width: 1000px) {
    .about-reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .about-reviews-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Правила дома (заменяют старый блок «как забронировать»)
   ========================================================= */
.about-rules {
    position: relative;
    padding: var(--section-pad) 0;
    background: var(--color-cream);
    overflow: hidden;
}
.about-rules-head {
    margin: 0 auto 48px;
    text-align: center;
    max-width: 580px;
}
.about-rules-head p {
    color: var(--color-ink-soft);
    margin-top: 14px;
    font-size: 16px;
}
.about-rules-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}
.about-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px;
    background: var(--color-white);
}
.about-rule-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-ink);
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 14px;
}
.about-rule-item p { color: var(--color-ink); line-height: 1.6; font-size: 15px; padding-top: 4px; }

.about-rules-deco-1 { top: 4%; right: 6%; width: 50px; height: 50px; opacity: 0.4; }
.about-rules-deco-2 { bottom: 6%; left: 5%; width: 70px; height: 70px; opacity: 0.3; }

@media (max-width: 760px) {
    .about-rules-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Финальный призыв — с отступом сверху, чтобы не прилипал к правилам
   ========================================================= */
.about-cta {
    padding: 60px 0 var(--section-pad);
}
.about-cta-inner {
    position: relative;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 70px 40px;
    text-align: center;
    overflow: hidden;
}
.about-cta-inner h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.about-cta-inner p {
    color: var(--color-ink-soft);
    max-width: 440px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}
.about-cta-inner .btn { position: relative; z-index: 1; }
.about-cta-deco-1 { top: -30px; left: -20px; width: 120px; height: 120px; opacity: 0.3; }
.about-cta-deco-2 { bottom: -24px; right: -16px; width: 100px; height: 100px; opacity: 0.3; }

/* Более крупная и заметная кнопка финального призыва */
.about-cta-btn {
    padding: 18px 9px 18px 34px;
    font-size: 16px;
    box-shadow: 0 22px 48px -18px rgba(43, 38, 32, 0.55);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.5s var(--ease);
}
.about-cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -16px rgba(43, 38, 32, 0.6);
}
.about-cta-btn .btn-nested-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}
