:root {
    --bg-body: #0d111c;
    --bg-surface: rgba(20, 26, 38, 0.85);
    --bg-surface-strong: rgba(15, 23, 42, 0.92);
    --bg-contrast: #f8fafc;
    --accent: #ff4b4b;
    --accent-alt: #f97316;
    --accent-soft: rgba(255, 75, 75, 0.18);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-contrast: #0f172a;
    --border-color: rgba(148, 163, 184, 0.16);
    --border-strong: rgba(148, 163, 184, 0.35);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --shadow-soft: 0 28px 60px rgba(8, 15, 33, 0.45);
    --shadow-card: 0 14px 28px rgba(8, 15, 33, 0.36);
    --container-width: 1180px;
    --transition: 0.3s ease;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top, #141b2c 0%, #080c17 55%, #05070f 100%);
    color: var(--text-primary);
    line-height: 1.6;
}

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

mark {
    background: var(--accent-soft);
    color: var(--text-primary);
    padding: 0 4px;
    border-radius: 4px;
}

a:hover {
    color: var(--accent);
}

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

.hidden {
    display: none !important;
}

.container {
    width: min(100% - 40px, var(--container-width));
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    cursor: pointer;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), #ff784b);
    color: var(--text-contrast);
    box-shadow: 0 12px 30px rgba(255, 75, 75, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(255, 75, 75, 0.4);
}

.site--network .hero__actions .btn--primary:hover,
.site--network .hero__actions .btn--primary:focus-visible {
    color: #fff;
}

.btn--secondary {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}

.btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 10px 26px rgba(255, 75, 75, 0.18);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(10, 14, 30, 0.72) 0%, rgba(8, 12, 23, 0.94) 100%),
        url('img/background.jpg') center/cover no-repeat;
}

.hero__overlay {
    width: 100%;
    padding: 90px 0 120px;
}

.hero__content {
    display: grid;
    justify-items: start;
    gap: 24px;
    text-align: left;
    backdrop-filter: blur(26px);
    background: rgba(7, 11, 20, 0.72);
    padding: 60px clamp(24px, 6vw, 70px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-soft);
}

.hero_logo {
    width: auto;
  height: 100%;            /* вписывается по высоте контейнера */
  max-width: 100%;
  max-height: 80px;        /* не выходит за высоту плашки */
  display: block;
    mix-blend-mode: multiply;
    object-fit: contain;
  
}
.grenze_cont {
  width: 100%;             /* занимает всю ширину контейнера */
  height: 100%;            /* занимает всю высоту контейнера */
  display: flex;
  align-items: center;
  justify-content: center;
}

.pryamougolnik_gradient {
 width: 100%;
  max-width: 1100px;        /* ограничиваем ширину на десктопе */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
 background: linear-gradient(
  90deg,
  #0d111c 0%,
  #0d111c 0.5%,      /* тёмный держится до 5% */
  #ffffff 30%,     /* быстро светлеет */
  #ffffff 70%,     /* светлая зона от 30% до 70% */
  #0d111c 99.5%,     /* быстро темнеет */
  #0d111c 100%
);
  border-radius: calc(infinity * 1px);
  overflow: hidden;
  margin: 0 auto;
  padding: 0;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    margin: 0;
    letter-spacing: 1.2px;
}

.hero p {
    margin: 0;
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__socials {
    display: flex;
    gap: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero__socials a {
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.hero__socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.promo-popup {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 520px);
    background: var(--bg-surface-strong);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    z-index: 2000;
    padding: 20px;
}
.promo-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(2, 6, 16, .72); padding: 20px; }
.promo-overlay .promo-popup { position: relative; inset: auto; transform: none; max-height: calc(100vh - 40px); overflow: auto; }
.promo-popup__link { display: block; }
.promo-popup__link:focus-visible, .city-picker button:focus-visible { outline: 3px solid #ff784b; outline-offset: 3px; }
.city-picker-overlay { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 20px; background: rgba(3, 8, 19, .86); backdrop-filter: blur(7px); }
.city-picker { width: min(100%, 730px); max-height: calc(100vh - 40px); overflow: auto; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--border-strong); border-radius: 28px; background: linear-gradient(145deg, #19233a, #0c1221); box-shadow: var(--shadow-soft); text-align: center; }
.city-picker h2 { margin: 0 0 5px; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.city-picker p { margin: 0 0 28px; color: var(--text-secondary); }
.city-picker__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.city-picker button { min-height: 56px; padding: 12px 18px; color: var(--text-primary); font: 600 1rem Montserrat, sans-serif; border: 1px solid var(--border-strong); border-radius: 14px; background: #222e47; cursor: pointer; transition: background .2s, transform .2s; }
.city-picker button:hover, .city-picker button.is-current { background: linear-gradient(135deg, var(--accent), #ff784b); color: #fff; transform: translateY(-2px); }
.hero__content { position: relative; }
.city-switcher { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(clamp(16px, 2vw, 32px), env(safe-area-inset-right)); padding: 8px 0; margin: 0; border: 0; border-bottom: 1px dashed rgba(248,250,252,.3); color: #c8d0de; background: transparent; font: 500 .85rem Montserrat, sans-serif; cursor: pointer; z-index: 40; text-shadow: 0 1px 6px rgba(0,0,0,.65); }
.city-switcher:hover { color: #fff; border-color: var(--accent); }
.city-picker { position: relative; }
.city-picker .city-picker__close { position: absolute; top: 12px; right: 16px; min-height: auto; padding: 2px 9px; border: 0; color: var(--text-secondary); background: transparent; font-size: 1.7rem; line-height: 1; }
.city-picker .city-picker__close:hover { color: #fff; background: transparent; transform: none; }
@media (max-width: 600px) { .city-switcher { font-size: .75rem; } }

.promo-popup__image {
    width: 100%;
    border-radius: var(--radius-md);
}

.promo-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(12, 18, 32, 0.86);
    cursor: pointer;
}

.promo-popup__close::before,
.promo-popup__close::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    transform-origin: center;
}

.promo-popup__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.promo-popup__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.promo-button {
    position: fixed;
    right: 28px;
    bottom: 28px;
    padding: 14px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #ff784b);
    color: var(--text-contrast);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(255, 75, 75, 0.45);
    z-index: 1500;
    transition: transform var(--transition), box-shadow var(--transition);
}

.promo-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 50px rgba(255, 75, 75, 0.5);
}

main {
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding: 0 0 120px;
}

.panel-gallery {
    margin-top: -80px;
}

.panel-container {
    display: flex;
    gap: 24px;
    position: relative;
}

.panel {
    position: relative;
    flex: 1;
    min-height: 260px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    cursor: pointer;
    transition: flex var(--transition), transform var(--transition), border-color var(--transition);
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--panel-image, transparent) center/cover no-repeat;
    opacity: 0.45;
    z-index: 0;
    transition: opacity var(--transition);
}

.panel h3,
.panel p {
    position: relative;
    z-index: 1;
    margin: 0;
}

.panel h3 {
    font-size: 1.4rem;
}

.panel p {
    color: rgba(248, 250, 252, 0.82);
}

.panel.active {
    flex: 1.6;
    border-color: var(--accent);
}

.panel:hover::before,
.panel.active::before {
    opacity: 0.75;
}

.locations {
    position: relative;
}

.locations::before {
    content: "";
    position: absolute;
    inset: -160px 0 -160px;
    background: linear-gradient(180deg, rgba(8, 12, 23, 0.9) 0%, rgba(8, 12, 23, 0.6) 50%, rgba(8, 12, 23, 0.9) 100%);
    pointer-events: none;
    z-index: -1;
}

.locations__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.locations__header h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.locations__header p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    max-width: 640px;
}

.site--network .locations__header .locations__night-note {
    width: fit-content;
    margin-top: 16px;
    padding: 9px 14px;
    color: var(--text-primary);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.045);
    border-left: 2px solid rgba(255, 103, 73, 0.65);
    border-radius: 8px;
}

.locations__stats {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.search-input {
    width: min(100%, 520px);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 18, 30, 0.82);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.search-input__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    position: relative;
}

.search-input__icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: var(--text-secondary);
    top: 12px;
    left: 14px;
    transform: rotate(45deg);
    border-radius: 999px;
}

.search-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.locations__search {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

.locations__board {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.objects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.objects-empty {
    padding: 26px;
    text-align: center;
    background: rgba(11, 18, 30, 0.82);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(148, 163, 184, 0.35);
    color: var(--text-secondary);
}

.object-card {
    background: rgba(13, 20, 33, 0.88);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    cursor: pointer;
}

.object-card:hover,
.object-card.is-active,
.object-card.is-hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: rgba(13, 20, 33, 0.96);
}

.object-card__header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
}

.object-card__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.object-card__status {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(251, 146, 60, 0.55);
    border-radius: 999px;
    padding: 4px 9px;
    color: #fdba74;
    background: rgba(154, 52, 18, 0.16);
    font-size: 0.75rem;
    font-weight: 700;
}

.object-card__area {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.object-card__area mark {
    background: rgba(148, 163, 184, 0.25);
    color: var(--text-primary);
}

.object-card__region {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.7);
}

.object-card__meta {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.object-card__phone {
    font-weight: 600;
    color: var(--accent);
}

.object-card__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.object-card__actions .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
}

.accordion-section .container {
    background: rgba(11, 18, 30, 0.82);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 40px clamp(20px, 4vw, 50px);
    box-shadow: var(--shadow-soft);
}

.accordion {
    display: grid;
    gap: 18px;
}

.accordion-btn,
.corporate-title {
    width: 100%;
    text-align: left;
    padding: 20px 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(13, 20, 33, 0.85);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.accordion-btn[aria-expanded="true"],
.accordion-btn.active {
    border-color: var(--accent);
    background: rgba(13, 20, 33, 0.96);
    transform: translateY(-2px);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.accordion-content.is-open {
    opacity: 1;
}

.corporate-title {
    margin: 0;
    cursor: default;
    border-color: var(--accent);
}

.accordion-content.corporate-content {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transition: none;
}

.pricing-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.pricing-links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.pricing-bundle-link {
    font-size: 0.95rem;
    padding: 12px 20px;
}

.pricing-tab {
    flex: 1 1 200px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pricing-tab.active {
    background: rgba(255, 75, 75, 0.18);
    color: var(--accent);
    border-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.diameter-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(14, 22, 36, 0.82);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.diameter-selector label {
    font-weight: 600;
}

.slider {
    flex: 1;
    appearance: none;
    height: 4px;
    background: rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 0 8px rgba(255, 75, 75, 0.2);
    transition: box-shadow var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 12px rgba(255, 75, 75, 0.28);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(13, 20, 33, 0.82);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.price-table thead {
    background: rgba(15, 23, 42, 0.92);
}

.price-table th,
.price-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.price-table tbody tr:hover {
    background: rgba(148, 163, 184, 0.08);
}

.accordion-text {
    padding: 0 6px;
    color: var(--text-secondary);
    display: grid;
    gap: 18px;
}

.advantage-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
}

.advantage-item {
    position: relative;
}

.advantage-item::before {
    content: "•";
    position: absolute;
    left: -20px;
    color: var(--accent);
}

.accordion-cta {
    font-weight: 600;
}

.footer {
    padding: 60px 0;
    background: rgba(5, 8, 16, 0.92);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.footer__brand {
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--text-secondary);
}

.footer__brand img {
    width: 120px;
}

.footer__brand p {
    margin: 0;
    max-width: 360px;
}

.footer__contacts {
    display: grid;
    gap: 10px;
    font-weight: 600;
}

.footer__contacts a {
    color: var(--text-primary);
}

.site--network .footer__contacts {
    justify-items: end;
}

.site--network .footer__inner {
    display: grid;
    grid-template-columns: minmax(230px, 1fr) minmax(240px, 1.15fr) auto;
    gap: clamp(24px, 4vw, 64px);
    align-items: center;
}

.site--network .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.site--network .footer__brand img { width: clamp(145px, 18vw, 205px); border-radius: 12px; }

.site--network .footer__trademark {
    display: grid;
    gap: 3px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.35;
}

.site--network .footer__trademark small {
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 500;
}

.site--network .footer__credit {
    color: var(--text-secondary);
    font-size: .83rem;
    line-height: 1.55;
}

.site--network .footer__credit p { margin: 0 0 5px; }
.site--network .footer__credit a { display: inline-block; margin-top: 5px; color: var(--text-primary); text-underline-offset: 3px; }
.site--network .footer__credit a:hover { color: var(--accent); }

.site--network .footer__social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site--network .footer__social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
    color: var(--text-secondary);
    transition: transform 200ms ease, color 200ms ease, background 200ms ease, border-color 200ms ease;
}

.site--network .footer__social-icons a:hover,
.site--network .footer__social-icons a:focus-visible {
    transform: translateY(-2px);
    color: #fff;
    background: rgba(255, 75, 75, .17);
    border-color: rgba(255, 75, 75, .6);
}

.site--network .footer__social-icons svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 640px) {
    .site--network .footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .site--network .footer__contacts {
        justify-items: start;
    }
}

@media (min-width: 641px) and (max-width: 960px) {
    .site--network .footer__inner { grid-template-columns: 1fr 1fr; }
    .site--network .footer__contacts { grid-column: 1 / -1; justify-items: start; }
}

@media (max-width: 1180px) {
    .panel-container {
        flex-direction: column;
    }

    .panel {
        min-height: 200px;
    }

}

@media (max-width: 900px) {
    main {
        gap: 80px;
        padding-bottom: 80px;
    }

    .hero__content {
        padding: 40px 28px;
    }

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

    .hero__socials {
        width: 100%;
        justify-content: space-between;
    }

    .locations__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .locations__stats {
        align-self: flex-start;
    }

    .accordion-section .container {
        padding: 32px 20px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 0.95rem;
    }

    .promo-button {
        right: 18px;
        bottom: 18px;
    }

    .hero__logo {
        width: 160px;
    }

    .hero__socials {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .locations__search {
        margin-bottom: 20px;
    }

    .objects-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .object-card {
        padding: 18px;
    }

    .object-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .object-card__area {
        font-size: 0.8rem;
    }

    .diameter-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-links {
        justify-content: flex-start;
    }
}/* ===== ВАКАНСИИ ===== */

.vacancies {
    margin: 100px 0;
}

.vacancy-card {
    background: rgba(13, 20, 33, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
}

.vacancy-card h3 {
    margin-top: 0;
}

.vacancy-salary {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.vacancy-note {
    color: #f97316;
    font-weight: 600;
}

.vacancy-card ul {
    padding-left: 20px;
}

.vacancy-card li {
    margin-bottom: 6px;
}

.vacancy-contact {
    margin-top: 20px;
    font-weight: 600;
}
.page-vacancies .vacancy-card {
    background: #1e1e22;
    border: 1px solid #3b3b43;
    border-radius: 30px;
    padding: clamp(28px, 5vw, 70px);
    color: #f8f8fa;
    box-shadow: 0 24px 70px rgba(0,0,0,.16);
}
.page-vacancies .vacancy-card h3 { font-size: clamp(1.65rem, 3vw, 2.7rem); font-weight: 500; line-height: 1.25; margin-bottom: 24px; }
.page-vacancies .vacancy-salary { color: #ff5b40; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 700; margin-bottom: 40px; }
.page-vacancies .vacancy-group { margin: 34px 0; }
.page-vacancies .vacancy-group h4 { border-left: 4px solid #ff5b40; padding-left: 20px; font-size: 1.35rem; margin: 0 0 20px; }
.page-vacancies .vacancy-group ul { list-style: none; padding: 0 0 0 25px; margin: 0; }
.page-vacancies .vacancy-group li { position: relative; color: #b8c0d4; font-size: 1.1rem; line-height: 1.55; padding-left: 28px; margin: 0 0 13px; }
.page-vacancies .vacancy-group li::before { content: '●'; color: #ff5b40; position: absolute; left: 0; }
.page-vacancies .vacancy-contact { background: #151519; border: 1px solid #37373e; border-radius: 20px; padding: 24px; margin: 42px 0 0; line-height: 1.6; }
.page-vacancies .vacancy-contact a { color: #ff5b40; }


/* ===== ВАКАНСИИ ===== */

.vacancies {
    margin: 100px 0;
}

.vacancy-card {
    background: rgba(13, 20, 33, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
}

.vacancy-card h3 {
    margin-top: 0;
}

.vacancy-salary {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

.vacancy-note {
    color: #f97316;
    font-weight: 600;
}

.vacancy-card ul {
    padding-left: 20px;
}

.vacancy-card li {
    margin-bottom: 6px;
}

.vacancy-contact {
    margin-top: 20px;
    font-weight: 600;
}
/* ===== УМЕНЬШЕННЫЙ HERO ДЛЯ СТРАНИЦ ===== */

.hero--small {
    min-height: auto;
}

.hero--small .hero__overlay {
    padding: 60px 0 60px;
}

.hero--small .hero__content {
    padding: 40px clamp(20px, 4vw, 50px);
}

.hero--small h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
}
/* ===== КОРРЕКЦИЯ ОТСТУПОВ ДЛЯ СТРАНИЦЫ ВАКАНСИЙ ===== */

.page-vacancies main {
    gap: 40px; /* вместо 120 */
    padding-bottom: 60px;
}

.page-vacancies .vacancies {
    margin-top: 0;
}

.page-vacancies .hero--small {
    min-height: auto;
}

.page-vacancies .hero--small .hero__overlay {
    padding-bottom: 30px;
}

/* Moscow homepage: fade the white logo field through its alpha channel. */
.site--network .pryamougolnik_gradient {
    max-width: 1100px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        #fff 28%,
        #fff 72%,
        rgba(255, 255, 255, 0) 100%);
}

.site--network .logo-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.site--network .hero_logo {
    width: auto;
    height: auto;
    max-height: 72px;
    max-width: min(100%, 500px);
}

@media (max-width: 640px) {
    .site--network .pryamougolnik_gradient {
        height: 70px;
        border-radius: 20px;
        background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            #fff 24%,
            #fff 76%,
            rgba(255, 255, 255, 0) 100%);
    }

    .site--network .hero_logo {
        max-width: 88%;
        max-height: 62px;
    }
}

/* Blend the hero into the gallery instead of ending the photo on a hard line. */
.site--network {
    background: #080c17;
}

.site--network .hero {
    background:
        linear-gradient(180deg, rgba(10, 14, 30, 0.72) 0%, rgba(8, 12, 23, 0.86) 52%, #080c17 100%),
        url('img/background.jpg') center/cover no-repeat;
}

.site--network .panel {
    transition: flex 420ms cubic-bezier(.22, 1, .36, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.site--network .panel::before {
    opacity: .7;
    transition: opacity 420ms ease, transform 600ms cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (min-width: 1181px) {
    .site--network .panel-container:hover .panel.active:not(:hover) {
        flex: 1;
    }

    .site--network .panel-container .panel:hover,
    .site--network .panel-container .panel:focus-visible {
        flex: 1.9;
        border-color: rgba(255, 75, 75, .45);
        box-shadow: 0 22px 44px rgba(0, 0, 0, .3);
    }

    .site--network .panel-container .panel:hover::before,
    .site--network .panel-container .panel:focus-visible::before {
        opacity: 1;
        transform: scale(1.045);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site--network .panel,
    .site--network .panel::before {
        transition: none;
    }
}

.site--network .locations__header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
}
.site--network .locations__search {
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
}
.site--network .locations__area-filter,
.site--network .locations__hours-filter {
    display: grid;
    gap: 6px;
    width: min(100%, 300px);
    color: var(--text-secondary);
    font-size: .77rem;
    font-weight: 600;
}
.site--network .locations__hours-filter { width: min(100%, 250px); }
.site--network .locations__area-filter select,
.site--network .locations__hours-filter select {
    width: 100%;
    min-height: 59px;
    padding: 0 46px 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #0b121e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23f5f7fb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
    color: var(--text-primary);
    font: 500 .88rem Montserrat, sans-serif;
    cursor: pointer;
}
.site--network .locations__area-filter select:focus-visible,
.site--network .locations__hours-filter select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.object-card__phone:hover,
.object-card__phone:focus-visible { color: #ff806f; }
.object-card__hours { color: #d8dfed; }
.object-card__hours--unknown { color: var(--text-secondary); font-size: .86rem; }

@media (max-width: 640px) {
    .site--network .hero { min-height: 0; }
    .site--network .hero__overlay { padding: 24px 0 40px; }
    .site--network .hero__content { gap: 18px; padding: 30px 18px 26px; }
    .site--network .panel-gallery { margin-top: 0; }
    .site--network .panel-container {
        flex-direction: row;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .site--network .panel-container::-webkit-scrollbar { display: none; }
    .site--network .panel,
    .site--network .panel.active {
        flex: 0 0 min(78vw, 320px);
        min-height: 200px;
        scroll-snap-align: start;
    }
    .site--network .hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }
    .site--network .hero__actions .btn {
        min-width: 0;
        padding: 12px 10px;
        font-size: .82rem;
        line-height: 1.3;
        text-align: center;
    }
    .site--network .hero__actions .btn:first-child,
    .site--network .hero__actions .btn:nth-child(2) { grid-column: 1 / -1; }
    .site--network .hero__socials {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 16px;
        font-size: .78rem;
        font-weight: 500;
    }
    .site--network .locations__search > * { width: 100%; }
}

/* Keep Moscow's vacancies page on the same surface, border and accent system as the main page. */
.page-vacancies.site--network main { padding-bottom: 0; }
.page-vacancies.site--network .vacancies { margin: 0 0 72px; }
.page-vacancies.site--network .vacancy-card {
    background: rgba(13, 20, 33, .92);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.page-vacancies.site--network .vacancy-salary,
.page-vacancies.site--network .vacancy-contact a { color: var(--accent); }
.page-vacancies.site--network .vacancy-card h4 {
    margin: 32px 0 16px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-size: 1.15rem;
}
.page-vacancies.site--network .vacancy-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.page-vacancies.site--network .vacancy-card li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    color: #c2cbdb;
}
.page-vacancies.site--network .vacancy-card li::before {
    content: '';
    position: absolute;
    top: .65em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.page-vacancies.site--network .vacancy-contact {
    background: rgba(11, 18, 30, .82);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.page-vacancies.site--network .footer__brand img { border-radius: 15px; }
.site--network :is(a, button, input, select):focus-visible {
    outline: 2px solid #ff806f;
    outline-offset: 3px;
}

/* Shared map actions: Yandex / 2GIS, same treatment in every region. */
.object-card__actions .btn--ghost { min-height:44px; padding:12px 18px; border:1px solid #394253; border-radius:999px; background:#293140; color:#fff; font-size:14px; font-weight:600; line-height:1.4; }
.object-card__actions .btn--ghost:hover { background:#3b4558; color:#fff; }
.object-card__actions .btn--ghost:focus-visible { outline:3px solid #ed5545; outline-offset:3px; }

/* Keep the full advertisement inside the visible viewport. */
.promo-overlay .promo-popup{width:auto;max-width:min(520px,calc(100vw - 40px));max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:hidden;flex-shrink:0}
.promo-popup__image{display:block;width:auto;height:auto;max-width:min(478px,calc(100vw - 82px));max-height:calc(100vh - 82px);max-height:calc(100dvh - 82px);object-fit:contain;margin:auto}
