/* Главная ПЛЁС: оформление перенесено со staging.volgaples.ru. */
/* Подключается только на главной после основных стилей. */

:root {
  --mp-navy: #0a2540;
  --mp-blue: #0b5fcc;
  --mp-blue-dark: #084a9e;
  --mp-blue-tint: #eaf3ff;
  --mp-gold: #f2a71b;
  --mp-gold-dark: #d98c0f;
  --mp-ink: #1c2b3a;
  --mp-ink-soft: #5b6b7c;
  --mp-border: #e3e8ee;
  --mp-paper: #ffffff;
  --mp-canvas: #eef1f6;
  --mp-radius-lg: 16px;
  --mp-radius: 12px;
  --mp-radius-sm: 8px;
  --mp-shadow: 0 10px 30px rgba(15, 40, 80, 0.10);
  --mp-shadow-sm: 0 2px 10px rgba(15, 40, 80, 0.08);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: 'Lora', Georgia, serif;
}

/* -------- canvas + base type -------- */

html {
  background: var(--mp-canvas);
}

/* !important is required here: the legacy stylesheet's `A, A:visited,
   A:hover, A:active { font: 12px Tahoma... }` rule ties this on specificity
   for a plain `a`, but A:hover/A:visited/A:active are each more specific
   than a bare `a` — so without !important, links silently snap back to
   Tahoma the moment you hover/visit them, changing box size mid-interaction */
body, h1, h2, h3, h4, p, td, th, div, input, select, textarea, a, span, li, label {
  font-family: var(--font-body) !important;
}

body {
  color: var(--mp-ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* legacy stylesheet hardcodes font-size (via the `font:` shorthand) on
   P/TD/TH/DIV/LI directly, same issue as the font-family fix above — the
   #content/#footer ID gives these enough specificity to win without
   needing !important */
#content p, #content li, #content td,
#footer, #footer p, #footer div, #footer td {
  font-size: 16px;
}

#heco.wrapper {
  background: var(--mp-paper);
}

#content {
  background: var(--mp-paper);
  padding-left: 2px;
  padding-right: 2px;
}

a, a:visited {
  color: var(--mp-blue);
}
a:hover, a:active {
  color: var(--mp-blue-dark);
}

/* -------- content headings -------- */

#content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  color: var(--mp-navy);
  text-shadow: none;
  font-size: 32px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

#content h2:not(.chip),
#content span.h2:not(.chip) {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  background: none;
  border: none;
  color: var(--mp-navy);
  text-shadow: none;
  font-size: 26px;
  line-height: 1.3;
  padding: 0 0 14px 0 !important;
  margin: 0 0 20px 0;
  border-bottom: 2px solid var(--mp-blue-tint);
}

#content h3, #content h4 {
  color: var(--mp-navy);
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0;
}

#content p {
  color: var(--mp-ink-soft);
  line-height: 1.65;
}

/* Inline links keep the surrounding text size in every link state. */
#content p a:not(.button):not(.icon):not(.chip),
#content li a:not(.button):not(.icon):not(.chip),
#content p span,
#content li span {
  font: inherit;
  vertical-align: baseline;
}

/* -------- buttons in home content -------- */

#content .button {
  font-family: var(--font-body) !important;
  background: linear-gradient(180deg, var(--mp-blue), var(--mp-blue-dark)) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: .02em;
  text-transform: none;
  box-shadow: var(--mp-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

#content .button {
  padding: 11px 22px !important;
  font-size: 15px !important;
  height: auto !important;
  line-height: normal !important;
}

#content .button u,
#content .button i {
  background: none !important;
  color: inherit !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  font-family: var(--font-body) !important;
}

/* the legacy .font() mixin hardcoded font-size directly on <u>/<i> (where
   the button's actual text lives), which silently wins over font-size set
   on .button itself since inheritance never gets a chance to apply — this
   is why every button on the site (search, login, CTAs, year toggles)
   stayed stuck at the old 11px no matter what .button was set to */
#content .button u,
#content .button i {
  font-size: 15px !important;
}

#content .button:hover i,
#content .button:focus i,
#content .button:active i {
  color: inherit !important;
}

#content .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 95, 204, .28);
  opacity: .96;
}

/* secondary (year toggle) buttons look a touch quieter */
#content .slider ~ table .button,
#content table .half .button {
  background: #fff !important;
  color: var(--mp-blue) !important;
  border: 1px solid var(--mp-border) !important;
  box-shadow: none;
}
#content table .half .button:hover {
  background: var(--mp-blue-tint) !important;
}

/* -------- hero: three-ship photo + headline -------- */

#content .boats {
  position: relative;
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  background: url("/skin/img/bg/boats.jpg") no-repeat center center !important;
  background-size: cover !important;
  height: 300px;
  min-height: 0;
  padding: 0 !important;
  margin: 24px 0 32px 0;
  box-shadow: var(--mp-shadow);
  text-align: left;
}

#content .boats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0) 35%, rgba(8, 26, 46, .82) 100%);
}

#content .boats > a.button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

#content .boats .boatslist {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 0 !important;
}

#content .boats .boatslist > div:first-child {
  float: none !important;
  width: auto !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

#content .boats .boatslist a {
  display: inline-block !important;
  background: rgba(10, 37, 64, .55) !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  backdrop-filter: blur(3px);
}
#content .boats .boatslist a:hover {
  background: var(--mp-blue) !important;
}

#content .boats h1 {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  z-index: 2;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

/* -------- year-toggle row above the promo slider -------- */

#content .slider {
  border-radius: var(--mp-radius-lg);
  overflow: hidden;
  box-shadow: var(--mp-shadow);
  margin-bottom: 8px;
}
#content .slider img {
  display: block;
}

/* -------- quicklinks tiles (Золотое кольцо / лотос / Мамаев курган) -------- */

#content table.quicklinks {
  width: 100%;
  border-spacing: 14px 0;
  margin: 0 0 28px -14px;
  table-layout: fixed;
}
#content table.quicklinks td {
  padding: 0;
}
#content table.quicklinks a {
  display: block;
  position: relative !important;
  border-radius: var(--mp-radius);
  overflow: hidden;
  box-shadow: var(--mp-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
#content table.quicklinks a:hover {
  transform: translateY(-3px);
  box-shadow: var(--mp-shadow);
}
#content table.quicklinks img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
#content .promoTitle {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto !important;
  height: auto !important;
  padding: 28px 14px 12px 14px !important;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0), rgba(8, 26, 46, .85)) !important;
  color: #fff !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  font-size: 15px;
  line-height: 1.35;
  text-align: left !important;
}

/* -------- "интернет-магазин" banner link -------- */

#content h2 a, a#content h2 {
  text-decoration: none;
}

/* -------- news + travel-info two column section -------- */

#content table.news-help {
  border-spacing: 28px 0;
  margin: 0 0 20px -28px;
  width: calc(100% + 28px);
  table-layout: fixed;
}
#content table.news-help > tbody > tr > td {
  vertical-align: top;
  padding: 0 !important;
}

#content table.imggallery {
  border-spacing: 0 18px;
}
#content table.imggallery td.bold {
  color: var(--mp-navy);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  padding-right: 16px !important;
  border-left: 2px solid var(--mp-gold);
  padding-left: 12px !important;
}
#content table.imggallery td p {
  margin: 0;
  padding: 0;
  color: var(--mp-ink-soft);
}

/* news text is admin-entered rich text (mixes p/strong/h3/h4 at will) —
   force one consistent size so it doesn't jump between items. Colour is
   deliberately left alone: some items use .red for warnings and that
   must keep working. */
#content table.imggallery td:not(.bold):not(.news-date),
#content table.imggallery td:not(.bold):not(.news-date) * {
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-family: var(--font-body) !important;
}
#content table.imggallery td p,
#content table.imggallery td h3,
#content table.imggallery td h4 {
  margin: 0 !important;
  padding: 0 !important;
}
#content table.imggallery td strong,
#content table.imggallery td b,
#content table.imggallery td h3,
#content table.imggallery td h4 {
  font-weight: 700 !important;
}

/* official ЮKassa wordmark (transparent SVG) replacing the old black-boxed jpg */
#content img[alt="Юкасса"] {
  height: 24px !important;
  width: auto;
  vertical-align: middle;
  margin-left: 6px;
}

#content .icon {
  border-radius: var(--mp-radius-sm);
  padding: 8px 10px 8px 34px !important;
  margin-bottom: 4px;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--mp-ink) !important;
  transition: background .15s ease;
}
#content .icon:hover {
  background: var(--mp-blue-tint);
  color: var(--mp-blue-dark) !important;
}

/* -------- footer -------- */

/* the 4 nav columns sit edge-to-edge (cellspacing=0, no padding) — fine at
   the old 12px header size, but the bigger 20px headers now wrap onto a
   second line and that line runs straight into the next column with no
   gap at all */
#footer table.table_footer > tbody > tr > td {
  padding-right: 20px !important;
}

#footer th span,
#footer td span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0;
}

#footer td a {
  font-size: 16px !important;
  opacity: .9;
  transition: opacity .15s ease, color .15s ease;
}
#footer td a:hover {
  opacity: 1;
  color: var(--mp-gold) !important;
}

#map_podval {
  border-radius: var(--mp-radius) !important;
  overflow: hidden;
  box-shadow: var(--mp-shadow-sm);
  border: none !important;
}

/* rosturizm "реестр туроператоров" widget ships with its own white card —
   stands out against the new canvas, so match it instead of fighting it */
.widget-operator {
  background: var(--mp-canvas) !important;
  border-color: #c2cad5 !important;
}
.widget-operator__logo {
  background: var(--mp-canvas) !important;
}
/* logo.jpg has a solid white background baked into the pixels (no alpha) —
   multiply blend drops white to transparent against the light canvas
   while leaving the coloured crest intact */
.widget-operator__logo img {
  mix-blend-mode: multiply;
}

/* -------- misc polish -------- */

#content .box {
  border-radius: var(--mp-radius-sm);
  border-color: var(--mp-border);
}

#div-cookies {
  border-radius: var(--mp-radius) var(--mp-radius) 0 0;
  font-family: var(--font-body);
}
#div-cookies a {
  color: var(--mp-gold) !important;
}
#AcceptCookies {
  background: var(--mp-gold);
  color: var(--mp-navy);
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
}
