:root {
    --bg: #08120d;
    --bg-alt: #101b16;
    --surface: rgba(17, 30, 23, 0.96);
    --surface-soft: rgba(22, 37, 29, 0.94);
    --surface-strong: rgba(9, 18, 14, 0.97);
    --text: #f6eedf;
    --text-strong: #fff8ea;
    --muted: #c2b8a4;
    --accent: #c48a41;
    --accent-alt: #e4c16d;
    --card-bg: rgba(17, 30, 23, 0.96);
    --border: rgba(228, 195, 127, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height, 76px);
}

html:has(.home-page) {
    scroll-snap-type: y mandatory;
}

html:has(.home-page).anchor-scrolling {
    scroll-snap-type: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(228, 195, 127, 0.12), transparent 24%),
        radial-gradient(circle at 88% 8%, rgba(196, 138, 65, 0.1), transparent 20%),
        linear-gradient(180deg, var(--bg) 0%, #0b1511 48%, #09110e 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 32px);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 15, 11, 0.97), rgba(8, 17, 12, 0.94));
    backdrop-filter: blur(22px) saturate(120%);
    border-bottom: 1px solid rgba(228, 195, 127, 0.12);
    z-index: 1900;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header {
    padding: 0;
}

.header-hidden {
    transform: translateY(-120%);
}

.header.scrolled {
    padding: 0;
    box-shadow: 0 14px 36px rgba(2, 6, 4, 0.42);
}

.header .header-shell {
    display: flex;
    align-items: center;
    max-width: 1920px;
    min-height: 76px;
    padding-inline: clamp(24px, 3vw, 58px);
    gap: clamp(18px, 1.6vw, 32px);
    transition: min-height 0.3s ease;
}

.header.scrolled .header-shell {
    min-height: 68px;
}

.header-tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
}

.logo {
    flex: 0 0 auto;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.45rem, 1.45vw, 1.8rem);
    line-height: 1;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.navigation {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    transition: transform 0.3s ease;
}

.navigation ul {
    list-style: none;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 0.9vw, 18px);
    flex-wrap: nowrap;
}

.navigation a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: clamp(0.64rem, 0.59vw, 0.72rem);
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 76px;
    padding-top: 1px;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.header.scrolled .navigation ul,
.header.scrolled .navigation a {
    min-height: 68px;
}

.navigation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navigation a:hover::after,
.navigation a.active::after {
    transform: scaleX(1);
}

.navigation a:hover,
.navigation a.active {
    color: var(--text-strong);
}

.header-tools .auth-links {
    display: block;
    margin-left: 0;
}

.account-menu {
    position: relative;
}

.account-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgba(246, 238, 223, 0.76);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.account-menu__toggle:hover,
.account-menu.open .account-menu__toggle {
    border-bottom-color: var(--accent-alt);
    color: var(--text-strong);
}

.account-menu__icon {
    position: relative;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(228, 195, 127, 0.26);
    border-radius: 50%;
}

.account-menu__icon::before,
.account-menu__icon::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-alt);
}

.account-menu__icon::before {
    top: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.account-menu__icon::after {
    bottom: 5px;
    width: 12px;
    height: 6px;
    border-radius: 8px 8px 3px 3px;
}

.account-menu__arrow {
    color: var(--accent-alt);
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.account-menu.open .account-menu__arrow {
    transform: rotate(180deg);
}

.account-menu__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 210px;
    padding: 8px;
    border: 1px solid rgba(228, 195, 127, 0.16);
    border-radius: 0;
    background: rgba(8, 17, 12, 0.98);
    box-shadow: 0 20px 44px rgba(2, 6, 4, 0.46);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.account-menu.open .account-menu__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.header-tools .account-menu__panel .auth-link {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.74rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease;
}

.header-tools .account-menu__panel .auth-link:hover {
    background: rgba(228, 195, 127, 0.08);
    color: var(--text-strong);
}

.header-tools .account-menu__panel .auth-link--accent {
    color: var(--accent-alt);
}

.header-tools .account-menu__panel .auth-link--button {
    font-family: inherit;
}

.header-tools .account-menu__panel .auth-logout-form {
    display: flex;
    width: 100%;
    border-top: 1px solid rgba(228, 195, 127, 0.1);
    margin-top: 4px;
    padding-top: 4px;
}

.header-tools .lang-switcher {
    margin-left: 4px;
    padding: 0 0 0 16px;
    border-left: 1px solid rgba(228, 195, 127, 0.14);
}

.header-tools .lang-toggle {
    min-height: 36px;
    gap: 8px;
    padding: 0 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.72rem;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.header-tools .lang-toggle:hover {
    box-shadow: none;
    color: var(--accent-alt);
}

.header-tools .lang-flag {
    width: 26px;
    height: 26px;
}

.nav-toggle {
    display: none;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(196, 138, 65, 0.16), rgba(17, 30, 23, 0.96));
    border-radius: 16px;
    border: 1px solid rgba(228, 195, 127, 0.24);
    box-shadow: 0 15px 28px rgba(2, 6, 4, 0.3);
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    order: 3;
    margin-left: auto;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 50%;
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 999px;
    transform: translate(-50%, 0);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-toggle span:nth-child(1) {
    top: 16px;
}

.nav-toggle span:nth-child(2) {
    top: calc(50% - 1.5px);
}

.nav-toggle span:nth-child(3) {
    bottom: 16px;
}

.nav-toggle.open span:nth-child(1) {
    top: calc(50% - 1.5px);
    transform: translate(-50%, 0) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    top: calc(50% - 1.5px);
    bottom: auto;
    transform: translate(-50%, 0) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 4, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1700;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.mobile-nav-open {
    overflow: hidden;
}

.lang-switcher {
    position: relative;
    padding: 4px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(228, 195, 127, 0.18);
    background: rgba(17, 30, 23, 0.92);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: box-shadow 0.2s ease;
}

.lang-toggle:hover {
    box-shadow: 0 5px 25px rgba(2, 6, 4, 0.35);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(228, 195, 127, 0.08);
    font-size: 1.1rem;
    border: 1px solid rgba(228, 195, 127, 0.18);
}
.lang-flag.flag-de {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyBjbGlwLXBhdGg9InVybCgjREVfc3ZnX19hKSI+PHBhdGggZD0iTS43NDYgMTYuMTc1QzIuNDQyIDIwLjc0NSA2Ljg0IDI0IDEyIDI0YzUuMTYgMCA5LjU1OC0zLjI1NyAxMS4yNTMtNy44MjZMMTIgMTUuMTMyLjc0NiAxNi4xNzVaIiBmaWxsPSIjRkZEQTQ0Ii8+PHBhdGggZD0iTTEyIDBDNi44NCAwIDIuNDQyIDMuMjU4Ljc0NiA3LjgyOEwxMiA4Ljg3bDExLjI1My0xLjA0M0MyMS41NTggMy4yNTcgMTcuMTYgMCAxMiAwWiIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik0uNzQ2IDcuODI2QTExLjk3NCAxMS45NzQgMCAwIDAgMCAxMmMwIDEuNDY3LjI2NCAyLjg3My43NDYgNC4xNzRoMjIuNTA4Yy40ODItMS4zLjc0Ni0yLjcwNy43NDYtNC4xNzQgMC0xLjQ2OC0uMjY0LTIuODc0LS43NDYtNC4xNzRILjc0NloiIGZpbGw9IiNEODAwMjciLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJERV9zdmdfX2EiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjR2MjRIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=");
    background-size: cover;
}

.lang-flag.flag-ru {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyBjbGlwLXBhdGg9InVybCgjUlVfc3ZnX19hKSI+PHBhdGggZD0iTTEyIDI0YzYuNjI3IDAgMTItNS4zNzMgMTItMTJTMTguNjI3IDAgMTIgMCAwIDUuMzczIDAgMTJzNS4zNzMgMTIgMTIgMTJaIiBmaWxsPSIjRjBGMEYwIi8+PHBhdGggZD0iTTIzLjI1NCAxNi4xNzNjLjQ4Mi0xLjMuNzQ2LTIuNzA2Ljc0Ni00LjE3MyAwLTEuNDY4LS4yNjQtMi44NzQtLjc0Ni00LjE3NEguNzQ2QTExLjk3NCAxMS45NzQgMCAwIDAgMCAxMS45OTljMCAxLjQ2OC4yNjQgMi44NzQuNzQ2IDQuMTc0TDEyIDE3LjIxN2wxMS4yNTQtMS4wNDRaIiBmaWxsPSIjMDA1MkI0Ii8+PHBhdGggZD0iTTEyIDI0YzUuMTYgMCA5LjU1OS0zLjI1NyAxMS4yNTQtNy44MjdILjc0N0MyLjQ0MyAyMC43NDMgNi44NDEgMjQgMTIuMDAxIDI0WiIgZmlsbD0iI0Q4MDAyNyIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9IlJVX3N2Z19fYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgyNHYyNEgweiIvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==");
    background-size: cover;
}

.lang-flag.flag-us {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyBjbGlwLXBhdGg9InVybCgjVVNfc3ZnX19hKSI+PHBhdGggZD0iTTEyIDI0YzYuNjI3IDAgMTItNS4zNzMgMTItMTJTMTguNjI3IDAgMTIgMCAwIDUuMzczIDAgMTJzNS4zNzMgMTIgMTIgMTJaIiBmaWxsPSIjRjBGMEYwIi8+PHBhdGggZD0iTTExLjQ3NyAxMkgyNGExMi4wMSAxMi4wMSAwIDAgMC0uNDEzLTMuMTNIMTEuNDc4VjEyWm0wLTYuMjYyaDEwLjc2MWExMi4wNjQgMTIuMDY0IDAgMCAwLTIuNzY5LTMuMTNoLTcuOTkydjMuMTNaTTEyIDI0YzIuODI0IDAgNS40Mi0uOTc2IDcuNDctMi42MDlINC41M0ExMS45NDggMTEuOTQ4IDAgMCAwIDEyIDI0Wk0xLjc2MSAxOC4yNmgyMC40NzdhMTEuOTMgMTEuOTMgMCAwIDAgMS4zNDgtMy4xM0guNDEzYy4zIDEuMTE2Ljc1OCAyLjE2NyAxLjM0OCAzLjEzWiIgZmlsbD0iI0Q4MDAyNyIvPjxwYXRoIGQ9Ik01LjU1OSAxLjg3NGgxLjA5M2wtMS4wMTcuNzM5LjM4OSAxLjE5Ni0xLjAxOC0uNzQtMS4wMTcuNzQuMzM2LTEuMDMzYy0uODk2Ljc0Ni0xLjY4IDEuNjItMi4zMjggMi41OTRoLjM1bC0uNjQ3LjQ3Yy0uMS4xNjgtLjE5Ny4zNC0uMjkuNTEzbC4zMS45NTEtLjU3OC0uNDE5QzEgNy4xOS44NjggNy41Ljc1IDcuODE3bC4zNCAxLjA0OGgxLjI1OGwtMS4wMTcuNzQuMzg4IDEuMTk1LTEuMDE3LS43MzktLjYxLjQ0M0MuMDMzIDEwLjk5NCAwIDExLjQ5NCAwIDEyaDEyVjBDOS42MyAwIDcuNDIuNjg4IDUuNTU5IDEuODc0Wm0uNDY1IDguOTI2LTEuMDE4LS43MzktMS4wMTcuNzM5LjM4OS0xLjE5Ni0xLjAxNy0uNzM5aDEuMjU3bC4zODgtMS4xOTUuMzg5IDEuMTk1aDEuMjU3bC0xLjAxNy43NC4zODkgMS4xOTVabS0uMzg5LTQuNjkxLjM4OSAxLjE5NS0xLjAxOC0uNzM5LTEuMDE3Ljc0LjM4OS0xLjE5Ni0xLjAxNy0uNzM5aDEuMjU3bC4zODgtMS4xOTUuMzg5IDEuMTk1aDEuMjU3bC0xLjAxOC43NC4zODkgMS4xOTVabTQuNjkzIDQuNjkxLTEuMDE4LS43MzktMS4wMTcuNzM5LjM4OC0xLjE5Ni0xLjAxNy0uNzM5aDEuMjU3bC4zODgtMS4xOTUuMzg5IDEuMTk1aDEuMjU4bC0xLjAxOC43NC4zODkgMS4xOTVabS0uMzg5LTQuNjkxLjM4OSAxLjE5NS0xLjAxOC0uNzM5LTEuMDE3Ljc0LjM4OS0xLjE5Ni0xLjAxNy0uNzRoMS4yNTdsLjM4OS0xLjE5NS4zODggMS4xOTVoMS4yNThsLTEuMDE4LjczOXptMC0zLjQ5Ni4zODkgMS4xOTUtMS4wMTgtLjczOS0xLjAxNy43NC4zODgtMS4xOTYtMS4wMTgtLjczOWgxLjI1N2wuMzg5LTEuMTk1LjM4OCAxLjE5NmgxLjI1OGwtMS4wMTguNzM5Wm0wLTMuNDk2LjM4OSAxLjE5NS0xLjAxOC0uNzQtMS4wMTcuNzQuMzg4LTEuMTk2LTEuMDE4LS43MzloMS4yNTdsLjM4OS0xLjE5NS4zODggMS4xOTVoMS4yNThsLTEuMDE4LjczOVoiIGZpbGw9IiMwMDUyQjQiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJVU19zdmdfX2EiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjR2MjRIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=");
    background-size: cover;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(10, 18, 14, 0.98);
    border: 1px solid rgba(228, 195, 127, 0.14);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2, 6, 4, 0.35);
    list-style: none;
    padding: 6px;
    margin: 0;
    min-width: 140px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.lang-menu li {
    list-style: none;
}

.lang-option::marker {
    content: '';
}

.lang-switcher.open .lang-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav-language-mobile {
    display: none;
}

html {
    scrollbar-gutter: stable;
}

.nav-auth-mobile {
    display: none;
}

.lang-option {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(196, 138, 65, 0.16);
}

.lang-option .lang-flag {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

.hero {
    min-height: 90vh;
    margin-top: 0;
    padding: 110px 0 80px;
    background:
        radial-gradient(circle at 18% 18%, rgba(228, 195, 127, 0.18), transparent 24%),
        radial-gradient(circle at 82% 14%, rgba(245, 228, 176, 0.1), transparent 22%),
        linear-gradient(135deg, #0f1b15 0%, #17271f 48%, #253628 100%);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 18%, rgba(255, 241, 198, 0.16), transparent 55%);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-content h2 {
    font-size: clamp(2.8rem, 4vw, 3.6rem);
    margin-bottom: 24px;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.hero-content p,
.hero-content .section-copy {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 32px;
}

.eyebrow {
    letter-spacing: 0.4em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: rgba(228, 195, 127, 0.7);
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: var(--text-strong);
    border: none;
    border-radius: 999px;
    padding: 14px 38px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(2, 6, 4, 0.35);
}

.ghost-button {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(228, 195, 127, 0.22);
    border-radius: 999px;
    padding: 14px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.ghost-button:hover {
    background: rgba(228, 195, 127, 0.12);
    color: var(--text-strong);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
}

.hero-stat {
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.96), rgba(12, 21, 16, 0.98));
    border: 1px solid rgba(228, 195, 127, 0.14);
    box-shadow: 0 10px 25px rgba(2, 6, 4, 0.32);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.hero-stat span {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent-alt);
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-stat p {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

.muted {
    color: var(--muted);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    align-items: center;
}

section {
    padding: 100px 0;
}

.home-page > section {
    display: flex;
    align-items: center;
    height: calc(100vh - var(--header-height, 76px));
    height: calc(100svh - var(--header-height, 76px));
    min-height: calc(100vh - var(--header-height, 76px));
    min-height: calc(100svh - var(--header-height, 76px));
    padding-block: clamp(36px, 6vh, 64px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.home-page > section > .container {
    width: 100%;
}

.home-page > .hero {
    margin-top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
}

.home-page > .gallery-section > .container {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
}

.home-page .section-header {
    margin-bottom: clamp(24px, 5vh, 48px);
}

.home-page .media-slot__media,
.home-page .image-placeholder {
    height: clamp(260px, calc(100svh - var(--header-height, 76px) - 280px), 500px);
}

.home-page .grid-three {
    margin-top: clamp(20px, 4vh, 40px);
}

.home-page .gallery-carousel {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
}

.home-page .gallery-carousel__stage,
.home-page .gallery-carousel__track,
.home-page .gallery-carousel__slide,
.home-page .gallery-carousel__preview {
    height: 100%;
    min-height: 0;
}

.home-page .gallery-carousel__slide {
    grid-template-rows: minmax(0, 1fr) auto;
}

.home-page .gallery-carousel__media {
    height: 100%;
    max-height: 100%;
}

.home-page ~ .footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slide {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.section-header p,
.section-header .section-copy {
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1rem;
}

.section-header::after {
    content: '';
    display: block;
    width: 90px;
    height: 3px;
    margin: 18px auto 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
    border-radius: 2px;
}

.about,
.team,
.advantages,
.contact {
    background: linear-gradient(180deg, rgba(17, 30, 23, 0.96), rgba(11, 19, 15, 0.98));
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(2, 6, 4, 0.36);
    padding: 80px 0;
}

.about.alt {
    background: linear-gradient(180deg, rgba(22, 36, 28, 0.98), rgba(14, 24, 18, 0.98));
}

.about-content.reverse {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.flow-card {
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.98), rgba(12, 21, 16, 0.98));
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 30px rgba(2, 6, 4, 0.32);
}

.grid-three .flow-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.grid-three .flow-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.pricing-card {
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.98), rgba(12, 21, 16, 0.98));
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(2, 6, 4, 0.3);
    text-align: center;
}

.pricing-card .price {
    display: block;
    font-size: 2rem;
    margin-top: 20px;
    color: var(--accent);
    font-weight: 700;
}

.gallery-carousel {
    display: grid;
    gap: 12px;
    margin-top: 0;
}

.gallery-page {
    padding-top: clamp(92px, 8vw, 120px);
}

main.gallery-page > section.about {
    padding-top: 0;
}

.gallery-section .section-header {
    margin-bottom: 28px;
}

.gallery-page > section.about {
    margin-top: 0;
}

.gallery-page__hero {
    display: grid;
    gap: 14px;
    margin-bottom: 34px;
}

.gallery-page__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.1;
}

.gallery-page__description {
    max-width: 760px;
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    gap: 22px;
}

.gallery-grid__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.gallery-grid__item {
    display: block;
    width: 100%;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(228, 195, 127, 0.12);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(12, 21, 16, 0.98), rgba(8, 16, 12, 0.98));
    box-shadow: 0 18px 32px rgba(2, 6, 4, 0.26);
    cursor: pointer;
    text-align: left;
    color: inherit;
    font: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-grid__item:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 195, 127, 0.28);
    box-shadow: 0 26px 42px rgba(2, 6, 4, 0.34);
}

.gallery-grid__visual {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(22, 37, 29, 0.98), rgba(9, 18, 14, 0.98));
}

.gallery-grid__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-grid__fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--text-strong);
    background: linear-gradient(135deg, rgba(22, 37, 29, 0.98), rgba(196, 138, 65, 0.82));
}

.gallery-grid__fallback-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 248, 234, 0.35);
    background: rgba(8, 16, 12, 0.2);
    font-size: 1.35rem;
}

.gallery-grid__fallback-label {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.76rem;
}

.gallery-grid__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px;
    display: grid;
    gap: 6px;
    background: linear-gradient(180deg, rgba(4, 8, 6, 0), rgba(4, 8, 6, 0.88));
    color: var(--text-strong);
}

.gallery-grid__type {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(228, 195, 127, 0.88);
}

.gallery-grid__name {
    font-weight: 700;
    line-height: 1.2;
    font-size: 1rem;
}

.gallery-grid__caption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(246, 238, 223, 0.82);
    font-size: 0.88rem;
    line-height: 1.45;
}

.gallery-grid__empty {
    border: 1px dashed var(--border);
    border-radius: 22px;
    padding: 30px;
    background: rgba(17, 30, 23, 0.86);
    color: var(--muted);
    text-align: center;
}

.gallery-viewer {
    position: fixed;
    top: var(--header-height, 0px);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-height, 0px));
    z-index: 1899;
    display: grid;
    place-items: center;
    padding: clamp(16px, 2.5vw, 36px);
    background: rgba(4, 10, 6, 0.96);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

@media (min-width: 1441px) {
    .hero {
        padding-top: calc(var(--header-height, 76px) + 48px);
    }
}

.media-viewer {
    top: 0;
    height: 100dvh;
    z-index: 2100;
}

.media-viewer .gallery-viewer__panel {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100%;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.media-viewer .gallery-viewer__content {
    width: 100%;
    height: 100%;
    gap: 0;
}

.media-viewer .gallery-viewer__stage {
    width: 100%;
    height: 100%;
    padding: 0;
}

.media-viewer .gallery-viewer__image {
    max-width: min(100%, 1600px);
    max-height: calc(100dvh - 32px);
    border-radius: 12px;
}

.gallery-viewer[hidden] {
    display: none;
}

.gallery-viewer__backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    appearance: none;
    border: 0;
    background: transparent;
    cursor: default;
}

.gallery-viewer__panel {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 22px 18px;
    border-radius: 26px;
    border: 1px solid rgba(228, 195, 127, 0.18);
    background: linear-gradient(180deg, rgba(10, 18, 14, 0.98), rgba(7, 14, 11, 0.98));
    box-shadow: 0 30px 70px rgba(2, 6, 4, 0.5);
    overflow: hidden;
}

.gallery-viewer__content {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gallery-viewer__stage {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding-inline: clamp(28px, 5vw, 78px);
}

.gallery-viewer__image,
.gallery-viewer__video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(2, 6, 4, 0.34);
    background: rgba(8, 16, 12, 0.98);
}

.gallery-viewer__nav,
.gallery-viewer__close {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
    appearance: none;
    font: inherit;
    border: 0;
    color: rgba(246, 238, 223, 0.96);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.gallery-viewer__nav {
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 2.1rem;
    font-weight: 600;
    background: rgba(246, 238, 223, 0.12);
    box-shadow: 0 10px 24px rgba(2, 6, 4, 0.35);
}

.gallery-viewer__nav:hover {
    transform: translateY(-50%) scale(1.04);
    background: rgba(246, 238, 223, 0.2);
}

.gallery-viewer__nav--prev {
    left: 28px;
}

.gallery-viewer__nav--next {
    right: 28px;
}

.gallery-viewer__close {
    top: 18px;
    right: 22px;
    width: 28px;
    height: 28px;
    border-radius: 0;
    font-size: 2.1rem;
    line-height: 1;
    background: transparent;
}

.gallery-viewer__close:hover {
    transform: scale(1.06);
    background: transparent;
}

.gallery-viewer__counter {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(246, 238, 223, 0.88);
}

.gallery-viewer__thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    overflow-x: auto;
    padding: 2px 2px 0;
    scrollbar-width: none;
}

.gallery-viewer__thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-viewer__thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 60px;
    padding: 0;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    opacity: 0.62;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-viewer__thumb:hover,
.gallery-viewer__thumb.active {
    opacity: 1;
    border-color: rgba(228, 195, 127, 0.96);
    box-shadow: 0 0 0 1px rgba(228, 195, 127, 0.2);
}

.gallery-viewer__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-viewer__thumb-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(22, 37, 29, 0.98), rgba(196, 138, 65, 0.82));
    color: var(--text-strong);
    font-size: 1.2rem;
}

.gallery-viewer__thumb--video {
    position: relative;
}

@media (max-width: 900px) {
    .gallery-viewer__panel {
        width: 100%;
        padding: 18px 16px 14px;
    }

    .gallery-viewer__nav--prev {
        left: 12px;
    }

    .gallery-viewer__nav--next {
        right: 12px;
    }

    .gallery-viewer__thumb {
        width: 72px;
        height: 46px;
    }
}

body.gallery-viewer-open,
body.media-viewer-open,
body.review-modal-open {
    overflow: hidden;
}

.reviews {
    position: relative;
    padding: 80px 0;
    background:
        linear-gradient(120deg, rgba(196, 138, 65, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(9, 18, 14, 0.98), rgba(15, 26, 20, 0.98));
}

.reviews__header {
    text-align: center;
}

.reviews-carousel {
    width: min(1280px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 14px;
}

.reviews-carousel__viewport {
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.reviews-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.reviews-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    column-gap: 16px;
}

.reviews-carousel--count-1 .reviews-carousel__track {
    grid-auto-columns: min(420px, 100%);
    justify-content: center;
}

.reviews-carousel--count-2 .reviews-carousel__track {
    grid-auto-columns: min(420px, calc((100% - 16px) / 2));
    justify-content: center;
}

.reviews-carousel__control {
    width: 56px;
    height: 76px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.reviews-carousel__control:hover,
.reviews-carousel__control:focus-visible {
    color: var(--accent-alt);
    transform: scale(1.08);
}

.reviews-carousel__control[hidden] {
    visibility: hidden;
    display: grid;
}

.review-card,
.reviews__empty {
    padding: 28px 24px;
    border: 1px solid rgba(228, 195, 127, 0.15);
    background: rgba(8, 16, 12, 0.74);
    box-shadow: 0 18px 42px rgba(2, 6, 4, 0.22);
}

.review-card {
    min-width: 0;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.review-card__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.review-modal__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.review-card__heading strong {
    color: var(--text-strong);
    font-size: 1.05rem;
}

.review-modal__heading strong {
    color: var(--text-strong);
    font-size: 1.05rem;
}

.review-card__heading time {
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.review-modal__heading span {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 8px 0 10px;
    color: rgba(228, 195, 127, 0.24);
    line-height: 1;
}

.review-card .review-stars {
    justify-content: center;
    margin: 12px 0 16px;
}

.review-stars span {
    font-size: 1.05rem;
}

.review-stars .is-filled {
    color: #efb21b;
}

.review-stars .review-stars__value {
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.review-card__text {
    flex: 1 1 auto;
    width: 100%;
    max-width: 360px;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.review-card__more {
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-alt);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.review-card__more:hover,
.review-card__more:focus-visible {
    color: var(--text-strong);
    text-decoration: underline;
}

.reviews__empty {
    color: var(--muted);
    text-align: center;
}

.reviews__action {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.reviews__write-button {
    min-width: min(280px, 100%);
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.review-form-modal__panel {
    width: min(720px, 100%);
}

.review-form {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.review-form h3 {
    margin-bottom: 18px;
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
}

.review-rating {
    margin: 0 0 20px;
    border: 0;
}

.review-rating legend {
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.review-rating__stars {
    display: flex;
    align-items: center;
    gap: 2px;
    width: fit-content;
}

.review-rating__star {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(228, 195, 127, 0.3);
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.16s ease, transform 0.16s ease;
}

.review-rating__star.is-active {
    color: #efb21b;
    text-shadow: 0 0 16px rgba(239, 178, 27, 0.22);
}

.review-rating__star:hover {
    transform: scale(1.12);
}

.review-rating__star:focus-visible {
    outline: 2px solid var(--accent-alt);
    outline-offset: 1px;
}

.review-rating__value {
    margin-left: 9px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.review-form__privacy {
    margin: -3px 0 16px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.review-form__errors {
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid rgba(201, 74, 74, 0.34);
    background: rgba(122, 48, 48, 0.22);
    color: #f6d6d0;
    font-size: 0.86rem;
}

.review-form__errors ul {
    margin: 0;
    padding-left: 18px;
}

.review-form__errors[hidden] {
    display: none;
}

.review-form .submit-btn:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
}

.review-notice {
    position: fixed;
    right: clamp(14px, 3vw, 36px);
    bottom: clamp(14px, 3vw, 36px);
    z-index: 2300;
    width: min(440px, calc(100% - 28px));
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(74, 151, 98, 0.38);
    background: #10271a;
    color: #e5f5e7;
    box-shadow: 0 24px 60px rgba(2, 6, 4, 0.48);
    animation: reviewNoticeIn 0.35s ease-out both;
}

.review-notice button {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes reviewNoticeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 7, 4, 0.82);
    backdrop-filter: blur(10px);
    animation: reviewModalIn 0.22s ease-out both;
}

.review-modal[hidden] {
    display: none;
}

.review-modal.is-closing {
    pointer-events: none;
    animation: reviewModalOut 0.18s ease-in both;
}

@keyframes reviewModalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reviewModalOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.review-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
}

.review-modal__panel {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(720px, calc(100dvh - 40px));
    overflow-y: auto;
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid rgba(228, 195, 127, 0.22);
    background: linear-gradient(180deg, #14231b, #09110e);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
}

.review-modal__panel.review-form-modal__panel {
    width: min(720px, 100%);
}

.review-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.review-modal__eyebrow {
    margin-bottom: 20px;
    color: var(--accent-alt);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.review-modal__content {
    margin-top: 18px;
    color: var(--text);
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gallery-carousel__header {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.gallery-carousel__heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    margin-bottom: 8px;
}

.gallery-carousel__description {
    max-width: 760px;
}

.gallery-carousel__stage {
    display: grid;
    grid-template-columns: clamp(68px, 7vw, 130px) minmax(0, 1fr) clamp(68px, 7vw, 130px);
    align-items: center;
    position: relative;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 16, 12, 0.98), rgba(14, 24, 18, 0.98));
    box-shadow: 0 20px 40px rgba(2, 6, 4, 0.36);
    overflow: hidden;
}

.gallery-carousel__controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    padding-inline: clamp(12px, 1.5vw, 18px);
    z-index: 2;
    pointer-events: none;
}

.gallery-carousel__control {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(228, 195, 127, 0.92);
    background: rgba(8, 16, 12, 0.3);
    color: var(--text-strong);
    font-size: 2.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    pointer-events: auto;
}

.gallery-carousel__control:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(2, 6, 4, 0.24);
    background: rgba(196, 138, 65, 0.18);
}

.gallery-carousel__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    border: none;
    scrollbar-width: none;
}

.gallery-carousel__track::-webkit-scrollbar {
    display: none;
}

.gallery-carousel__slide {
    scroll-snap-align: start;
    display: grid;
    gap: 0;
    background: rgba(8, 16, 12, 0.98);
    color: var(--text-strong);
}

.gallery-carousel__preview {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    cursor: zoom-in;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.gallery-carousel__preview:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent-alt);
}

.gallery-carousel__media {
    width: 100%;
    height: min(72vh, 640px);
    object-fit: contain;
    background: rgba(8, 16, 12, 0.98);
    display: block;
}

.gallery-carousel__caption {
    padding: 16px 18px;
    background: rgba(10, 18, 14, 0.95);
    color: rgba(246, 238, 223, 0.82);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(228, 195, 127, 0.12);
}

.gallery-carousel__indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(228, 195, 127, 0.18);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.gallery-carousel__dot.active {
    width: 30px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

.gallery-carousel__empty,
.gallery-carousel--missing {
    border: 1px dashed var(--border);
    border-radius: 20px;
    padding: 24px;
    background: rgba(17, 30, 23, 0.86);
    color: var(--muted);
}

.gallery-page-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    list-style: none;
    padding-left: 0;
}

.two-column ul {
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.98), rgba(12, 21, 16, 0.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 30px rgba(2, 6, 4, 0.3);
}

.two-column li {
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 500;
}

.about-content,
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
    align-items: center;
}

.about-content.reverse .about-text {
    order: 2;
}

.about-content.reverse .about-image {
    order: 1;
}

.about-text p,
.about-text .section-copy {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--muted);
}

.features {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding-left: 0;
}

.features li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-weight: 500;
}

.features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px rgba(228, 195, 127, 0.28);
    background: var(--accent);
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: clamp(320px, 46vw, 500px);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(24, 38, 29, 0.98), rgba(196, 138, 65, 0.86) 62%, rgba(228, 195, 127, 0.9));
    color: rgba(255, 248, 234, 0.88);
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1rem;
    text-align: center;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(2, 6, 4, 0.42);
}

.image-placeholder--media {
    text-transform: none;
    letter-spacing: 0.08em;
}

.media-slot {
    width: 100%;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(8, 16, 12, 0.98);
    box-shadow: 0 30px 60px rgba(2, 6, 4, 0.42);
}

.media-slot__preview {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
    cursor: zoom-in;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border-radius: inherit;
}

.media-slot__preview:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent-alt);
}

.media-slot__media {
    width: 100%;
    height: clamp(320px, 46vw, 500px);
    display: block;
    object-fit: cover;
    background: rgba(8, 16, 12, 0.98);
}

.media-slot--video .media-slot__media {
    object-fit: contain;
}

.team .services-grid,
.advantages .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card,
.benefit-item {
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.98), rgba(12, 21, 16, 0.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(2, 6, 4, 0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover,
.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(2, 6, 4, 0.4);
}

.service-card h3,
.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--text);
}

.service-card p,
.benefit-item p {
    color: var(--muted);
    font-size: 0.98rem;
}

.benefit-item ul {
    margin: 0;
    padding-left: 20px;
}

.benefit-item li {
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 500;
}

.contact-info {
    background: linear-gradient(180deg, rgba(22, 36, 28, 0.98), rgba(12, 21, 16, 0.98));
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 12px;
}

.contact-info-lines {
    display: grid;
    gap: 4px;
}

.opening-hours {
    margin-top: 20px;
    border-top: 1px solid rgba(228, 195, 127, 0.1);
    padding-top: 12px;
}

.opening-hours h4 {
    color: var(--accent-alt);
    margin-bottom: 6px;
}

.contact-form {
    position: relative;
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.98), rgba(12, 21, 16, 0.98));
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--border);
    box-shadow: 0 25px 40px rgba(2, 6, 4, 0.34);
}

.contact-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-flashes {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
}

.site-flash {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(2, 6, 4, 0.28);
}

.site-flash--error {
    background: rgba(122, 48, 48, 0.22);
    border-color: rgba(201, 74, 74, 0.24);
    color: #f6d6d0;
}

.site-flash--success {
    background: rgba(43, 102, 67, 0.22);
    border-color: rgba(74, 151, 98, 0.24);
    color: #ddefdf;
}

.site-flash ul {
    margin: 0;
    padding-left: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(228, 195, 127, 0.16);
    padding: 14px 18px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: rgba(8, 16, 12, 0.86);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(194, 184, 164, 0.72);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(228, 195, 127, 0.48);
    box-shadow: 0 0 0 3px rgba(196, 138, 65, 0.16);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-strong);
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

.footer {
    margin-top: 40px;
    background: linear-gradient(135deg, #07100d, #0b1712 60%, #101c15);
    color: rgba(246, 238, 223, 0.82);
    padding: 60px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(228, 195, 127, 0.12), transparent 45%);
    pointer-events: none;
    opacity: 0.4;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer h3,
.footer h4 {
    color: var(--text-strong);
    margin-bottom: 12px;
}

.footer a {
    color: rgba(246, 238, 223, 0.72);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 6px;
}

.footer-contact-lines a[href^="tel:"],
.footer-contact-lines a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
    -webkit-text-fill-color: currentColor;
}

.footer-contact-lines a[href^="tel:"]:visited,
.footer-contact-lines a[href^="mailto:"]:visited,
.footer-contact-lines a[href^="tel:"]:hover,
.footer-contact-lines a[href^="mailto:"]:hover,
.footer-contact-lines a[href^="tel:"]:active,
.footer-contact-lines a[href^="mailto:"]:active,
.footer-contact-lines a[href^="tel:"]:focus,
.footer-contact-lines a[href^="mailto:"]:focus {
    color: inherit;
    text-decoration: none;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(228, 195, 127, 0.12);
}

.footer-brand {
    flex: 1 1 260px;
    max-width: 380px;
}

.footer-brand p {
    color: rgba(194, 184, 164, 0.78);
    font-size: 1rem;
}

.footer-cols {
    display: flex;
    gap: 40px;
    flex: 1 1 320px;
    flex-wrap: wrap;
}

.footer-cols div {
    min-width: 200px;
}

.footer-cols ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-cols li {
    font-size: 0.95rem;
    padding-bottom: 4px;
}

.footer-small {
    font-size: 0.85rem;
    color: rgba(194, 184, 164, 0.72);
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(228, 195, 127, 0.12);
    margin-top: 30px;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-contact-lines {
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-social a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.maintenance {
    padding: 160px 0 120px;
}

.maintenance-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(18, 31, 24, 0.98), rgba(12, 21, 16, 0.98));
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(2, 6, 4, 0.36);
    text-align: center;
}

.maintenance-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 12px;
}

.maintenance-copy {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.maintenance-contact {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.footer-note {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(194, 184, 164, 0.58);
}

.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 20px 40px rgba(2, 6, 4, 0.36);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* Flat block surfaces */
.hero-stat,
.about,
.team,
.advantages,
.contact,
.flow-card,
.pricing-card,
.two-column ul,
.image-placeholder,
.media-slot,
.service-card,
.benefit-item,
.contact-info,
.contact-form,
.site-flash,
.maintenance-card,
.gallery-grid__item,
.gallery-grid__empty,
.gallery-carousel__stage,
.gallery-carousel__track,
.gallery-viewer__panel,
.gallery-viewer__stage {
    border-radius: 0;
}

.hero,
.about,
.team,
.advantages,
.contact {
    border: none;
}

.service-card,
.benefit-item,
.contact-form,
.contact-info,
.about-image {
    animation: fadeInUp 0.7s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1440px) {
    .nav-toggle {
        display: flex;
        position: fixed;
        top: 18px;
        right: 22px;
        margin: 0;
        z-index: 1802;
    }

    .navigation ul {
        gap: 18px;
        flex-wrap: wrap;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 85%;
        height: 100vh;
        padding: 20px 32px 40px;
        background: linear-gradient(180deg, rgba(9, 18, 14, 0.98), rgba(15, 26, 20, 0.94));
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        transform: translateX(120%);
        box-shadow: -18px 0 60px rgba(2, 6, 4, 0.35);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1801;
        overflow-y: auto;
        padding-bottom: 48px;
        border-radius: 0;
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(228, 195, 127, 0.12);
    }

    .navigation.open {
        transform: translateX(0);
    }

    .navigation ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-top: 12px;
    }

    .navigation li {
        width: 100%;
    }

    .navigation a {
        width: 100%;
        font-size: 1rem;
        padding: 6px 0;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text);
    }

    .navigation a::after {
        display: none;
    }

    .navigation li:not(:last-child) {
        border-bottom: 1px solid rgba(228, 195, 127, 0.12);
        padding-bottom: 12px;
    }

    .navigation a:hover,
    .navigation a.active {
        color: var(--accent);
    }

    .lang-switcher {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .lang-toggle {
        width: 100%;
    }

    .nav-language-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: flex-start;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(228, 195, 127, 0.12);
        margin-bottom: 12px;
    }

    .nav-language-mobile .lang-switcher {
        width: fit-content;
        max-width: calc(100% - 72px);
    }

    .nav-language-mobile .lang-toggle {
        width: auto;
        min-width: 0;
        max-width: 100%;
    }

    .nav-language-mobile .lang-menu {
        left: 0;
        right: auto;
        min-width: 160px;
        max-width: min(240px, calc(100vw - 96px));
    }

    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(228, 195, 127, 0.12);
    }

    .nav-auth-mobile .auth-links {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-auth-mobile .auth-user {
        white-space: normal;
    }

    .nav-auth-mobile .auth-link,
    .nav-auth-mobile .auth-logout-form {
        width: 100%;
    }

    .nav-auth-mobile .auth-logout-form {
        display: flex;
    }

    .nav-auth-mobile .auth-link {
        justify-content: center;
    }

    .nav-auth-mobile .account-menu__toggle {
        display: none;
    }

    .nav-auth-mobile .account-menu__panel {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
}

@media (max-width: 1024px) {
    .hero-stats {
        justify-content: space-between;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .home-page > section {
        height: auto;
        min-height: calc(100svh - var(--header-height, 76px));
        padding-block: clamp(36px, 7svh, 56px);
    }

    .home-page > .hero {
        height: auto;
        min-height: 100svh;
    }

    .home-page > .gallery-section > .container {
        display: block;
        height: auto;
    }

    .home-page .gallery-carousel__stage,
    .home-page .gallery-carousel__track,
    .home-page .gallery-carousel__slide,
    .home-page .gallery-carousel__preview {
        height: auto;
    }

    .home-page .gallery-carousel__media {
        height: min(52svh, 480px);
    }

    .reviews-carousel__track {
        grid-auto-columns: calc((100% - 16px) / 2);
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .hero {
        margin-top: 110px;
        padding-bottom: 60px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: left;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .gallery-section .section-header {
        margin-bottom: 24px;
    }

    .section-header::after {
        margin-bottom: 0;
    }

    .gallery-carousel__stage {
        grid-template-columns: clamp(44px, 8vw, 64px) minmax(0, 1fr) clamp(44px, 8vw, 64px);
    }

    .gallery-carousel__control {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .reviews {
        padding: 60px 0;
    }

    .review-card,
    .reviews__empty {
        padding: 20px 16px;
    }

    .review-modal__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .reviews-carousel {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 4px;
    }

    .reviews-carousel__track {
        grid-auto-columns: 100%;
        column-gap: 12px;
    }

    .reviews-carousel--count-1 .reviews-carousel__track,
    .reviews-carousel--count-2 .reviews-carousel__track {
        grid-auto-columns: 100%;
        justify-content: start;
    }

    .reviews-carousel__control {
        width: 36px;
        font-size: 3rem;
    }

    .review-card {
        min-height: 250px;
    }

    .review-rating__star {
        width: 36px;
        height: 40px;
        font-size: 1.75rem;
    }

    .review-modal {
        padding: 10px;
    }

    .review-modal__panel {
        max-height: calc(100dvh - 20px);
        padding: 42px 20px 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header {
        text-align: left;
    }

    .about,
    .team,
    .advantages,
    .contact {
        padding: 60px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .navigation ul {
        justify-content: center;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-cols {
        flex-direction: column;
        gap: 16px;
    }

    .footer-note {
        flex-direction: column;
        gap: 6px;
    }

    .gallery-carousel__stage {
        grid-template-columns: clamp(34px, 6vw, 48px) minmax(0, 1fr) clamp(34px, 6vw, 48px);
    }

    .gallery-carousel__control {
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 50px 16px 40px;
        background: #05070f;
    }

    .footer-top {
        gap: 30px;
    }

    .footer-brand h3 {
        font-size: 1.5rem;
    }

    .footer-cols {
        width: 100%;
    }

    .footer-cols > div {
        width: 100%;
    }

    .footer-cols ul {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-cols li {
        width: calc(50% - 6px);
        margin-bottom: 6px;
    }

    .footer-small {
        margin-top: 4px;
    }

    .footer-bottom {
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .hero-stat {
        padding: 12px;
    }

    .hero-stat span {
        font-size: 1.55rem;
    }

    .hero-stat span,
    .hero-stat p {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about,
    .team,
    .advantages,
    .contact {
        padding: 50px 12px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .grid-three {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 12px;
}

.auth-user {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(228, 195, 127, 0.16);
    background: rgba(17, 30, 23, 0.9);
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.auth-link--accent {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: var(--bg);
}

.auth-link--button {
    background: rgba(17, 30, 23, 0.9);
}

.auth-logout-form {
    display: inline-flex;
}

@media (max-width: 768px) {
    .auth-links {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

main,
.footer {
    transition: opacity 0.18s ease;
}

.language-changing main,
.language-changing .footer {
    opacity: 0.58;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html:has(.home-page) {
        scroll-snap-type: none;
    }

    main,
    .footer {
        transition: none;
    }
}
