:root {
    --bg: #f2f2f2;
    --surface: #ffffff;
    --text: #1e2126;
    --muted: #717171;
    --dark: #1e2025;
    --accent: #c98f17;
    --accent-dark: #9f6f0c;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(21, 24, 30, 0.85);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.08);
    border-bottom: 0;
    backdrop-filter: none;
}

.site-header__inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.site-branding {
    color: #fff;
    display: flex;
    flex-direction: column;
}

.site-branding__title {
    font-family: "Playfair Display", serif;
    font-size: 0.95rem;
    color: #f0f0f0;
    letter-spacing: 0.03em;
}

.site-nav {
    margin-left: auto;
}

.site-nav__menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    white-space: nowrap;
    color: #f5f5f5;
    font-size: 1.0rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.site-nav__menu > li {
    position: relative;
}

.site-nav__menu > li > a {
    display: inline-block;
    padding: 6px 0;
    border-bottom: 1px solid transparent !important;
    text-decoration: none !important;
    transition: border-bottom-color 0.2s ease;
}

.site-nav__menu > li > a:hover,
.site-nav__menu > li > a:focus-visible {
    border-bottom-color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

.site-nav__menu > li.current-menu-item > a,
.site-nav__menu > li.current_page_item > a,
.site-nav__menu > li.current-menu-parent > a,
.site-nav__menu > li.current-page-parent > a,
.site-nav__menu > li.current-menu-ancestor > a,
.site-nav__menu > li.current-page-ancestor > a {
    border-bottom-color: transparent !important;
}

.site-nav__menu > li > a[aria-current="page"] {
    border-bottom-color: rgba(255, 255, 255, 0.9) !important;
}

/* Prevent false active state when multiple custom links point to "/" */
.site-nav__menu > li > a[href="/"][aria-current="page"],
.site-nav__menu > li > a[href=""][aria-current="page"],
.site-nav__menu > li > a[href="#"][aria-current="page"],
.site-nav__menu > li > a[href="https://new.limaceramica.ru/"][aria-current="page"] {
    border-bottom-color: transparent !important;
}

/* Always show underline when user hovers/focuses menu item */
.site-nav__menu > li:hover > a,
.site-nav__menu > li:focus-within > a {
    border-bottom-color: rgba(255, 255, 255, 0.9) !important;
}

.site-nav__menu .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.97);
    color: #3a3a3a;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 35;
}

.site-nav__menu .sub-menu li {
    width: 100%;
}

.site-nav__menu .sub-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 0.78rem;
    color: #3f3f3f;
}

.site-nav__menu .sub-menu a:hover {
    background: #f3f3f3;
}

.site-nav__menu > li:hover > .sub-menu,
.site-nav__menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__menu > .menu-item-has-children > a {
    padding-right: 12px;
}

.site-nav__menu > .menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    transform: translateY(-65%) rotate(45deg);
}

.site-header__contact {
    font-size: 0.72rem;
    color: #f5f5f5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.78rem;
    transition: background 0.2s ease;
}

.button:hover {
    background: var(--accent-dark);
}

.button--small {
    padding: 10px 18px;
}

.button--outline {
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: transparent;
}

.hero {
    position: relative;
    min-height: 100vh;
    background-image: url("https://images.unsplash.com/photo-1615874694520-474822394e73?auto=format&fit=crop&w=2100&q=80");
    background-position: center;
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.32), rgba(10, 10, 10, 0.52));
}

.hero__content {
    position: relative;
    max-width: 760px;
    padding-block: 130px 110px;
    text-align: center;
    margin: 0 auto;
}

.hero__content p {
    font-size: 0.95rem;
    margin-inline: auto;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.85);
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.hero__arrow--prev {
    left: 24px;
}

.hero__arrow--next {
    right: 24px;
}

.hero__social {
    position: absolute;
    z-index: 5;
    left: 22px;
    bottom: 22px;
    display: flex;
    gap: 14px;
}

.hero__social a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.hero__counter {
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 5;
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.88);
}

.hero__counter span {
    font-size: 3.6rem;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 14px;
    line-height: 1.2;
    font-family: "Playfair Display", serif;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.3rem, 6vw, 3.6rem);
    margin-bottom: 16px;
    font-weight: 500;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
}

.section {
    padding: 80px 0;
}

.section--light {
    background: var(--surface);
}

.section--dark {
    background: #2a2d34;
    color: #f1f1f1;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
}

.split__media img {
    width: 100%;
    height: 460px;
    object-fit: cover;
}

.ticks {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 2px;
    background: var(--accent);
}

.features {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
}

.tiles-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tiles-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.projects-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.projects-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.section--posts {
    background: #ececec;
}

.posts-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.post-card {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.post-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-card__body {
    padding: 18px;
}

.post-card__body h3,
.post-card__body h2 {
    font-size: 1.3rem;
}

.post-card__body p {
    margin: 0;
    color: var(--muted);
}

.cta {
    background: linear-gradient(0deg, rgba(154, 106, 2, 0.95), rgba(201, 143, 23, 0.95));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta__inner {
    max-width: 780px;
}

.cta h2 {
    margin-bottom: 22px;
}

.site-footer {
    background: #1f2126;
    color: #d0d2d8;
}

.site-footer__grid {
    padding: 55px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
}

.site-footer__grid h3,
.site-footer__grid h4 {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    font-size: 0.85rem;
    color: #9ea1aa;
}

@media (max-width: 1024px) {
    .features,
    .projects-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split__media img {
        height: 360px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero__counter {
        font-size: 2rem;
    }

    .hero__counter span {
        font-size: 2.5rem;
    }
}

@media (max-width: 760px) {
    .site-header__inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .site-nav,
    .site-header__contact {
        display: none;
    }

    .site-header__inner {
        min-height: 58px;
    }

    .hero {
        min-height: 86vh;
    }

    .hero__content {
        padding-top: 84px;
    }

    .hero__arrow {
        width: 36px;
        height: 36px;
    }

    .hero__arrow--prev {
        left: 12px;
    }

    .hero__arrow--next {
        right: 12px;
    }

    .hero__social {
        left: 12px;
        gap: 10px;
    }

    .hero__counter {
        right: 12px;
        bottom: 14px;
    }

    .features,
    .tiles-grid,
    .projects-grid,
    .posts-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }
}
