:root {
  --bg: #fbfbfb;
  --text: #404040;
  --brand: #415ba9;
  --link: #0722b0;
  --footer: #1ea4e5;
  --news: #fba920;
  --pink: #e43092;
  --green: #00b918;
  --lime: #9cc43b;
  --cyan: #5ec1ec;
  --magenta: #ed1964;
  --violet: #7668be;
  --amber: #fba920;
  --hot-pink: #e363a5;
  --container: 1120px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(65, 91, 169, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", "Lato", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(94, 193, 236, 0.18), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(227, 99, 165, 0.14), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 220px);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration: underline;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(65, 91, 169, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 700;
  font-size: 1.15rem;
}

.brand__city {
  font-size: 0.85rem;
  color: #6b7bb8;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-search input {
  border: 1px solid #d7deef;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 160px;
  font: inherit;
  background: #fff;
}

.header-search button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--brand);
  border-radius: 2px;
}

.site-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 8px;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.site-nav__list > li > a,
.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-nav__list > li.is-active > a,
.site-nav__list > li > a:hover,
.dropdown__toggle:hover {
  background: rgba(65, 91, 169, 0.08);
  text-decoration: none;
}

.color-blue > a { color: var(--cyan); }
.color-red .dropdown__toggle,
.color-red > a { color: var(--pink); }
.color-yellow > a { color: var(--amber); }
.color-green > a { color: var(--lime); }
.color-violet > a { color: var(--violet); }
.color-pink > a { color: var(--hot-pink); }
.color-blog > a { color: var(--brand); }

.dropdown {
  position: relative;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 520px;
  max-width: min(90vw, 640px);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  list-style: none;
  margin: 0;
  z-index: 50;
  flex-wrap: wrap;
  gap: 8px;
}

.dropdown.is-open .dropdown__menu,
.dropdown:hover .dropdown__menu {
  display: flex;
}

.mega-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cat-color) 14%, white);
  color: #333;
  font-weight: 600;
  font-size: 0.86rem;
  min-width: 140px;
  flex: 1 1 140px;
  text-decoration: none;
  border-left: 4px solid var(--cat-color);
}

.mega-menu a:hover {
  background: color-mix(in srgb, var(--cat-color) 28%, white);
  text-decoration: none;
}

.quick-links {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links__item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none !important;
}

.quick-links__item--pink { background: var(--pink); }
.quick-links__item--green { background: var(--green); }
.quick-links__item--magenta { background: var(--magenta); }

main {
  flex: 1 0 auto;
  width: 100%;
}

.page-wrap,
.home-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.page-header {
  margin: 0 0 20px;
}

.page-header h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(94, 193, 236, 0.25), rgba(251, 169, 32, 0.18)),
    url("/img/slider_1.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 280px;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 90, 0.15), rgba(20, 40, 90, 0.72));
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16ch;
}

.hero p {
  margin: 0;
  max-width: 42ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--news);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.section-title {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.category-chip {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.category-chip:hover {
  transform: translateY(-2px);
}

.news-band {
  background: linear-gradient(135deg, #fba920, #f08a12);
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 32px;
}

.news-band .section-title {
  color: #fff;
}

.news-list,
.card-list,
.listing-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card,
.content-card,
.listing-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card h3,
.content-card h2,
.listing-card h2,
.listing-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #7a3b12;
}

.news-meta {
  font-size: 0.85rem;
  opacity: 0.9;
}

.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.two-col > * {
  flex: 1 1 280px;
}

.panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--lime);
}

.panel h2 {
  margin-top: 0;
  color: var(--brand);
}

.sponsors {
  margin: 28px 0;
}

.sponsors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.sponsors-row a,
.sponsors-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 72px;
  box-shadow: var(--shadow);
}

.sponsors-row img {
  max-height: 48px;
  width: auto;
}

.page-content,
.romlicontainer {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.page-content img,
.listing-card img {
  border-radius: 8px;
}

.page-content .news-box,
.page-content .page-box,
.page-content .articles-box,
.page-content .offer-box {
  margin-bottom: 18px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.page-content th,
.page-content td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7deef;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.contact-form .form-row > * {
  flex: 1 1 180px;
}

.contact-form button {
  align-self: flex-start;
  background: var(--cyan);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  background: var(--footer) url("/img/footer_bg.png") center/cover;
  color: #fff;
  margin-top: auto;
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-heading {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-heading--spaced {
  margin-top: 24px;
}

.footer-muted {
  font-size: 0.9rem;
  opacity: 0.92;
}

.footer-logo {
  display: block;
  margin: 12px auto 0;
  max-height: 65px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 28px;
  font-size: 0.9rem;
}

.eu-strip {
  background: #fff;
  padding: 14px 0;
}

.eu-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.eu-strip__inner img {
  flex: 0 1 280px;
}

.eu-strip__inner p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.72rem;
  color: #8c8c8c;
  text-align: justify;
}

.blog-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero,
.category-chip,
.news-card,
.panel {
  animation: rise-in 0.55s ease both;
}

.category-chip:nth-child(2) { animation-delay: 0.04s; }
.category-chip:nth-child(3) { animation-delay: 0.08s; }
.category-chip:nth-child(4) { animation-delay: 0.12s; }

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .header-search {
    display: none;
  }

  .site-nav {
    display: none;
    padding-bottom: 16px;
  }

  .site-nav.is-open {
    display: block;
  }

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

  .dropdown__menu {
    position: static;
    min-width: 0;
    max-width: none;
    box-shadow: none;
    background: #f7f9ff;
  }

  .dropdown.is-open .dropdown__menu {
    display: flex;
  }

  .dropdown:hover .dropdown__menu {
    display: none;
  }

  .dropdown.is-open:hover .dropdown__menu {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 220px;
    padding: 20px;
  }

  .page-wrap,
  .home-wrap {
    padding: 16px 14px 36px;
  }
}
