@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Inter+Tight:wght@400;600&family=Noto+Sans+SC:wght@400;600&family=Playfair+Display:wght@600;700&family=Poppins:wght@600;700&family=Cinzel:wght@400;600&display=swap&subset=cyrillic,latin');

* {
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    height: 100%;
    margin: 0;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
}

html {
    touch-action: manipulation;
}

.page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

:root {
    --red: #7B1F2F;
    --gold: #C8A051;
    --gold-dark: #867653;
    --gold-light: #F7E7CE;
    --bg: #FFFFFF;
    --sky: #5AA7E8;
    --beige: #F8F5EF;
    --ink: #0B1220;
    --ink-light: #555;
    --validation-red: #D71F1F;
    --validation-green: #FFFFFF;
}


/* ROOT */

[data-animate] {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
    will-change: opacity, transform, filter;
}

[data-animate].in {
    opacity: 1;
    transform: none;
    filter: none;
}

h1 {
    background: linear-gradient(90deg, var(--gold), var(--red));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gold), var(--red));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    overflow: hidden;
}

h2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(248, 215, 108, 0.12), rgba(255, 255, 255, 0.03), rgba(248, 215, 108, 0.12));
    transform: translateX(-100%);
    animation: shimmerText 3s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.home-section {
    padding: 1.5rem 0
}

label {
    display: grid;
    gap: .35rem;
    font-weight: 700
}

label.error::after {
    display: block;
    margin-block-start: 0.35rem;
    font-size: 0.85rem;
    color: var(--red);
    line-height: 1.3;
}

input,
textarea {
    inline-size: 100%;
    padding: .8rem .9rem;
    border: 1px solid #e5e7eb;
    border-radius: .7rem;
    font: inherit
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(90, 167, 232, .4);
    border-color: var(--sky)
}

input.error,
textarea.error {
    border-color: #d93025;
    background: #fff5f5;
}

input.valid,
textarea.valid {
    border-color: #28a745;
    background: #f6fff9;
}

input::placeholder,
textarea::placeholder {
    font-size: 80%;
    color: #999;
    font-style: italic;
    font-weight: 400;
    opacity: 1;
}

.label-text {
    display: inline;
    color: var(--ink-light, #666);
}

.required {
    color: var(--red);
    margin-left: 2px;
}


/* START - HEADER */

.container {
    inline-size: min(1200px, 92%);
    margin: 0 auto;
}

.site-header {
    background: linear-gradient(140deg, #582727, var(--red));
    color: var(--beige);
    position: static;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform .28s ease, top .28s ease;
    background-size: 200% 200%;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    gap: 1rem;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-site-logo {
    max-width: 90px;
    height: auto;
    display: block;
    padding: 6px;
    background: transparent;
    filter: drop-shadow(0 0 1.5px var(--gold)) drop-shadow(0 0 1.5px var(--gold));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.header-logo-wrapper:hover .header-site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 2px var(--gold)) drop-shadow(0 0 2px var(--gold));
}

.header-logo-outline {
    position: relative;
    display: inline-block;
}

.header-logo-outline img {
    display: block;
    max-width: 90px;
}

.header-logo-outline::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), var(--beige));
    mask: url('/assets/img/logos/header-logo.png') center/contain no-repeat;
    -webkit-mask: url('/assets/img/logos/header-logo.png') center/contain no-repeat;
    z-index: -1;
    transform: scale(1.1);
}

.header-brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: var(--beige);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-brand-slogan.title {
    font-family: 'Cinzel', serif;
    font-size: 46px;
    font-weight: 700;
    background: linear-gradient(180deg, var(--gold-dark) 0%, #ad996d 30%, var(--gold) 70%, var(--beige) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: -1px -1px 2px rgba(255, 255, 255, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    animation: fadeInGold 1s ease forwards;
}

.header-brand-subtitle {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--beige);
    margin-top: 6px;
    display: block;
    letter-spacing: 0.2px;
    animation: fadeInUp 1.2s ease forwards;
}

.header-brand-slogan.postfix {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 235, 200, 0.7);
    margin-left: 4px;
    vertical-align: super;
    text-shadow: none;
    animation: none;
}

.header-logo-wrapper:hover .header-brand-slogan.title {
    background: linear-gradient(180deg, var(--gold-dark) 0%, #ad996d 30%, var(--gold) 70%, var(--beige) 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(255, 223, 0, 0.6), -2px -2px 4px rgba(255, 255, 255, 0.4), 3px 3px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05) rotate(0.5deg);
    transition: all 0.5s ease;
}

.header-logo-wrapper:hover .header-brand-subtitle {
    color: var(--gold);
    transform: translateY(-2px);
    text-shadow: 0 2px 6px rgba(255, 223, 0, 0.5);
    transition: all 0.5s ease;
}

.header-logo-wrapper:hover .header-brand-slogan.postfix {
    color: rgba(255, 235, 200, 1);
    text-shadow: 0 1px 2px rgba(255, 223, 0, 0.5);
    transform: scale(1.1);
    transition: all 0.5s ease;
}

@keyframes fadeInGold {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    60% {
        opacity: 0.7;
        transform: translateY(5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 30px;
    letter-spacing: 0.5px;
    animation: fadeInLogo 1s ease forwards;
}

.header-logo-mark {
    background: linear-gradient(135deg, #d4af37, #f5e1a4);
    color: #0B1220;
    padding: .25rem .55rem;
    border-radius: .6rem;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo-mark:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

.header-logo-text {
    background: linear-gradient(90deg, #fff, #e6e6e6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: translateX(-15px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem
}

.header-logo-outline {
    display: inline-block;
    animation: logoSpin 8s linear infinite, logoPulseRotate 4s ease-in-out infinite;
    filter: drop-shadow(0 0 2px var(--gold)) drop-shadow(0 0 2px var(--gold));
}

@keyframes logoSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoPulseRotate {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 1.5px var(--gold)) drop-shadow(0 0 1.5px var(--gold));
    }

    25% {
        transform: scale(1.05) rotate(5deg);
        filter: drop-shadow(0 0 3px var(--gold)) drop-shadow(0 0 3px var(--gold));
    }

    50% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 4px var(--gold)) drop-shadow(0 0 4px var(--gold));
    }

    75% {
        transform: scale(1.05) rotate(-5deg);
        filter: drop-shadow(0 0 3px var(--gold)) drop-shadow(0 0 3px var(--gold));
    }

    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 1.5px var(--gold)) drop-shadow(0 0 1.5px var(--gold));
    }
}

.header-brand-slogan.title {
    background: linear-gradient(270deg, var(--gold-dark), var(--gold), var(--beige));
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textAlive 6s ease-in-out infinite;
}

@keyframes textAlive {
    0% {
        background-position: 0% 50%;
        opacity: 0.9;
    }

    25% {
        background-position: 50% 50%;
        opacity: 1;
    }

    50% {
        background-position: 100% 50%;
        opacity: 0.9;
    }

    75% {
        background-position: 50% 50%;
        opacity: 1;
    }

    100% {
        background-position: 0% 50%;
        opacity: 0.9;
    }
}


/* END - HEADER */


/* START - TOP BAR */

.top-contact-bar {
    position: static;
    background: linear-gradient(90deg, #867653, var(--gold));
    color: #fff;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.top-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--beige);
    transition: color 0.2s ease;
}

.top-contact-link .contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease, filter 0.2s ease, background 0.3s ease;
}

.top-contact-link:hover {
    color: var(--gold);
}

.top-contact-link:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon,
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    transition: transform 0.2s ease, filter 0.2s ease, background 0.3s ease;
}

.social-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.top-contact-link:hover .contact-icon,
.social-icon:hover {
    filter: invert(58%) sepia(86%) saturate(90%) hue-rotate(1deg) brightness(1) contrast(1);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.contact-text {
    display: inline;
    transition: transform 0.2s ease;
}

.top-contact-link:hover .contact-text {
    transform: scale(1.05);
}

.top-right .nav-contact-us {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--beige);
    border: 1.5px solid var(--beige);
    border-radius: 6px;
    background: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
}

.top-right .nav-contact-us:hover {
    background: var(--beige);
    color: var(--gold);
    transform: translateY(-2px);
}

.top-right .nav-contact-us:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}


/* END - TOP BAR */


/* START - LANG TOGGLE */

.header-lang-switch-dropdown {
    position: relative;
    display: inline-block;
}

.header-lang-btn {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gold-light);
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    transition: background 0.2s;
}

.header-lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-radius: 0.4rem;
    min-width: 65px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 201;
}

.header-lang-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 16px;
    color: var(--gold-dark);
    text-decoration: none;
    opacity: 0.9;
    transition: background 0.2s, opacity 0.2s, color 0.2s;
}

.header-lang-menu li a:hover,
.header-lang-menu li a.active {
    color: var(--red);
    opacity: 1;
    font-weight: 600;
}

.header-lang-menu.open {
    display: block;
    animation: fadeInDown 0.2s ease;
}


/* END - LANG TOGGLE */


/* START - NAVIGATION */

.nav-toggle {
    width: 42px;
    height: 36px;
    display: grid;
    align-content: center;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--gold-light);
    border-radius: 3px;
    transition: transform .25s, opacity .25s
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
}

.site-nav {
    background: var(--bg);
    padding: 1rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #eee;
}

.nav-list {
    display: flex;
    gap: 4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.nav-list a {
    position: relative;
    font-family: "Inter", "Noto Sans SC", Arial, sans-serif;
    font-weight: 500;
    font-size: 17px;
    color: var(--gold-dark);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 60%;
}

.nav-list a:hover {
    color: var(--red);
}

.nav-list a.active {
    color: var(--red);
    font-weight: 600;
}

.site-main {
    padding: 1.5rem 0 3rem
}


/* END - NAVIGATION */


/* START - HERO-BANNER */

.hero {
    background: linear-gradient(135deg, rgba(242, 208, 135, 0.9), var(--bg), rgba(148, 76, 76, 0.9));
    background-size: 200% 200%;
    animation: heroFadeIn 1s ease forwards, gradientShift 18s ease-in-out infinite;
    padding: 6rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    color: var(--ink);
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), transparent 70%), radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.1), transparent 70%);
    mix-blend-mode: soft-light;
    animation: floatBG 40s ease-in-out infinite;
    z-index: 0;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

@keyframes floatBG {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }

    25% {
        transform: translate3d(1%, -1%, 0) scale(1.02);
        opacity: 1;
    }

    50% {
        transform: translate3d(-1%, 1%, 0) scale(1.04);
        opacity: 0.95;
    }

    75% {
        transform: translate3d(2%, 1%, 0) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 1rem;
    font-weight: 800;
    animation: fadeUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.85;
    margin: 0 0 2rem;
    line-height: 1.6;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-main {
    background: linear-gradient(135deg, #a32530, var(--red));
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.25);
    flex-shrink: 0;
}

.btn-main:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(230, 57, 70, 0.35);
}

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

.btn-dark:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(51, 51, 51, 0.25);
}

.btn-main::before,
.btn-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
    z-index: 0;
    opacity: 0;
}

.btn-main:hover::before,
.btn-dark:hover::before {
    width: 300%;
    height: 400%;
    opacity: 1;
}


/* END - HERO-BANNER */


/* START - Footer */

.site-footer {
    background: linear-gradient(360deg, var(--gold-dark), var(--gold));
    color: var(--beige);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-about {
    margin-top: 3rem;
    color: var(--beige);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-inline: 1rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 1.2rem;
    margin-top: 1.2rem;
    gap: 0.8rem 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.footer-slogan {
    color: var(--gold-light);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.footer-copy {
    opacity: 0.9;
}

.footer-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

.footer-link {
    color: var(--beige);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.footer-link:hover {
    color: var(--gold-light);
    opacity: 1;
}

.footer-right .sep {
    opacity: 0.5;
    color: var(--beige);
    user-select: none;
}

.footer-legal {
    margin-top: 1.5rem;
    font-size: clamp(0.75rem, 1.6vw, 0.85rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.footer-legal a {
    color: var(--beige);
    text-decoration: underline;
    opacity: 0.85;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--gold-light);
    opacity: 1;
}

@media (max-width: 820px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }

    .footer-right .sep {
        display: none;
    }

    .footer-right {
        gap: 0.8rem;
    }
}

@media (max-width: 420px) {
    .footer-slogan {
        font-size: 0.9rem;
    }

    .footer-copy {
        font-size: 0.85rem;
    }

    .footer-right a {
        font-size: 0.85rem;
    }
}


.footer-about a {
    color: var(--beige);
    text-decoration: underline;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-about a:hover {
    opacity: 1;
    color: var(--gold);
}

.muted {
    color: var(--ink-light);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0.5rem auto;
    text-align: center;
    max-width: 600px;
    margin-top: 1.5rem;
}




.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    align-items: start;
    justify-content: space-between;
    padding-inline: 1rem;
}

.footer-contacts h4,
.footer-socials h4 {
    color: var(--beige);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    opacity: 0.95;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.4rem;
}

@media (max-width: 768px) {

    .footer-contacts h4,
    .footer-socials h4 {
        max-width: 120px;
        margin-inline: auto;
        text-align: center;
    }
}

@media (max-width: 420px) {

    .footer-contacts h4,
    .footer-socials h4 {
        max-width: 90px;
        font-size: 0.95rem;
    }
}


.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--beige);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

.footer-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 7px;
    object-fit: contain;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    filter: invert(1) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(1) contrast(1);
}

.footer-contact-text {
    transition: all 0.25s ease;
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact-list {
        align-items: center;
    }

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

    .footer-contact-link {
        justify-content: center;
    }
}

.footer-contacts a:hover,
.footer-social-links a:hover {
    color: var(--gold);
}

.footer-contacts a:hover .footer-icon,
.footer-social-links a:hover .footer-icon {
    transform: scale(1.1);
    filter: invert(58%) sepia(86%) saturate(90%) hue-rotate(1deg) brightness(1) contrast(1);
    background: rgba(255, 255, 255, 0.15);
}

.footer-contacts a .footer-contact-text {
    transition: transform 0.2s ease;
}

.footer-contacts a:hover .footer-contact-text {
    transform: scale(1.05);
}


/* END - Footer */


/* START - Team page */

.our-team-section {
    text-align: center;
}

.our-team-title {
    margin-bottom: 0.5rem;
}

.our-team-subtitle {
    font-size: 1rem;
    color: var(--ink-light);
    margin-bottom: 2rem;
}

.our-team-grid {
    max-width: 720px;
    margin: 0 auto;
}

.our-team-list {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    gap: 10rem;
}

.team-member {
    text-align: center;
}

.team-photo {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    margin-bottom: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.team-photo:hover {
    transform: scale(1.08) rotate(-1deg);
    border: 3px solid var(--gold);
    box-shadow: 0 0 12px rgba(255, 223, 0, 0.6), 0 8px 20px rgba(255, 215, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.team-photo:hover {
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 223, 0, 0.4), 0 4px 12px rgba(255, 215, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 18px rgba(255, 223, 0, 0.7), 0 6px 16px rgba(255, 215, 0, 0.5);
    }

    100% {
        box-shadow: 0 0 12px rgba(255, 223, 0, 0.6), 0 8px 20px rgba(255, 215, 0, 0.4);
    }
}

.team-member h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 0.3rem;
}

.team-member p {
    font-size: 0.95rem;
    color: var(--ink-light);
}


/* END - Team */


/* START - Services */

.services {
    padding: 1rem 1rem;
    position: relative;
    overflow: hidden;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease forwards;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.service-category {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.service-list-wrapper {
    max-height: 11rem;
    overflow: hidden;
    position: relative;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 1;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.service-list-wrapper.expanded {
    max-height: 1000px;
    opacity: 1;
    mask-image: none;
    -webkit-mask-image: none;
}

.show-more {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--ink-light);
    transition: transform 0.3s ease, color 0.3s ease;
}

.show-more:hover {
    color: var(--red);
    transform: scale(1.2);
}

.show-more span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.show-more.expanded span {
    transform: rotate(180deg);
}

.service-category::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    transform: rotate(25deg);
    z-index: 0;
    transition: all 0.5s ease;
}

.service-category:hover::before {
    transform: rotate(25deg) scale(1.05);
}

.service-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.service-category h3 {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    z-index: 1;
    position: relative;
}

.service-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-category ul li {
    font-size: 1rem;
    color: var(--ink-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
}

.service-category ul li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    transition: width 0.4s ease;
}

.service-category ul li:hover::after {
    width: 100%;
}

.service-category ul li:hover {
    transform: translateX(6px);
    color: var(--red);
}

.service-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gold);
    filter: drop-shadow(0 0 1px rgba(200, 160, 81, 0.7));
    transition: transform 0.4s ease, color 0.4s ease, filter 0.4s ease;
}

.service-icon svg {
    animation: floatIcon 4s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.service-category h3 {
    background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.service-category ul li:hover .service-icon svg {
    transform: rotate(10deg) scale(1.3);
    color: var(--red);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.8));
    transition: filter 0.5s ease;
}

@keyframes floatBG {
    0% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(1%, -1%) scale(1.02);
    }

    50% {
        transform: translate(-1%, 1%) scale(1.04);
    }

    75% {
        transform: translate(2%, 1%) scale(1.02);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-2px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.service-icon svg {
    animation: floatIcon 4s ease-in-out infinite;
}


/* END - Services */


/* START - About Us */

.about-us {
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-title {
    font-size: 2.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gold), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.4rem;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--ink-light);
    margin: 0 auto 3rem auto;
    max-width: 680px;
    line-height: 1.65;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
}

.about-item {
    flex: 1 1 260px;
    max-width: 300px;
    min-width: 240px;
    background: #fff;
    border-radius: 1rem;
    padding: 1.4rem 1.2rem;
    border: 1px solid rgba(215, 175, 75, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: transform 0.6s cubic-bezier(.19, 1, .22, 1), box-shadow 0.5s ease, border-color 0.5s ease;
    position: relative;
    min-height: 160px;
}

.about-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 36px rgba(215, 175, 75, 0.25);
    border-color: var(--gold);
}

.about-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 14px rgba(215, 175, 75, 0.5);
    animation: iconFloat 4.5s ease-in-out infinite alternate;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.icon-1 {
    background: conic-gradient(#8a1c1c 0deg 120deg, #d4af37 120deg 240deg, #b8860b 240deg 360deg);
}

.icon-2 {
    background: radial-gradient(circle, #d4af37, #8a1c1c);
}

.icon-3 {
    background: linear-gradient(45deg, #8a1c1c, #d4af37);
}

.icon-4 {
    background: radial-gradient(circle, #b8860b, #a52a2a);
}

.icon-5 {
    background: conic-gradient(#8a1c1c 0deg 120deg, #d4af37 120deg 240deg, #b8860b 240deg 360deg);
}

.icon-6 {
    background: linear-gradient(45deg, #8a1c1c, #d4af37);
}

.icon-7 {
    background: conic-gradient(#8a1c1c 0deg 120deg, #d4af37 120deg 240deg, #b8860b 240deg 360deg);
}

.icon-8 {
    background: radial-gradient(circle, #d4af37, #8a1c1c);
}

.icon-9 {
    background: linear-gradient(45deg, #8a1c1c, #d4af37);
}

.about-icon svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 5px rgba(255, 230, 140, 0.8));
}

.about-item:hover .about-icon {
    box-shadow: 0 0 18px rgba(215, 175, 75, 0.8);
    transform: scale(1.1);
}

@keyframes iconFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.about-item p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ink-light);
    text-align: center;
    max-width: 240px;
}

.about-advantages-title,
.about-family-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 1.4rem;
    padding: 1.5rem 1rem;
}

/* END - About Us */


/* START - Cases */

.case-studies {
    padding: 1rem 1rem;
}

.cases-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2.5rem;
}

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

.case-card {
    position: relative;
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(200, 160, 81, 0.15);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
}

.case-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
}

.case-icon svg {
    width: 56px;
    height: 56px;
    stroke-width: 2;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.case-card:hover .case-icon svg {
    transform: scale(1.1);
}

.case-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--ink-light);
    line-height: 1.5;
}


/* END - Cases */


/* START - WORK PROCESS */

.workflow-section.title {
    text-align: center;
}

.workflow-section.lead {
    text-align: center;
    color: var(--ink-light);
}

.steps-carousel {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    padding: 0 1rem;
    box-sizing: border-box;
    user-select: none;
}

.steps-carousel .carousel-track {
    overflow: visible;
    padding: 2rem 0;
}

.carousel-track-wrapper {
    overflow: hidden;
    padding: 5rem 0;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: var(--gap);
    transition: transform var(--transition);
    will-change: transform;
    padding-bottom: 6px;
    touch-action: pan-y;
}

.slide {
    flex: 0 0 calc(100% / var(--slides));
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.step-card {
    width: 92%;
    min-height: 320px;
    background: var(--card-bg);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.06);
    transition: transform .36s ease, box-shadow .36s ease;
    transform-origin: center center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.slide .step-card {
    transform: perspective(800px) translateY(0px) scale(.92) rotateY(0deg);
    opacity: .78;
}

.slide.is-center .step-card {
    transform: perspective(1200px) translateY(-10px) scale(1.12) rotateY(0deg);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.18);
    opacity: 1;
    z-index: 3;
}

.slide.is-left .step-card {
    transform: perspective(1200px) translateX(-15%) scale(0.8) rotateY(20deg);
    opacity: 0.6;
    filter: blur(0.5px);
    z-index: 1;
}

.slide.is-right .step-card {
    transform: perspective(1200px) translateX(15%) scale(0.8) rotateY(-20deg);
    opacity: 0.6;
    filter: blur(0.5px);
    z-index: 1;
}

.slide.is-center .step-card:hover {
    transform: perspective(1000px) translateY(-14px) scale(1.12) rotateY(0deg);
    box-shadow: 0 34px 80px rgba(2, 6, 23, 0.18);
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.14);
}

.step-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(270deg, var(--red), var(--gold));
    color: var(--beige);
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
    position: absolute;
    left: 16px;
    top: -18px;
}

.step-icon {
    width: 72px;
    height: 72px;
    margin: 16px auto 10px;
    display: block;
}

.step-title {
    margin: 6px 0 8px;
    font-size: 1.05rem;
    color: var(--red);
}

.step-text {
    margin: 0;
    font-size: .95rem;
    color: var(--ink-light);
    line-height: 1.4;
    white-space: pre-line;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.12);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--red);
    z-index: 10;
    transition: transform .15s, background .15s, color .15s;
}

.carousel-btn.prev {
    left: 6px;
}

.carousel-btn.next {
    right: 6px;
}

.carousel-dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: .8rem;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: #e5e7eb;
    cursor: pointer;
    transition: transform .15s, background .15s;
}

.carousel-dots button.active {
    background: var(--red);
    transform: scale(1.05);
}


/* END - WORK PROCESS */


/* START - Contacts page */

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 720px;
    margin: 0 auto;
    align-items: center;
}

.contacts-form-wrapper h1 {
    margin-bottom: 0.5rem;
    text-align: center;
}

.contacts-form-wrapper p {
    margin-bottom: 1.5rem;
    color: var(--ink-light);
    text-align: center;
}

.contact-form button {
    display: block;
    width: 30%;
    margin: 0.5rem auto;
}

.contact-form textarea {
    resize: vertical;
}

.contacts-page-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contacts-page-sub {
    margin-bottom: 1.5rem;
    color: var(--ink-light);
    text-align: center;
}

.contacts-page-list {
    list-style: none;
    margin: 0 auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 50%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: radial-gradient(circle, var(--beige), #fff);
}

.contacts-page-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contacts-page-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contacts-page-list li a:hover {
    color: var(--gold);
}

.contacts-page-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.2s ease;
}

.contacts-page-link:hover {
    color: var(--gold);
}

.contacts-page-icon {
    width: 22px;
    height: 22px;
    filter: invert(70%) sepia(55%) saturate(100%);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.contacts-page-link:hover .contacts-page-icon {
    filter: invert(25%) sepia(20%) saturate(400%) hue-rotate(20deg) brightness(100%) contrast(95%);
    transform: scale(1.1);
}


/* END - Contacts page */


/* START - Contact forms */

.contact-form-wrapper {
    justify-items: center;
}

.contact-form {
    display: grid;
    gap: 1rem;
    max-inline-size: 720px;
}

.contract-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.contract-form-grid-2 label {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-block-end: 0.5rem;
}

.hp {
    position: absolute;
    inset-inline-start: -9999px;
    opacity: 0
}

.form-status {
    margin-block-start: .5rem
}

.mini-contact {
    padding: 2rem 0;
    background: linear-gradient(180deg, #fff, var(--beige))
}

.mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06)
}

.mini-title {
    margin: .2rem 0 .2rem;
    color: var(--red)
}

.mini-sub {
    margin: 0;
    opacity: .85;
    color: var(--ink-light);
}

.mini-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .6rem;
    align-items: start;
}

.mini-field {
    flex: 1 1 0%;
    min-inline-size: 0;
}

.mini-form .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.mini-form .label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mini-form input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.7rem;
    font: inherit;
    box-sizing: border-box;
}

.mini-form .error-messages {
    min-height: 1em;
    font-size: 0.85rem;
}

.mini-form .hidden-hp {
    display: none
}

.form-messages {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: -1rem;
}

.error-messages .msg {
    block-size: 1em;
    transition: opacity 0.2s;
}

.msg {
    display: block;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-block-start: 0.4rem;
    margin-left: 1rem;
}

.msg-success,
.msg-error,
.msg-loading {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 90%;
    margin: 0.5rem auto;
}

.msg-success {
    color: #155724;
    background: linear-gradient(135deg, #d4edda, #e6f5ea);
}

.msg-error,
.error-messages {
    color: #721c24;
}

.msg-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.msg-loading {
    color: #0c5460;
    background: linear-gradient(135deg, #d1ecf1, #c0e3ea);
}

.msg[hidden] {
    display: none !important;
}


/* END - Contact forms */


/* Desktop specifcs */

@media (min-width: 1100px) {
    :root {
        --slides: 3;
    }
}

@media (min-width: 1025px) {
    .steps-carousel .slide {
        flex: 0 0 32%;
    }
}

@media (min-width: 1000px) {
    .nav-toggle {
        display: none;
    }

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

    .footer-grid {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .footer-contacts,
    .footer-socials {
        text-align: center;
    }

}


/* Mobile, tabs, etc. specifics */

@media(max-width:999px) {

    .footer-grid {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .footer-contacts,
    .footer-socials {
        text-align: center;
    }


    .about-grid {
        gap: 1.8rem;
        max-width: 850px;
    }

    .top-contact-bar {
        display: none;
    }

    .our-team-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .site-header.hide {
        transform: translateY(-110%);
        transition: transform 0.3s ease;
    }

    .top-contact-bar {
        position: relative;
        width: 100%;
        z-index: 1001;
    }

    .top-left>a,
    .top-right>a {
        display: none;
    }

    .top-right .nav-contact-us {
        display: inline-flex;
    }

    .header-brand-slogan.title {
        display: inline;
        font-size: 30px;
    }

    .header-brand-subtitle {
        font-size: 12px;
    }

    .contact-text {
        display: none;
    }

    .steps-grid {
        display: none
    }

    .steps-carousel {
        display: block
    }

    .carousel-dots {
        display: flex;
        gap: .4rem;
        justify-content: center;
        margin-top: .6rem
    }

    .carousel-dots button {
        width: 4px;
        height: 12px;
        border-radius: 50%;
        border: 0;
        background: #d1d5db
    }

    .carousel-dots button.active {
        background: var(--red)
    }

    .contract-form-grid-2 {
        grid-template-columns: 1fr
    }

    .site-nav {
        background: transparent;
        padding: 2rem 0;
        box-shadow: none;
        border-top: none;
        font-family: "Inter", Arial, sans-serif;
    }

    .nav-list {
        position: fixed;
        top: 100%;
        right: 0;
        left: auto;
        z-index: 150;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(14px) saturate(180%);
        -webkit-backdrop-filter: blur(14px) saturate(180%);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.4rem;
        gap: 0.8rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        border-bottom-left-radius: 1.2rem;
        border-bottom-right-radius: 1.2rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
        transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
        transform: translateY(-10px);
    }

    .nav-list.show {
        max-height: 65vh;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: max-height 0.45s ease, opacity 0.45s ease, transform 0.45s ease;
    }

    .nav-list li {
        width: 100%;
        margin: 0.2rem 0;
        opacity: 0;
        transform: translateY(14px) scale(0.97);
        animation: navItemFadeIn 0.45s forwards cubic-bezier(0.25, 1, 0.3, 1);
    }

    .nav-list li:nth-child(1) {
        animation-delay: 0.08s;
    }

    .nav-list li:nth-child(2) {
        animation-delay: 0.16s;
    }

    .nav-list li:nth-child(3) {
        animation-delay: 0.24s;
    }

    .nav-list li:nth-child(4) {
        animation-delay: 0.32s;
    }

    @keyframes navItemFadeIn {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .nav-list a {
        position: relative;
        background: none;
        border: none;
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--gold-dark);
        display: block;
        width: 100%;
        padding: 0.8rem 1.2rem;
        cursor: pointer;
        transition: color 0.3s ease, background 0.3s ease;
        text-align: left;
        border-radius: 0.2rem;
    }

    .nav-list a::after {
        content: "";
        position: absolute;
        bottom: 0.4rem;
        left: 1.2rem;
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, #8a1c1c, #c0392b);
        border-radius: 2px;
        transition: width 0.35s ease, background 0.35s ease;
    }

    .nav-list a:hover {
        color: #8a1c1c;
        background: rgba(138, 28, 28, 0.05);
    }

    .nav-list a:hover::after {
        width: 70%;
    }

    .nav-list a:active {
        background: rgba(138, 28, 28, 0.1);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-list a.active::after {
        width: 70%;
        background: linear-gradient(90deg, #8a1c1c, #e74c3c);
    }

    .nav-list a.active::after {
        width: 70%;
        background: linear-gradient(90deg, #8a1c1c, #e74c3c);
    }

    .mini-card {
        flex-direction: column;
        align-items: stretch
    }

    .mini-form {
        flex-direction: row;
        align-items: flex-start;
    }

    .header-lang-btn {
        position: relative;
        left: 15px;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.2rem 0.5rem;
        border-radius: 0.4rem;
        transition: background 0.2s;
    }

    .header-lang-btn:focus {
        background: rgba(255, 255, 255, 0.18);
    }

    .footer-social-links {
        margin-top: 0.5rem;
    }
}

@media (max-width:999px) and (orientation: landscape) {
    .nav-list {
        top: 0;
        right: 50%;
        left: auto;
        transform: translateX(50%) translateY(-10px);
        flex-direction: row;
        align-items: center;
        padding: 0.6rem 1rem;
        border-radius: 0 0 1.2rem 1.2rem;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    }

    .nav-list.show {
        transform: translateX(50%) translateY(0);
    }

    .nav-list li {
        transform: translateY(0) translateX(14px) scale(0.97);
    }

    .nav-list a {
        white-space: nowrap;
        text-align: center;
    }

    .nav-list a::after {
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 0%;
        height: 2px;
        border-radius: 2px;
        transition: width 0.35s ease, background 0.35s ease;
    }

    .nav-list a:hover::after,
    .nav-list a.active::after {
        width: 70%;
    }
}

@media (max-height: 660px) and (orientation: portrait) {
    .nav-list {
        position: fixed;
        top: 0.4rem;
        right: 0;
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y proximity;
        gap: 0.25rem;
        padding: 0.6rem 0.8rem;
        border-radius: 0 0 1.2rem 1.2rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
        width: 35%;
        height: calc(3 * 2.2rem + 2 * 1.75rem);
        backdrop-filter: blur(10px) saturate(160%);
        -webkit-backdrop-filter: blur(10px) saturate(160%);
        background: rgba(255, 255, 255, 0.6);
        scrollbar-width: thin;
        scrollbar-color: var(--gold) rgba(255, 255, 255, 0.2);
        scroll-behavior: smooth;
    }

    .nav-list::-webkit-scrollbar {
        width: 3px;
    }

    .nav-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-list::-webkit-scrollbar-thumb {
        background: rgba(200, 160, 60, 0.4);
        border-radius: 2px;
        min-height: 20px;
        transition: background 0.25s ease, height 0.25s ease;
    }


    .nav-list::-webkit-scrollbar-thumb:hover {
        background: rgba(200, 160, 60, 0.7);
        min-height: 24px;
    }

    .nav-list li {
        flex: 0 0 auto;
    }

    .nav-list a {
        display: block;
        text-align: center;
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
        border-radius: 0.8rem;
        white-space: nowrap;
        transition: all 0.25s ease;
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(1.03);
    }

    .nav-list a::after {
        display: none;
    }
}


@media (max-width: 850px) and (orientation: landscape) {

    .nav-list a {
        font-size: 0.9rem;
        padding: 0.3rem 0.4rem;
    }
}

@media (min-width: 550px) and (max-width: 600px) and (orientation: landscape) {
    .nav-list a {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (min-width: 320px) and (max-width: 549px) and (orientation: landscape) {
    .nav-list {
        position: fixed;
        top: 0.4rem;
        right: 0;
        left: auto;
        inset-inline-end: 0;
        transform: translateY(-15px);
        box-sizing: border-box;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y proximity;
        gap: 0.25rem;
        padding: 0.6rem 0.8rem;
        border-radius: 0 0 1.2rem 1.2rem;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
        width: clamp(160px, 50%, 320px);
        max-width: calc(100vw - 0.6rem);
        height: calc(3 * 2.2rem + 2 * 1.75rem);
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(10px) saturate(160%);
        -webkit-backdrop-filter: blur(10px) saturate(160%);
        scrollbar-width: thin;
        scrollbar-color: rgba(200, 160, 60, 0.5) transparent;
        scroll-behavior: smooth;
        max-inline-size: 100vw;
        overflow-anchor: none;
    }

    .nav-list.show {
        transform: translateY(0);
    }

    .nav-list::-webkit-scrollbar {
        width: 3px;
    }

    .nav-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-list::-webkit-scrollbar-thumb {
        background: rgba(200, 160, 60, 0.4);
        border-radius: 2px;
        min-height: 20px;
        transition: background 0.25s ease, height 0.25s ease;
    }

    .nav-list::-webkit-scrollbar-thumb:hover {
        background: rgba(200, 160, 60, 0.7);
        min-height: 24px;
    }

    .nav-list li {
        flex: 0 0 auto;
    }

    .nav-list a {
        display: block;
        text-align: center;
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
        border-radius: 0.8rem;
        white-space: nowrap;
        transition: all 0.25s ease;
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(0, 0, 0, 0.05);
        transform: scale(1.03);
    }

    .nav-list a::after {
        display: none;
    }
}



@media (hover: none) and (pointer: coarse) {

    .btn-main:hover,
    .btn-dark:hover {
        transform: none !important;
    }

    .btn-main:hover::before,
    .btn-dark:hover::before {
        width: 0 !important;
        height: 0 !important;
        opacity: 0 !important;
    }
}

@media (min-width: 780px) and (max-width: 1023px) {
    .cases-grid {
        grid-template-columns: 1fr;
        width: 70%;
        margin: 0 auto;
    }
}



@media (max-width: 769px) {


    .site-footer,
    .footer-contact {
        align-items: center;
        align-content: center;
        justify-content: center;
        text-align: center;
    }

    .footer-contact-list {
        list-style: none;
        padding: 0;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        width: fit-content;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: start;
    }

    .footer-social-links img {
        width: 48px;
        height: 48px;
        border-radius: 30%;
    }

}

@media (min-width: 769px) and (max-width: 999px) {
    .steps-carousel .slide {
        flex: 0 0 48%;
    }

    .header-brand-slogan.title {
        font-size: 36px;
    }

    .header-brand-slogan.postfix {
        font-size: 12px;
        position: relative;
    }
}

@media (max-width: 999px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-card {
        animation: floatCard 8s ease-in-out infinite alternate;
    }

    .case-icon svg {
        animation: floatIcon 6s ease-in-out infinite alternate;
    }
}

@media (max-width: 768px) {

    .about-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 90%;
    }

    .about-item {
        width: 100%;
        max-width: 360px;
        min-height: 140px;
        padding: 1.2rem 1rem;
        border-radius: 0.9rem;
    }

    .about-item p {
        font-size: 0.9rem;
        max-width: 85%;
    }

    .about-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .about-desc {
        font-size: 0.95rem;
        margin-bottom: 2.2rem;
    }

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

    .service-category {
        padding: 1.5rem 1rem;
    }

    .service-category h3 {
        font-size: 1.4rem;
    }

    .steps-carousel .slide {
        flex: 0 0 50%;
    }

    .steps-carousel {
        overflow: visible;
    }

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

    .contacts-page-list,
    .contact-form button {
        width: 90%;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .hero-row {
        flex-direction: column;
        gap: 1rem;
    }

    .header-brand-slogan.title {
        font-size: 32px;
    }

    .header-brand-slogan.postfix {
        font-size: 12px;
    }
}

@media (min-width: 700px) {
    :root {
        --slides: 2;
    }
}

@media (max-width: 600px) {
    .mini-form {
        grid-template-columns: 1fr;
    }

    .mini-form .btn {
        width: 100%;
    }

    .form-messages {
        margin-top: -0.2rem;
    }
}

@media(max-width:520px) {
    .carousel-btn {
        display: none;
    }

    .steps-carousel .slide {
        flex: 0 0 50%;
    }

    .step-card {
        padding: 1rem;
    }

    .header-brand-name {
        position: relative;
    }

    .header-brand-slogan.title {
        font-size: 26px;
        display: inline;
    }

    .header-brand-subtitle {
        font-size: 10px;
        font-weight: 400;
        margin-top: 6px;
    }

    .header-brand-slogan.postfix {
        font-size: 10px;
        font-weight: 300;
        color: rgba(255, 235, 200, 0.7);
        position: relative;
        display: inline-block;
        animation: none !important;
    }
}

@media(max-width:501px) {
    .header-brand-slogan.postfix {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-grid {
        gap: 1.2rem;
    }

    .about-item {
        max-height: 25px;
        padding: 1rem;
    }

    .about-icon {
        width: 38px;
        height: 38px;
    }

    .about-item p {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .services {
        padding: 3rem 0.5rem;
    }

    .case-card {
        padding: 2rem 1.5rem;
    }

    .case-icon svg {
        width: 36px;
        height: 36px;
    }

    .cases-title {
        font-size: 1.8rem;
    }
}

@media(max-width:420px) {
    .header-brand-slogan.title {
        font-size: 28px;
        display: inline;
        letter-spacing: 0.1px;
    }

    .header-brand-slogan.postfix {
        display: none;
    }

    .header-brand-subtitle {
        display: none;
    }

    .contacts-page-list,
    .contact-form button {
        inline-size: 90%;
    }

    .msg {
        line-height: 1;
        margin-block-start: 0.5rem;
    }

    .mini-form .error-messages {
        min-height: 3em;
        font-size: 0.85rem;
    }
}

@media (hover: hover) {
    .header-lang-switch-dropdown:hover .header-lang-menu {
        display: block;
    }

    .header-lang-btn:hover {
        background: rgba(255, 255, 255, 0.18);
    }

    .carousel-btn:hover {
        transform: translateY(-50%) scale(1.03);
        background: var(--gold);
        color: #fff;
    }
}

@media (pointer: coarse) {

    .carousel-btn.prev,
    .carousel-btn,
    .carousel-btn.next {
        display: none;
        pointer-events: none;
    }
}