/* Self-hosted fonts (Literata, Manrope) — no fonts.googleapis.com / fonts.gstatic.com */

/* Literata — cyrillic-ext */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/literata-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Literata — cyrillic */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/literata-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Literata — latin-ext */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/literata-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Literata — latin */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/literata-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope — cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Manrope — cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Manrope — latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0f766e;
    --color-primary-light: #0d9488;
    --color-secondary: #166534;
    --color-secondary-light: #15803d;
    --color-accent: #b45309;
    --color-accent-hot: #c2410c;
    --color-sky: #0369a1;
    --color-rose: #9f1239;
    --text-primary: #14231c;
    --text-muted: #4b6358;
    --gradient-brand: linear-gradient(135deg, #166534 0%, #0f766e 50%, #0369a1 100%);
    --gradient-hero: linear-gradient(145deg, #ecfdf5 0%, #e0f2fe 45%, #f0fdf4 100%);
    --gradient-forest: linear-gradient(135deg, #166534 0%, #0f766e 50%, #0e7490 100%);
    --gradient-sunset: linear-gradient(135deg, #b45309 0%, #c2410c 50%, #9f1239 100%);
    --gradient-footer: linear-gradient(135deg, #052e1c 0%, #0f3d32 40%, #0c4a6e 100%);
    --shadow-brand: 0 12px 40px rgba(15, 118, 110, 0.22);
    --shadow-card: 0 16px 40px rgba(22, 101, 52, 0.12);
    --shadow-warm: 0 16px 40px rgba(180, 83, 9, 0.14);
    --radius-lg: 14px;
    --radius-xl: 20px;
    --font-display: 'Literata', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: #f4faf7;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
    line-height: 1.25;
    vertical-align: middle;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--color-primary);
    background-image: var(--gradient-forest);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(15, 118, 110, 0.35);
    filter: brightness(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

.btn-secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(244, 250, 247, 0.92);
    backdrop-filter: blur(14px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(15, 118, 110, 0.1);
    box-shadow: 0 4px 24px rgba(20, 35, 28, 0.06);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Make logo and title inline inside the link and remove underline */
.nav-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.nav-logo-link:hover { text-decoration: none; }

.nav-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.nav-logo h1,
.nav-logo .nav-logo-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

/* SEO: breadcrumbs on article pages */
.page-breadcrumbs {
    padding: 1rem 0 0;
    margin-top: 70px;
}

.breadcrumbs {
    margin-bottom: 1.25rem;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #999;
}

.breadcrumbs-list a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs-list a:hover {
    text-decoration: underline;
}

.breadcrumbs-list li[aria-current="page"] {
    color: #333;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active {
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero--bleed {
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    background: #0a1f18;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero--bleed .hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5, 30, 22, 0.35) 0%, rgba(5, 30, 22, 0.55) 45%, rgba(5, 30, 22, 0.82) 100%),
        linear-gradient(90deg, rgba(5, 30, 22, 0.55) 0%, rgba(5, 30, 22, 0.15) 60%, transparent 100%);
    pointer-events: none;
}

.hero-container.hero-container--overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 20px calc(5.5rem + env(safe-area-inset-bottom, 0px));
    gap: 1.5rem;
}

.hero--bleed .hero-content {
    max-width: 36rem;
}

.hero--bleed .hero-title {
    color: #f7fbf8;
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.55rem);
    font-weight: 600;
    color: #e8f5ef;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.hero--bleed .hero-description {
    color: rgba(232, 245, 239, 0.88);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.hero--bleed .btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #f7fbf8;
    border-color: rgba(247, 251, 248, 0.45);
    backdrop-filter: blur(6px);
}

.hero--bleed .btn-secondary:hover {
    background: #f7fbf8;
    color: var(--color-primary);
    border-color: #f7fbf8;
}

.hero--bleed .hero-slider-dots {
    margin-top: 0;
}

.hero--bleed .dot {
    background: rgba(255, 255, 255, 0.4);
}

.hero--bleed .dot.active {
    background: #f7fbf8;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.45);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero--bleed::before,
.hero--bleed::after {
    display: none;
}

.hero::before {
    width: min(520px, 90vw);
    height: min(520px, 90vw);
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.28) 0%, transparent 68%);
}

.hero::after {
    width: min(400px, 70vw);
    height: min(400px, 70vw);
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(3, 105, 161, 0.18) 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-warm), 0 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Респонсивные изображения */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-image-main.active {
    opacity: 1;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35);
    transform: scale(1.15);
}

.dot:hover {
    background: var(--color-primary-light);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin: 0.65rem auto 0;
    border-radius: 999px;
    background: var(--gradient-forest);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content.single {
    grid-template-columns: 1fr;
}

.about-text h3 {
    color: #333;
    margin-bottom: 1.5rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: linear-gradient(160deg, #ffffff 0%, #f5f3ff 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(5, 150, 105, 0.2);
}

.feature i {
    font-size: 2.5rem;
    background: var(--gradient-forest);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature:nth-child(2) i {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
}

.feature:nth-child(3) i {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    background-clip: text;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image-main {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image-main:hover {
    transform: scale(1.05);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: linear-gradient(180deg, #eff6ff 0%, #f5f3ff 50%, #fff7ed 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(165deg, #ffffff 0%, #faf5ff 100%);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 22px 50px rgba(79, 70, 229, 0.18);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-brand);
}

.services-grid .service-card:nth-child(2) .service-icon {
    background: var(--gradient-forest);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.35);
}

.services-grid .service-card:nth-child(3) .service-icon {
    background: var(--gradient-sunset);
    box-shadow: var(--shadow-warm);
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.15);
    box-shadow: var(--shadow-warm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(249, 115, 22, 0.22);
}

.portfolio-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-main {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-image-main:hover {
    transform: scale(1.03);
}

.gallery-clickable,
.house-main-image,
.thumb-image {
    cursor: zoom-in;
}

.gallery-clickable {
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.gallery-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.25);
    filter: saturate(1.08);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image::after {
    content: '🔍';
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    font-size: 1rem;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
    transform: scale(1);
}

.article-image {
    position: relative;
}

.article-image .gallery-clickable:hover {
    transform: scale(1.01);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.gallery-page .portfolio-grid {
    margin-top: 0;
}

.gallery-page .portfolio-item {
    margin: 0;
}

/* Articles Section */
.articles {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0fdfa 0%, #ede9fe 100%);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    display: block;
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
    transform: translateY(-8px);
    border-color: rgba(5, 150, 105, 0.35);
    box-shadow: 0 18px 44px rgba(79, 70, 229, 0.16);
}

.article-card h3 {
    margin: 0.75rem 0 0.5rem;
    color: #333;
    font-size: 1.2rem;
}

.article-card p {
    margin: 0;
    color: #666;
}

.article-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.article-card:nth-child(3n+2) .article-icon {
    background: var(--gradient-forest);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.3);
}

.article-card:nth-child(3n) .article-icon {
    background: var(--gradient-sunset);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* Article pages (legacy block — see enhanced styles below) */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.article-meta {
    color: #999;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
    color: #111;
}

.article-content p,
.article-content li {
    color: #222;
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.article-content a {
    color: #1e40af;
    text-decoration: underline;
}

.article-content a:hover {
    color: #1b35a0;
}

.article-content img {
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    margin: 1rem 0;
}

.article-back {
    margin-top: 2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(180deg, #ede9fe 0%, #dbeafe 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.contact-phones p {
    margin-bottom: 0;
}

.contact .to_tel {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.15rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid rgba(79, 70, 229, 0.2);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.contact .to_tel::before {
    content: '\f095';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--color-secondary);
    transition: color 0.25s ease;
}

.contact .to_tel:hover,
.contact .to_tel:focus-visible {
    transform: translateY(-2px);
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-brand);
    outline: none;
}

.contact .to_tel:hover::before,
.contact .to_tel:focus-visible::before {
    color: #fff;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(79, 70, 229, 0.12);
    box-shadow: var(--shadow-brand);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* Footer */
.footer {
    background: var(--gradient-footer);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fcd34d;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.35);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    color: #fff;
}

/* Cookie consent banner (152-FZ) */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    padding: 1rem;
    background: rgba(5, 46, 28, 0.97);
    color: #f4faf7;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.cookie-consent--hiding {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.cookie-consent__text {
    flex: 1 1 280px;
    margin: 0;
    color: rgba(244, 250, 247, 0.92);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent__text a {
    color: #99f6e4;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cookie-consent .btn {
    min-width: 120px;
}

.cookie-consent .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cookie-consent .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* Privacy / legal page */
.legal-page {
    padding: 7rem 0 4rem;
    min-height: 60vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-card);
}

.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content ul {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-muted);
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem 1.15rem;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent .btn {
        flex: 1 1 auto;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .about-content {
        gap: 2rem;
    }
    
    .contact-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-slider {
        max-width: 100%;
        height: 250px;
        margin: 0 auto;
    }

    .about-image-main {
        max-width: 100%;
        height: auto;
    }

    .portfolio-image-main {
        height: 180px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image-main {
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

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

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .service-card,
    .portfolio-item {
        margin: 0 10px;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Дополнительные мобильные стили */
@media (max-width: 480px) {
    .hero-slider {
        height: 200px;
        margin: 0 10px;
    }
    .about-image-main,
    .portfolio-image-main {
        max-width: 100%;
        height: auto;
    }
}

/* Стили для изображений портфолио */
.portfolio-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Стили для страницы услуг */
.services-hero {
    background: var(--gradient-hero);
}

.houses {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.house-item {
    margin-bottom: 4rem;
    padding: 2rem;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 50%, #eff6ff 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(5, 150, 105, 0.15);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.house-item:hover {
    box-shadow: 0 22px 52px rgba(5, 150, 105, 0.18);
}

.house-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.house-content.reverse {
    direction: rtl;
}

.house-content.reverse > * {
    direction: ltr;
}

.house-text h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.house-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.house-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(79, 70, 229, 0.08);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.feature-item i {
    color: var(--color-secondary);
}

.house-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    width: 100%;
    height: clamp(280px, 42vw, 420px);
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

.house-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
}

.house-main-image:hover {
    transform: scale(1.05);
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumb-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumb-image:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Gallery navigation buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, transform 0.15s ease;
}
.gallery-nav-btn:hover { background: rgba(0,0,0,0.6); }
.gallery-nav-btn:active { transform: translateY(-50%) scale(0.96); }
.gallery-nav-btn.prev { left: 8px; }
.gallery-nav-btn.next { right: 8px; }

/* Lightbox navigation */
.lightbox-overlay .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}
.lightbox-overlay .nav-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-overlay .nav-btn.prev { left: 24px; }
.lightbox-overlay .nav-btn.next { right: 24px; }

.additional-services {
    padding: 80px 0;
    background: linear-gradient(180deg, #fff7ed 0%, #fce7f3 100%);
}

/* Floating contact widget */
.contact-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10001;
}

.call-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #059669 50%, #0d9488 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.call-widget:hover { 
    text-decoration: none; 
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.call-widget i { font-size: 1.1rem; }
.call-widget.blinking { animation: call-blink 1.1s ease-in-out infinite; }
.max-widget { animation: max-pulse 1.1s ease-in-out infinite 0.5s; }

.max-widget {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e7490 0%, #0369a1 55%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(3, 105, 161, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.max-widget:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(3, 105, 161, 0.45);
}

.max-widget__icon {
    display: block;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
}

@keyframes call-blink {
    0%, 100% { transform: translateY(0); filter: brightness(1); }
    50% { transform: translateY(-1px); filter: brightness(1.15); }
}

@keyframes max-pulse {
    0%, 100% { transform: translateY(0); filter: brightness(1); }
    50% { transform: translateY(-1px); filter: brightness(1.15); }
}

@media (max-width: 600px) {
    .contact-widget {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 14px;
        gap: 8px;
    }
    
    .call-widget,
    .max-widget {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .call-widget span,
    .max-widget > span:not(.max-widget__icon) {
        display: none;
    }
    
    .call-widget i {
        font-size: 1.2rem;
    }

    .max-widget__icon {
        width: 1.2rem;
        height: 1.2rem;
    }
    
    .article-image {
        margin: 1.5rem 0;
    }
    
    .article-image-main {
        border-radius: 8px;
    }
    
    .image-caption {
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }
    
    .article-page {
        padding: 100px 0 60px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
}

.booking {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #ede9fe 100%);
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.booking-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: var(--shadow-brand);
}

.booking-form .form-group {
    margin-bottom: 1.5rem;
}

.booking-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Article page */
.article-page {
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #fafbff 0%, #f0fdf4 40%, #eff6ff 100%);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 244, 0.9) 100%);
    border: 1px solid rgba(5, 150, 105, 0.15);
    box-shadow: var(--shadow-card);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

/* Article images */
.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image-main {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-warm);
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-image-main:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.article-image iframe {
    border: none;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.article-image iframe:hover {
    transform: scale(1.01);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: lb-fade-in 0.2s ease;
    overflow: auto;
}

.lightbox-overlay.closing {
    animation: lb-fade-out 0.2s ease forwards;
}

.lightbox-overlay:has(.lightbox-image.zoomed) {
    align-items: flex-start;
    justify-content: safe center;
    padding: 2vh 2vw;
}

.lightbox-image {
    max-width: min(96vw, 1920px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    cursor: zoom-in;
    transition: max-width 0.15s ease, max-height 0.15s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -ms-interpolation-mode: bicubic;
    -webkit-user-drag: none;
}

.lightbox-image.zoomed {
    /* Native pixel size — no CSS scale() blur */
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    transform: none;
    cursor: zoom-out;
}

@keyframes lb-fade-in {
    from { opacity: 0 }
    to { opacity: 1 }
}

@keyframes lb-fade-out {
    from { opacity: 1 }
    to { opacity: 0 }
}

/* Мобильные стили для страницы услуг */
@media (max-width: 768px) {
    .house-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Download links styles */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.28);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn,
.download-btn:hover,
.download-btn:visited,
.download-btn:focus,
.article-content .download-btn,
.article-content .download-btn:hover,
.article-content .download-btn:visited {
    color: #fff;
    text-decoration: none;
}

.download-btn h3,
.download-btn p,
.article-content .download-btn h3,
.article-content .download-btn p {
    text-decoration: none;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.38);
}

/* Part 1: lighter forest/teal (readable with white text) */
.download-btn.download-part1 {
    background: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.28);
}

.download-btn.download-part1:hover {
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.4);
}

/* Part 2: warm amber — closer to brand accent than pink */
.download-btn.download-part2 {
    background: linear-gradient(135deg, #d97706 0%, #c2410c 100%);
    box-shadow: 0 8px 25px rgba(194, 65, 12, 0.28);
}

.download-btn.download-part2:hover {
    box-shadow: 0 15px 35px rgba(194, 65, 12, 0.4);
}

/* Part 3: sky blue from brand palette */
.download-btn.download-part3 {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.28);
}

.download-btn.download-part3:hover {
    box-shadow: 0 15px 35px rgba(3, 105, 161, 0.4);
}

.download-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    opacity: 0.9;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.download-info p {
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #fff;
}

.file-size {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.download-arrow {
    font-size: 1.5rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.download-btn:hover .download-arrow {
    transform: translateY(3px);
}

.download-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #0f766e;
}

/* Responsive design for download buttons */
@media (max-width: 768px) {
    .download-btn {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    
    .download-icon {
        margin-right: 0;
        margin-bottom: 1rem;
        font-size: 2rem;
    }
    
    .download-info {
        margin-bottom: 1rem;
    }
    
    .download-arrow {
        font-size: 1.2rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: linear-gradient(90deg, rgba(240, 253, 244, 0.95) 0%, rgba(237, 233, 254, 0.95) 100%);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.12);
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 0.3rem;
    }
}

/* Section reveal (class-based; hero stays visible) */
.reveal-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ——— Selling homepage: houses preview, why, booking ——— */

.houses-preview {
    padding: 88px 0 72px;
    background: linear-gradient(180deg, #f4faf7 0%, #ffffff 100%);
}

.houses-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.house-card {
    background: transparent;
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease;
}

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

.house-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    background: #dce8e2;
}

.house-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.house-card:hover .house-card-media img {
    transform: scale(1.04);
}

.house-card-body {
    padding: 1.15rem 0.15rem 0.25rem;
}

.house-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.house-card-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0 0 0.85rem;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.house-card-meta li {
    position: relative;
    padding-left: 0.85rem;
}

.house-card-meta li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
}

.house-card-price {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.house-card-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
}

.house-card-actions .btn {
    flex: 1 1 0;
    white-space: nowrap;
}

.house-card-link {
    color: inherit;
    text-decoration: none;
}

.house-card-call .fas {
    display: none;
}

.houses-preview-footer {
    margin-top: 2.5rem;
    text-align: center;
}

.why-section {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.why-item p {
    margin-bottom: 0;
    font-size: 1.02rem;
}

.reviews {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #ecfdf5 0%, #f4faf7 55%, #ffffff 100%);
}

.review {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-size: 1.05rem;
}

.review-rating-value {
    margin-left: 0.35rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.review-quote {
    margin: 0;
    padding: 0;
    border: 0;
}

.review-title {
    font-size: 1.55rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.review-quote p {
    font-family: var(--font-display);
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0;
}

.review-meta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 118, 110, 0.18);
}

.review-author {
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.review-author strong {
    font-weight: 600;
}

.review-trip {
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.review-source {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.review-source a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 118, 110, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.review-source a:hover {
    color: var(--color-secondary);
    border-bottom-color: rgba(22, 101, 52, 0.45);
}

.faq {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.04), transparent);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.35rem 0 0.85rem;
}

.faq-item summary {
    cursor: pointer;
    font-family: "Literata", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--primary, #0f766e);
    font-weight: 500;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--text-secondary, #475569);
    line-height: 1.6;
}

.directions {
    padding: 4.5rem 0;
}

.directions-item h3 i {
    margin-right: 0.4rem;
    color: var(--primary, #0f766e);
}

.directions-meta {
    font-weight: 600;
    color: var(--color-secondary);
}

.directions-steps {
    margin: 0.75rem 0 1rem;
    padding-left: 1.25rem;
    line-height: 1.55;
}

.directions-steps li {
    margin-bottom: 0.45rem;
}

.directions-item a {
    color: var(--primary, #0f766e);
}

.contact-content--booking {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    max-width: 720px;
    margin: 0 auto;
}

.contact-map {
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(15, 118, 110, 0.15);
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.1);
    background: #fff;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.contact-map__link {
    display: block;
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    border-top: 1px solid rgba(15, 118, 110, 0.12);
    background: rgba(255, 255, 255, 0.95);
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-map__link:hover,
.contact-map__link:focus-visible {
    background: rgba(15, 118, 110, 0.06);
    color: var(--color-secondary, #0f766e);
    outline: none;
}

@media (max-width: 768px) {
    .contact-map iframe {
        height: 280px;
    }
}

.contact-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.house-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.house-item {
    scroll-margin-top: 96px;
}

.booking-how {
    margin-top: 4rem;
    padding: 2.5rem 0 1rem;
    border-top: 1px solid rgba(15, 118, 110, 0.15);
}

.booking-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
    margin: 0 0 2rem;
    padding: 0;
}

.booking-steps li {
    counter-increment: step;
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(15, 118, 110, 0.05);
    border-radius: var(--radius-lg);
}

.booking-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 8px;
    background: var(--gradient-forest);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

.booking-steps strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-family: var(--font-display);
}

.booking-steps span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.booking-how-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .houses-preview-grid,
    .why-grid,
    .booking-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-container.hero-container--overlay {
        padding: 6.5rem 20px calc(4.5rem + env(safe-area-inset-bottom, 0px));
        text-align: left;
        align-items: flex-start;
    }

    .hero--bleed .hero-buttons {
        align-items: stretch;
        width: 100%;
    }

    .hero--bleed .hero-buttons .btn {
        max-width: none;
    }

    .hero--bleed .hero-slider {
        height: 100%;
        max-width: none;
    }

    .house-actions,
    .contact-cta,
    .booking-how-actions {
        flex-direction: column;
    }

    .house-card-actions {
        flex-wrap: nowrap;
    }

    .house-actions .btn,
    .contact-cta .btn,
    .booking-how-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ——— 3D plot page & pictogram link ——— */
.plot-3d-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    background: linear-gradient(145deg, #ecfdf5 0%, #e0f2fe 100%);
    border: 1px solid rgba(15, 118, 110, 0.28);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    line-height: 1.25;
}

.plot-3d-link:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
    color: var(--color-secondary);
}

.plot-3d-link__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.plot-3d-link__icon img {
    width: 28px;
    height: 28px;
    display: block;
}

.plot-3d-link--sm {
    padding: 8px 14px;
    font-size: 0.85rem;
    gap: 0.5rem;
}

.plot-3d-link--sm .plot-3d-link__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.plot-3d-link--sm .plot-3d-link__icon img {
    width: 22px;
    height: 22px;
}

/* House video embed (Туристический приют) */
.house-video {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.house-video__header {
    margin-bottom: 1rem;
}

.house-video__header h4 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.house-video__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.house-video__frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.16);
    box-shadow: var(--shadow-card);
    background: #0b1f1c;
    aspect-ratio: 16 / 9;
}

.house-video__player {
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: top;
    background: #0b1f1c;
}

.house-video__note {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.house-video__note a {
    color: var(--color-primary);
}

.plot-3d-link__icon .fas {
    font-size: 0.95rem;
    color: var(--color-primary);
}

.plot-3d-page {
    padding: 7rem 0 3rem;
    background: var(--gradient-hero);
    min-height: 70vh;
}

.plot-3d-page__intro {
    margin-bottom: 1.5rem;
}

.plot-3d-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.plot-3d-page__eyebrow-icon {
    width: 36px;
    height: 36px;
}

.plot-3d-frame-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(15, 118, 110, 0.16);
    box-shadow: var(--shadow-card);
    background: #c5e8f0;
    min-height: min(72vh, 720px);
}

.plot-3d-frame {
    display: block;
    width: 100%;
    height: min(72vh, 720px);
    border: 0;
    background: #c5e8f0;
}

.plot-3d-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .plot-3d-page {
        padding-top: 5.5rem;
    }

    .plot-3d-frame-wrap,
    .plot-3d-frame {
        min-height: 60vh;
        height: 60vh;
    }

    .plot-3d-page__actions {
        flex-direction: column;
    }

    .plot-3d-page__actions .btn {
        width: 100%;
        text-align: center;
    }

    .house-card-actions {
        flex-wrap: wrap;
    }
}

/* ——— Houses preview: compact list on phones (all 4 fit one screen) ——— */
@media (max-width: 600px) {
    .houses-preview {
        padding: 1.5rem 0 2.5rem;
    }

    .houses-preview .section-header {
        margin-bottom: 1rem;
    }

    .houses-preview .section-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .houses-preview .section-header h2::after {
        margin-top: 0.4rem;
    }

    .houses-preview .section-header p {
        font-size: 0.9rem;
        margin: 0;
    }

    .houses-preview-grid {
        gap: 0.75rem;
    }

    .house-card {
        position: relative;
        display: grid;
        grid-template-columns: 96px 1fr;
        align-items: center;
        gap: 0.85rem;
        padding: 0;
        overflow: visible;
    }

    .house-card:hover {
        transform: none;
    }

    .house-card-media {
        width: 96px;
        aspect-ratio: 1;
        border-radius: 12px;
    }

    .house-card-body {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title actions"
            "meta actions";
        align-items: center;
        column-gap: 0.6rem;
        padding: 0;
        min-width: 0;
    }

    .house-card-body h3 {
        grid-area: title;
        font-size: 1rem;
        line-height: 1.25;
        margin: 0 0 0.25rem;
    }

    .house-card-link::after {
        content: '';
        position: absolute;
        inset: 0;
    }

    .house-card-meta {
        grid-area: meta;
        gap: 0.15rem 0.75rem;
        margin: 0;
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .house-card-meta li:nth-child(n + 3),
    .house-card-price,
    .house-card-more {
        display: none;
    }

    .house-card-actions {
        grid-area: actions;
        position: relative;
        z-index: 1;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .house-card-actions .btn.house-card-call {
        flex: none;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .house-card-call .fas {
        display: inline;
        font-size: 1rem;
    }

    .house-card-call .btn-label,
    .house-card-actions .plot-3d-link__label {
        display: none;
    }

    .house-card-actions .plot-3d-link--sm {
        padding: 0;
        gap: 0;
        border-radius: 50%;
        box-shadow: none;
    }

    .house-card-actions .plot-3d-link--sm .plot-3d-link__icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
}
