:root {
    --header-h: 80px;
    --bg-main: #121015;
    --bg-paper: #f4ddaa;
    --bg-paper-dark: #e0c37d;
    --accent-gold: #fff27b;
    --accent-gold-dark: #fbc851;
    --accent-red: #f46a3a;
    --accent-muted: #c6b58c;
    --text-main: #fdf5e6;
    --text-muted: #b5a98b;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.4);
    --transition-fast: 0.25s ease;
    --transition-slow: 0.45s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url("../img/rose-bg.jpg") center/cover no-repeat fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;

    padding-top: var(--header-h);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

/* CONTAINERS */

.container {
    width: min(1160px, 100% - 32px);
    margin-inline: auto;
}

.section {
    padding: 64px 0;
}

.section-title {
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 32px;
    color: var(--accent-gold);
}

.section-subtitle {
    margin-bottom: 24px;
    color: var(--text-muted);
}

/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(10, 8, 12, 0.88);
    border-bottom: none;
}


.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

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

.logo__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background:
            radial-gradient(circle at 30% 20%, #ffe9a3, #f7c95c, #c1791f),
            url("../img/logo-texture.png");
    background-blend-mode: multiply;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6);
}

.logo__text-top {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.logo__text-main {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav__link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    position: relative;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
    transition: width var(--transition-fast);
}

.nav__link:hover {
    color: var(--text-main);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    color: var(--accent-gold);
}

/* HEADER CONTACTS */

.header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 11px;
    color: var(--text-muted);
}

.header__phone {
    font-size: 13px;
    color: var(--accent-gold);
}

/* BURGER */

.burger {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(246, 207, 135, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.burger span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-gold);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.burger--open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.burger--open span:nth-child(2) {
    opacity: 0;
}

.burger--open span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* MOBILE NAV */

.nav--mobile {
    position: fixed;
    inset: 56px 0 auto 0;
    background: radial-gradient(circle at top, #2e1c12 0, #0f0b10 55%);
    padding: 16px 0 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.nav--mobile.nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: #231308;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
    transition:
            transform var(--transition-fast),
            box-shadow var(--transition-fast),
            background var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--accent-gold-dark), var(--accent-red));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(249, 211, 135, 0.45);
    color: var(--accent-gold);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* HERO SLIDER */

.hero {
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    height: calc(100svh - var(--header-h));
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}


.hero__slider {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity var(--transition-slow), transform 7s ease-out;
}

.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 10% 0, rgba(0, 0, 0, 0.1), transparent 55%),
            radial-gradient(circle at 80% 100%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

.hero__slide--active {
    opacity: 1;
    transform: scale(1.02);
}

.hero__content{
    position: relative;
    height: 100%;
    width: 100%;

    margin: 0;
    max-width: none;

    padding-top: 120px;
    padding-left: clamp(80px, 6vw, 140px);
    padding-right: 24px;
    padding-bottom: 180px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.hero__brand{
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 26px;
}

.hero__brand-seal{
    width: 120px;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
}

.hero__brand-title{
    width: 760px;
    max-width: 760px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.45));
}

.hero__intro{
    margin-left: calc(clamp(76px, 7vw, 120px) + clamp(16px, 2.2vw, 28px));
    max-width: 760px;
}

.hero__badge {
    font-size: 12px;
    letter-spacing: 0.25em;
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(34px, 4.3vw, 54px);
    letter-spacing: 0.02em;
    line-height: 1.12;

    text-align: center;
    margin: 0 0 18px 0;
    padding-left: 35px;
}

.hero__text {
    max-width: 620px;
    font-size: 21px;
    line-height: 1.6;
    color: rgb(250, 238, 127);

    text-align: center;
    padding-left: 95px;
}

.hero__actions{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 86px;
    margin: 0;
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
}

.hero__actions .btn{
    padding: 16px 46px;
    font-size: 18px;
    border-radius: 14px;
    min-width: 280px;
    text-align: center;
}

.hero__meta{
    font-size: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 26px;

    display: flex;
    flex-direction: column;
    gap: 6px;

    text-align: center;
    justify-content: center;

    width: calc(100% - 48px);
    max-width: 720px;

    padding-bottom: 20px;
}


.hero__meta strong {
    color: var(--accent-gold);
}

/* HERO controls */

.hero__controls {
    position: absolute;
    inset: auto 0 16px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding-inline: clamp(16px, 8vw, 80px);
}

.hero__arrows {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.hero__arrow {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(246, 206, 135, 0.4);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero__arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 2;
}

.hero__arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

.hero__dots {
    display: none !important;

    position: absolute;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
    pointer-events: auto;
    z-index: 5;
}


.hero__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero__dot--active {
    background: var(--accent-gold);
    transform: scale(1.25);
}

/* =========================
   NEWS
   ========================= */

.news {
    padding-top: 64px;
    padding-bottom: 40px;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news__loading,
.news__empty {
    grid-column: 1 / -1;
    font-size: 14px;
    color: var(--text-muted);
}

/* базовая карточка */

.news-card {
    background: radial-gradient(circle at top, #f4ddaa, #e0c37d);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    color: #231308;
    display: flex;
    flex-direction: column;
    transform-origin: center bottom;
    transform: translateY(10px);
    opacity: 0;
    transition:
            transform var(--transition-slow),
            opacity var(--transition-slow),
            box-shadow var(--transition-fast);
}

.news-card--visible {
    opacity: 1;
    transform: translateY(0);
}

/* картинка */

.news-card__image {
    height: 260px;
    background-size: cover;
    background-position: center;
}

/* тело карточки */
.news-card__body {
    padding: 8px 18px 14px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* контент (дата, заголовок, текст) */

.news-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-card__date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c99a3f;
    margin-bottom: 4px;
}

.news-card__title {
    font-weight: 600;
    margin-bottom: 6px;
}

.news-card__text {
    font-size: 14px;
    color: #5b4622;
}

/* низ карточки: ссылка */

.news-card__meta {
    margin-top: auto;
}

.news-card__more {
    display: inline-block;
    font-size: 13px;
    color: #9b7124;
    text-decoration: underline;
}

.news-card__more:hover {
    color: #c48a26;
}

/* ОПРОСЫ */

.news-card--poll .news-card__image {
    display: none;
}

.news-card--poll .news-card__image {
    display: none;
}

.news-card--poll .news-card__body {
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.news-card--poll .news-card__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card--poll .news-card__meta {
    margin-top: auto;
}

.news-card__poll {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card__poll-option {
    font-size: 13px;
    color: #5d4026;
}

.news-card__poll-option-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}

.news-card__poll-bar {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.news-card__poll-bar-fill {
    position: absolute;
    inset: 0;
    background: rgba(139, 110, 42, 0.85);
}

.news-card__poll-votes {
    font-size: 11px;
    color: #8b6e2a;
    margin-top: 4px;
}

/* посты "только картинка" */

.news-card--image-only .news-card__title,
.news-card--image-only .news-card__text {
    display: none;
}

.news-card--image-only .news-card__image {
    height: 340px;
}

.news-card--image-only .news-card__meta {
    margin-top: 8px;
}

#vk_news {
    min-height: 120px;
}

#vk_news .news-card {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* =========================
   LOCATIONS
   ========================= */

.locations {
    padding-top: 24px;
    padding-bottom: 80px;
}

.locations__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: flex-start;
    transition: grid-template-columns var(--transition-slow);
}

.locations__layout--split {
    grid-template-columns: 1.1fr 1.2fr;
}

.locations__cities {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.city {
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(240, 208, 133, 0.12);
    overflow: hidden;
}

.city__header {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city__header::after {
    content: "▾";
    font-size: 12px;
    transform: translateY(1px);
}

.city--open .city__header::after {
    transform: translateY(1px) rotate(180deg);
}

.city__addresses {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.city--open .city__addresses {
    max-height: 240px;
}

.address-list {
    padding: 4px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.address {
    width: 100%;
    padding: 8px 10px;
    text-align: left;
    font-size: 14px;
    border-radius: 12px;
    background: rgba(240, 208, 133, 0.06);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.address span {
    font-size: 11px;
    color: var(--text-muted);
}

.address:hover {
    background: rgba(245, 201, 114, 0.16);
    transform: translateY(-1px);
}

/* MAP CARD */

.locations__map-wrapper {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at top left, #f6e0b2, #e0c37d);
    color: #2d1b0b;
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
}

/* LOCATIONS: правая панель */
.locations__details {
    display: none;
}

.locations__details.is-active {
    display: grid;
}

.locations__info-address {
    font-size: 13px;
    color: #5b4622;
    margin-bottom: 12px;
}


.locations__map {
    min-height: 260px;
}

.locations__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.locations__info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.locations__info-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.locations__schedule {
    font-size: 13px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4px 16px;
    margin-bottom: 12px;
}

.locations__phone {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.locations__phone span {
    font-size: 11px;
    color: #7a612e;
}

/* MAP MODAL */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    z-index: 200;
}

.modal--open {
    opacity: 1;
    pointer-events: auto;
}

.modal__inner {
    width: min(720px, 100% - 32px);
    background: radial-gradient(circle at top, #f4ddaa, #e0c37d);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    color: #241409;
    transform: translateY(16px);
    transition: transform var(--transition-fast);
}

.modal--open .modal__inner {
    transform: translateY(0);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.12);
}

.modal__title {
    font-weight: 600;
}

.modal__close {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal__body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
}

.modal__map iframe {
    width: 100%;
    height: 280px;
    border: 0;
}

.modal__info {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.modal__schedule {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4px 16px;
}

.modal__call-btn {
    margin-top: 4px;
    align-self: flex-start;
}

/* FOOTER */

.footer {
    background: #111015;
    border-top: 1px solid rgba(248, 209, 131, 0.18);
    padding: 20px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

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

.footer__logo-text-main {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(248, 209, 131, 0.3);
    font-size: 16px;
}

.footer__col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 6px;
    color: var(--accent-gold);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* PRODUCTS PAGE */

.products-hero {
    padding: 56px 0 20px;
}

.products-hero__content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
}

.products-hero__badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.products-hero__title {
    font-size: clamp(28px, 3.4vw, 38px);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.products-hero__text {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 460px;
}

/* CAROUSEL */

.carousel-section {
    padding: 26px 0;
}

.carousel-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.carousel-section__title {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.carousel-section__note {
    font-size: 12px;
    color: var(--text-muted);
}

.carousel {
    position: relative;
}

.carousel__track {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.carousel__inner {
    display: flex;
    gap: 16px;
    will-change: transform;
    transition: transform 0.6s ease;
}

.product-card {
    min-width: 260px;
    max-width: 260px;

    background:
            radial-gradient(circle at 20% 0%, rgba(255,255,255,0.45), rgba(255,255,255,0) 55%),
            linear-gradient(135deg, rgb(253, 184, 25), rgba(244, 135, 98, 0.41));

    border: 1px solid rgba(255, 230, 150, 0.25);
    border-radius: var(--border-radius-md);

    padding: 16px 16px 14px;
    color: #2a160c;

    box-shadow:
            0 12px 30px rgba(0,0,0,0.25),
            inset 0 1px 0 rgba(255,255,255,0.25);

    backdrop-filter: blur(3px);

    transform: translateY(10px);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}


.product-card--visible {
    transform: translateY(0);
    opacity: 1;
}

.product-card__tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8b6e2a;
    margin-bottom: 4px;
}

.product-card__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.product-card__meta {
    font-size: 12px;
    color: #71542b;
}

.product-card__description {
    font-size: 13px;
    margin-top: 8px;
    color: #4b3616;
}

.carousel__arrows {
    position: absolute;
    inset: -38px 0 auto auto;
    display: flex;
    gap: 6px;
}

/* CONTACTS PAGE */

.contacts-main {
    padding: 56px 0 32px;
}

.contacts-main__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

/* ВАКАНСИИ */
.contacts-main__grid--single{
    grid-template-columns: 1fr;
}

.contacts-card {
    border-radius: var(--border-radius-lg);
    padding: 20px 22px;
    background: radial-gradient(circle at top, #f4ddaa, #e0c37d);
    color: #2c1708;
    box-shadow: var(--shadow-soft);
}

.contacts-card__title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}

.contacts-card__item {
    font-size: 14px;
    margin-bottom: 8px;
}

.contacts-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #876829;
}

.contacts-card__value {
    font-weight: 600;
}

.contacts-card__socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contacts-card__social {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* TEAM */

.team {
    padding: 16px 0 64px;
}

.team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.team-card {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 18px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(248, 209, 131, 0.16);
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.team-card--visible {
    transform: translateY(0);
    opacity: 1;
}

.team-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    margin: 0 auto 8px;
    background: radial-gradient(circle at 30% 20%, #ffd594, #f6b35c, #8b4b25);
}

.team-card__name {
    font-weight: 600;
    margin-bottom: 2px;
}

.team-card__role {
    font-size: 12px;
    color: var(--text-muted);
}

/* SCROLL ANIMATION ATTR */

[data-animate] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1024px) {
    .hero__content {
        padding-top: 96px;
    }

    .products-hero__content {
        grid-template-columns: 1fr;
    }

    .team__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer__inner {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (max-width: 768px) {
    .header__contacts {
        display: none;
    }

    .nav {
        display: none;
    }

    .burger {
        display: inline-flex;
    }

    .nav--mobile {
        display: flex;
    }

    .hero {
        min-height: 520px;
    }

    .hero__content {
        padding-top: calc(var(--header-h) + 33px);
    }

    .hero__meta {
        flex-direction: column;
    }

    .news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .locations__map-wrapper {
        grid-template-columns: 1fr;
    }

    .locations__details--inline {
        margin-top: 14px;
    }

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

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

    .team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 520px) {
    .hero__content {
        padding-top: calc(var(--header-h) + 38px) !important;
    }

    .hero__title {
    font-size: clamp(34px, 4.3vw, 54px);
    letter-spacing: 0.02em;
    line-height: 1.12;
    margin-bottom: 18px;
}

    .hero__badge {
        letter-spacing: 0.22em;
    }

    .hero__controls {
        padding-inline: 16px;
    }

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

    .product-card {
        min-width: 220px;
        max-width: 220px;
    }

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

@media (max-width: 900px) {
    :root { --header-h: 72px; }
}
@media (max-width: 520px) {
    :root { --header-h: 66px; }
}


html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.footer { margin-top: auto; }

/* =========================
   PARTNERS
   ========================= */

.partners {
    padding: 24px 0 80px;
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.partners__item {
    height: 86px;
    border-radius: 18px;
    background: radial-gradient(circle at top, #f4ddaa, #e0c37d);
    border: 1px solid rgba(240, 208, 133, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.partners__item:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.55);
}

.partners__item img {
    max-height: 56px;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(1.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .partners__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .partners__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .partners__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.city__addresses {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.city.city--open .city__addresses {
    max-height: 2000px;
    overflow: visible;
}

/* =========================
   КЛИКАБЕЛЬНЫЙ ТЕЛЕФОН
   ========================= */

.locations__phone a,
.locations__phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;
    border-radius: 10px;

    text-decoration: none;
    color: inherit;

    transition: background-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    cursor: pointer;
}

.locations__phone a:hover,
.locations__phone-link:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: underline;
}

.locations__phone a:active,
.locations__phone-link:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.18);
}

.locations__phone a:focus-visible,
.locations__phone-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .locations__phone a,
    .locations__phone-link {
        padding: 10px 14px;
        border-radius: 14px;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.08);
    }
}

/* ===============================
   ЛОГОТИП В ШАПКЕ / ПОДВАЛЕ
   =============================== */

.logo__icon-img {
    width: 75px;
    height: 75px;
    border-radius: 30px;
    object-fit: contain;
    padding: 6px;
}

.logo__icon {
    display: none !important;
}

/* ===============================
   ПОДВАЛ: реквизиты + копирайт
   =============================== */

.footer__bottom {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(248, 209, 131, 0.18);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer__requisites {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
}

.footer__requisites span {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.footer__copyright {
    margin-left: auto;
    align-self: flex-end;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}

.hero__logo{
    width: 140px;
    height: auto;
    margin: 0 auto 14px;
    opacity: 0.9;
}

/* =========================
   HERO — MOBILE
   ========================= */

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: calc(100svh - var(--header-h));
        padding: 22px 0 28px;
    }

    .hero__content {
        padding: 22px 0 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;

        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .hero__brand {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .hero__brand-seal {
        width: 92px;
    }

    .hero__brand-title {
        width: min(320px, 86vw);
        max-width: 86vw;
    }

    .hero__intro {
        margin-left: 0;
        max-width: 560px;
        padding: 0 16px;
    }

    .hero__title {
        padding-left: 0;
        margin-bottom: 12px;
        font-size: clamp(26px, 6.2vw, 36px);
        line-height: 1.15;
    }

    .hero__text {
        padding-left: 0;
        font-size: 16px;
        line-height: 1.55;
        max-width: 34ch;
        margin-inline: auto;
    }

    .hero__actions {
        position: static;
        transform: none;
        left: auto;
        bottom: auto;
        margin-top: 18px;
        padding-bottom: 0;
    }

    .hero__actions .btn {
        min-width: 0;
        width: min(340px, 86vw);
        padding: 14px 18px;
        font-size: 14px;
        border-radius: 14px;
    }

    .hero__meta {
        position: static;
        transform: none;
        left: auto;
        bottom: auto;

        margin-top: 14px;
        padding-bottom: 0;
        width: min(560px, 92vw);

        font-size: 13px;
        line-height: 1.45;
    }

    /*!* точки слайдера на моб *!*/
    /*.hero__dots {*/
    /*    display: flex !important;   !* сейчас display:none !important :contentReference[oaicite:1]{index=1} *!*/
    /*}*/

    .hero__controls {
        position: static;
        inset: auto;
        margin-top: 14px;
        padding-inline: 0;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .hero__brand-seal {
        width: 84px;
    }

    .hero__text {
        font-size: 15px;
    }

    .hero__meta {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: calc(100svh - var(--header-h));
        height: auto;
        display: flex;
    }

    .hero__content {
        width: 100%;
        min-height: calc(100svh - var(--header-h));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /*
      hero__actions толкаем вниз через margin-top:auto
    */
    .hero__actions {
        margin-top: auto;
        padding-top: 22px;
    }

    .hero__meta {
        margin-top: 12px;
        padding-bottom: 22px;
    }
}

