:root {
  --ink: #17211a;
  --muted: #667064;
  --paper: #fffaf0;
  --surface: rgba(255, 255, 255, 0.73);
  --surface-strong: #ffffff;
  --line: rgba(31, 79, 55, 0.14);
  --green: #256f46;
  --green-deep: #0f3f2c;
  --gold: #d19a25;
  --red: #9f3f2f;
  --blue: #2f6f8f;
  --shadow: 0 24px 70px rgba(33, 49, 30, 0.14);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: #061d13;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    url("assets/images/vatp-bg.png") center center / cover no-repeat fixed,
    linear-gradient(135deg, #04180f 0%, #0c2f1e 46%, #155034 100%);
  opacity: 1;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 18, 10, 0.22), rgba(238, 244, 223, 0.14) 18%, rgba(238, 244, 223, 0.18) 50%, rgba(238, 244, 223, 0.14) 82%, rgba(3, 18, 10, 0.22)),
    radial-gradient(circle at 50% 8%, rgba(242, 221, 151, 0.12), transparent 32rem),
    linear-gradient(180deg, rgba(5, 23, 14, 0.12), rgba(5, 23, 14, 0.34));
  background-blend-mode: normal, normal, normal, normal;
}

a {
  color: var(--green);
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-frame {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 18px clamp(12px, 3vw, 34px) 34px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  max-width: var(--content);
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, 330px) auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 auto 24px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(33, 49, 30, 0.1);
  backdrop-filter: blur(18px);
}

.topbar__brand {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.topbar__brand img {
  width: 58px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(37, 111, 70, 0.18));
}

.topbar__brand strong {
  display: block;
  color: var(--green-deep);
  font-size: 18px;
  line-height: 1.1;
}

.topbar__brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.main-menu {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.language-tools {
  display: inline-flex;
  justify-self: end;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.language-toggle,
.language-reset {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--green-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.language-toggle.is-active,
.language-reset.is-active {
  color: #fff;
  background: var(--green);
}

.language-reset.is-active {
  background: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
}

.language-toggle:not(.is-active),
.language-reset:not(.is-active) {
  color: var(--green-deep);
  background: transparent;
}

.language-toggle:not(.is-active) .tatarstan-flag {
  opacity: 0.86;
}

.language-reset:hover,
.language-reset:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible {
  color: #fff;
  background: var(--green-deep);
}

.tatarstan-flag {
  width: 22px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14) inset;
  background: linear-gradient(180deg, #0b8f43 0 42%, #fff 42% 58%, #d71920 58% 100%);
}

#google_translate_element,
.goog-te-banner-frame,
.skiptranslate iframe {
  display: none !important;
}

body {
  top: 0 !important;
}

.main-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-menu a:hover,
.main-menu a:focus-visible,
.main-menu a[aria-current="page"] {
  color: #fff;
  background: var(--green);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
}

main,
.site-footer {
  max-width: var(--content);
  margin-inline: auto;
}

.hero {
  min-height: min(461px, calc(64vh - 90px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding: clamp(19px, 4.5vw, 56px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(242, 210, 93, 0.22), transparent 16rem),
    linear-gradient(115deg, rgba(15, 63, 44, 0.96), rgba(37, 111, 70, 0.86)),
    url("assets/images/slide-7.jpg") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f4d997;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-title h2 {
  margin: 0;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  line-height: 1.02;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(30px, 3.8vw, 46px);
  overflow-wrap: normal;
  hyphens: none;
}

.hero__copy {
  min-width: 0;
}

.hero__copy > p:not(.eyebrow) {
  max-width: 700px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.8vw, 19px);
  overflow-wrap: anywhere;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
}

.hero__actions a:first-child {
  color: var(--green-deep);
  background: #fff;
}

.hero__mark {
  display: grid;
  place-items: center;
  justify-self: start;
  width: min(100%, 504px);
  padding: 0;
  transform: translateX(-20%);
}

.hero__mark img {
  width: 120%;
  max-width: 120%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

.directions,
.regions,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.directions {
  margin: 18px 0;
}

.direction-card,
.region-card,
.news-grid article,
.content-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(33, 49, 30, 0.08);
}

.direction-card {
  min-width: 0;
  min-height: 180px;
  display: grid;
  align-content: end;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.direction-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.direction-card span {
  min-width: 0;
  color: var(--green-deep);
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.direction-card__short {
  display: none;
}

.direction-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.carousel {
  position: relative;
  display: block;
  margin: 22px 0;
  padding: 14px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 244, 223, 0.84));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel__track {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel__slide {
  position: relative;
  min-width: 100%;
  margin: 0;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: #10251b;
}

.carousel__slide:first-child::before {
  content: "Первый слайд";
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 63, 44, 0.72);
  backdrop-filter: blur(10px);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(242, 210, 93, 0.22), transparent 14rem),
    linear-gradient(180deg, transparent 26%, rgba(0, 0, 0, 0.68));
}

.carousel__slide div {
  position: absolute;
  left: clamp(18px, 4vw, 46px);
  right: clamp(18px, 4vw, 46px);
  bottom: clamp(18px, 4vw, 38px);
  z-index: 1;
  color: #fff;
}

.carousel__slide span {
  display: block;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.carousel__slide p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(15px, 2vw, 19px);
}

.carousel__controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(120deg, rgba(15, 63, 44, 0.9), rgba(37, 111, 70, 0.78));
  box-shadow: var(--shadow);
}

.intro-band span {
  display: block;
  color: #f4d997;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.intro-band strong {
  display: block;
  max-width: 860px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.18;
}

.intro-band a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: var(--radius);
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
  background: #fff;
}

.carousel__controls button,
.scroll-up,
.contact-form-modern button {
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 800;
  background: var(--green);
  cursor: pointer;
}

.carousel__controls button {
  height: 42px;
  font-size: 18px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.carousel__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(37, 111, 70, 0.28);
}

.carousel__dots button.is-active {
  background: var(--green);
}

.map-section iframe {
  width: 100%;
  height: clamp(320px, 42vw, 430px);
  display: block;
  border: 0;
  border-radius: var(--radius);
  background: #edf0e8;
}

.branches,
.news-strip {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.section-title {
  margin-bottom: 22px;
}

.section-title span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title h2 {
  font-size: clamp(32px, 5vw, 56px);
}

.branches__grid {
  display: grid;
  grid-template-columns: minmax(300px, 430px) 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
}

.globe {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin: auto;
  overflow: hidden;
  border-radius: 50%;
  background: #10251b;
  box-shadow: inset 50px 0 100px #000, inset 0 0 180px #000, 0 24px 60px rgba(0, 0, 0, 0.22);
}

.globe::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 50px 0 100px #000, inset 0 0 200px #000;
  pointer-events: none;
}

.surface {
  position: relative;
  width: 200%;
  height: 100%;
  margin: 0;
  background: url("assets/images/world-globe.png") right center / 100% 100% no-repeat;
  animation: axis 60s infinite linear;
}

@keyframes axis {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(0); }
}

.beacon {
  position: absolute;
  z-index: 3;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.beacon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px #fff;
  animation: signal 2s infinite ease-out;
}

@keyframes signal {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}

[data-location="Китай"] { top: 46.25%; left: 67.5%; }
[data-location="Великобритания"] { top: 31.5%; left: 14.25%; }
[data-location="Латвия"] { top: 28.75%; left: 26.25%; }
[data-location="Литва"] { top: 30%; left: 25%; }
[data-location="Эстония"] { top: 27.5%; left: 27.5%; }
[data-location="Украина"] { top: 34.25%; left: 32.5%; }
[data-location="Германия"] { top: 32%; left: 22.25%; }
[data-location="Финлядия"] { top: 72.5%; left: 40%; }
[data-location="Австралия"] { top: 75%; left: 85%; }
[data-location="Турция"] { top: 40%; left: 32.5%; }
[data-location="США"] { top: 37.5%; left: 147.5%; }
[data-location="Казахстан"] { top: 35%; left: 45%; }
[data-location="Швеция"] { top: 23.25%; left: 23.25%; }
[data-location="Узбекистан"] { top: 39.75%; left: 47.5%; }
[data-location="Таджикистан"] { top: 41.25%; left: 45%; }
[data-location="Чехия"] { top: 32.5%; left: 25%; }
[data-location="Болгария"] { top: 37.25%; left: 27.5%; }
[data-location="Молдова"] { top: 36%; left: 28.75%; }
[data-location="Египет"] { top: 50%; left: 30.5%; }
[data-location="ОАЭ"] { top: 49.5%; left: 43.5%; }
[data-location="Грузия"] { top: 38.25%; left: 37%; }
[data-location="Азербайджан"] { top: 39.75%; left: 40%; }
[data-location="Киргизия"] { top: 39%; left: 51.25%; }
[data-location="Япония"] { top: 42.5%; left: 85%; }
[data-location="Канада"] { top: 26.25%; left: 141.25%; }

.branch-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.branch-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-deep);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.64);
}

.regions {
  margin-top: 22px;
}

.region-card {
  min-height: 78px;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.news-grid article {
  padding: 20px;
}

.news-grid a {
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: none;
}

.news-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: clamp(32px, 7vw, 72px);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(15, 63, 44, 0.94), rgba(47, 111, 143, 0.72)),
    url("assets/images/slide-2.jpg") center / cover;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 7vw, 82px);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2vw, 20px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.breadcrumbs a {
  color: var(--green-deep);
}

.breadcrumbs span[aria-hidden="true"] {
  color: rgba(15, 63, 44, 0.42);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--muted);
}

.content-shell {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 46px);
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
}

.content-shell h1 {
  margin: 0 0 22px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
}

.content-shell h2,
.content-shell h3,
.content-shell h4,
.content-shell strong {
  color: var(--green-deep);
}

.content-shell p {
  margin: 0 0 1em;
  text-align: justify;
  text-justify: inter-word;
}

.content-shell li,
.content-shell td,
.content-shell th {
  text-align: justify;
  text-justify: inter-word;
}

.content-shell h1,
.content-shell h2,
.content-shell h3,
.content-shell h4,
.content-shell a,
.content-shell label,
.content-shell button {
  text-align: initial;
}

.content-shell ul,
.content-shell ol {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

.content-shell li {
  padding-left: 0.12rem;
}

.content-shell img {
  height: auto;
  margin: 18px auto;
  border-radius: var(--radius);
}

.content-shell table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.content-shell td,
.content-shell th {
  padding: 10px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.content-shell iframe {
  max-width: 100%;
}

.association-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.association-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(37, 111, 70, 0.18);
  border-radius: 999px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.62);
}

.association-sections {
  display: grid;
  gap: 12px;
}

.association-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.association-section summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  color: var(--green-deep);
  font-weight: 900;
  cursor: pointer;
}

.association-section summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.association-section[open] summary::after {
  content: "-";
}

.association-section__body {
  padding: 0 18px 18px;
}

.association-chart {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

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

.association-chart__node {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid rgba(37, 111, 70, 0.2);
  border-radius: var(--radius);
  color: var(--green-deep);
  font-weight: 900;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
}

.association-chart__node--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.contact-panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.contact-panel h2 {
  margin: 4px 0 18px;
  font-family: "Noto Serif", Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.contact-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(37, 111, 70, 0.16);
  border-radius: var(--radius);
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.72);
}

.contact-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--green-deep);
}

.contact-form-modern {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-form-modern label {
  display: grid;
  gap: 7px;
  color: var(--green-deep);
  font-weight: 800;
}

.contact-form-modern input,
.contact-form-modern textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: rgba(255, 255, 255, 0.82);
}

.contact-form-modern button {
  width: max-content;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  font: inherit;
  font-weight: 900;
  background: var(--green);
  cursor: pointer;
}

.contact-form-modern button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-deep);
  font-weight: 800;
  text-align: left;
}

.form-status.is-error {
  color: var(--red);
}

.site-footer {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.footer-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.footer-partners {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.footer-partners a {
  width: 134px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(33, 49, 30, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-partners a:hover,
.footer-partners a:focus-visible {
  border-color: rgba(37, 111, 70, 0.28);
  background: rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

.partner-logo {
  width: 100%;
  max-height: 42px;
  object-fit: contain;
}

.partner-logo--congress {
  max-width: 82px;
  max-height: 50px;
}

.partner-logo--akbars {
  max-width: 100px;
  max-height: 46px;
}

.partner-logo--mon {
  max-width: 106px;
  max-height: 44px;
}

.partner-logo--veles {
  max-width: 128px;
}

.footer-partners a:nth-child(5) {
  background: rgba(255, 255, 255, 0.72);
}

.partner-logo--kronoxx {
  max-width: 118px;
}

.music-player {
  display: flex;
  justify-content: flex-end;
}

.music-player__audio {
  display: none;
}

.music-player__button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  border: 1px solid rgba(218, 181, 79, 0.46);
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background:
    linear-gradient(135deg, rgba(242, 210, 93, 0.22), transparent 46%),
    linear-gradient(135deg, #0f3f2c, #287449);
  box-shadow: 0 16px 34px rgba(15, 63, 44, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.music-player__button:hover,
.music-player__button:focus-visible,
.music-player__button.is-playing {
  border-color: rgba(244, 217, 151, 0.86);
  box-shadow: 0 20px 42px rgba(15, 63, 44, 0.3);
  transform: translateY(-1px);
}

.music-player__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 63, 44, 0.08);
}

.music-player__icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--green-deep);
}

.music-player__button.is-playing .music-player__icon::before {
  width: 12px;
  height: 15px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, var(--green-deep) 0 34%, transparent 34% 66%, var(--green-deep) 66% 100%);
}

.scroll-up {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.scroll-up.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: block;
  }

  .main-menu {
    grid-column: 1 / -1;
    display: none;
    justify-content: start;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .topbar.is-open .main-menu {
    display: flex;
  }

  .language-tools {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .hero,
  .branches__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__mark {
    width: min(100%, 360px);
    max-width: 360px;
  }

  .regions,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .directions {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .direction-card {
    min-height: 112px;
    scroll-snap-align: start;
  }

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

@media (max-width: 620px) {
  .site-frame {
    padding: 10px;
  }

  .topbar {
    top: 8px;
    min-height: 64px;
    margin-bottom: 12px;
    padding: 9px;
  }

  .topbar__brand {
    grid-template-columns: 42px 1fr;
  }

  .topbar__brand img {
    width: 46px;
    height: 30px;
  }

  .topbar__brand small {
    display: none;
  }

  .language-toggle {
    min-height: 42px;
    padding: 8px 11px;
  }

  .language-reset {
    min-height: 42px;
    padding: 8px 10px;
  }

  .main-menu a {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .page-hero,
  .content-shell,
  .branches,
  .news-strip {
    padding: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    width: 100%;
    padding: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(24px, 6.8vw, 28px);
  }

  .hero__copy > p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 15px;
  }

  .hero__actions {
    gap: 8px;
    margin-top: 14px;
  }

  .hero__actions a {
    min-height: 40px;
    padding: 9px 13px;
  }

  .hero__mark {
    width: min(100%, 190px);
    padding: 8px;
  }

  .carousel {
    padding: 8px;
  }

  .carousel__slide {
    aspect-ratio: 4 / 3.8;
  }

  .carousel__slide span {
    font-size: 27px;
  }

  .carousel__slide p {
    font-size: 14px;
  }

  .carousel__controls {
    grid-template-columns: 40px 1fr 40px;
  }

  .directions {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(165px, 1fr));
    overflow-x: auto;
  }

  .direction-card {
    min-height: 92px;
    padding: 13px;
  }

  .direction-card span {
    font-size: clamp(13px, 3.7vw, 15px);
  }

  .direction-card__full {
    display: none;
  }

  .direction-card__short {
    display: block;
    text-align: center;
  }

  .direction-card p {
    display: none;
  }

  .intro-band {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .branch-list {
    grid-template-columns: 1fr;
  }

  .association-chart__grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-modern button {
    width: 100%;
  }

  .globe {
    width: min(86vw, 320px);
  }

  .footer-media {
    grid-template-columns: 1fr;
  }

  .footer-partners {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-partners a {
    width: min(100%, 154px);
  }

  .music-player {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
