@font-face {
  font-family: Manrope;
  src: url("../manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f3faff;
  --glow: #d9f2ff;
  --center: #fff;
  --heading: #082b57;
  --muted: #526b85;
  --accent: #0869e9;
  --line: #dce9f6;
  --water-edge: #8cd5f050;
  --water-light: #c0edfb99;
  --water-line: #68bde773;
  --surface: #fff;
  --icon-background: #eaf4fd;
  --hover: #e8f4ffa8;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #091422;
  --glow: #0b2d48;
  --center: #101e30;
  --heading: #e8f3ff;
  --muted: #a1b8ce;
  --accent: #70b6ff;
  --line: #2b4158;
  --water-edge: #0e6b9257;
  --water-light: #114b6d96;
  --water-line: #3c9cc879;
  --surface: #122237;
  --icon-background: #172d45;
  --hover: #172d4599;
}

* { box-sizing: border-box; }

body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  background: radial-gradient(ellipse at 50% 39%, var(--center) 18%, var(--background) 57%, var(--glow) 122%);
  color: var(--heading);
  font-family: Manrope, system-ui, sans-serif;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.seascape {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.water-glow {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 37% 47% at 100% 16%, var(--water-light), transparent 92%),
    radial-gradient(ellipse 40% 46% at 2% 88%, var(--water-light), transparent 95%),
    radial-gradient(ellipse 70% 26% at 48% 100%, var(--water-edge), transparent 90%);
}

.current {
  position: absolute;
  inline-size: max(910px, 110vw);
  block-size: clamp(250px, 43vh, 455px);
  transform: rotate(var(--tilt));
}

.current-upper {
  --tilt: -13deg;
  inset-block-start: -11%;
  inset-inline-end: -18%;
  mask-image: linear-gradient(112deg, transparent 14%, #000 78%);
}

.current-lower {
  --tilt: 166deg;
  inset-block-end: -9%;
  inset-inline-start: -18%;
  mask-image: linear-gradient(105deg, transparent 10%, #000 72%);
}

.current i {
  position: absolute;
  inset: var(--offset, 0%) var(--side, 0%) 0;
  border-top: 1px solid var(--water-line);
  border-radius: 56% 44% 0 0 / 78% 63% 0 0;
}

.current i:nth-child(2) { --offset: 9%; --side: -2%; opacity: .76; }
.current i:nth-child(3) { --offset: 17%; --side: -5%; opacity: .55; }
.current i:nth-child(4) { --offset: 26%; --side: -8%; opacity: .36; }

@media (prefers-reduced-motion: no-preference) {
  :root[data-motion] .water-glow { animation: water-light 18s ease-in-out infinite alternate; }
  :root[data-motion] .current-upper { animation: water-current 13s ease-in-out infinite alternate; }
  :root[data-motion] .current-lower { animation: water-current 17s -6s ease-in-out infinite alternate-reverse; }
  :root[data-motion="paused"] :is(.water-glow, .current) { animation-play-state: paused; }
}

@keyframes water-light {
  from { transform: translate(-1.5%, 1%) scale(1); opacity: .68; }
  to { transform: translate(2.5%, -2%) scale(1.1); opacity: 1; }
}

@keyframes water-current {
  from { transform: translate(-1%, 3%) rotate(var(--tilt)); }
  to { transform: translate(2.5%, -8%) rotate(calc(var(--tilt) + 4deg)); }
}

.masthead {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 22px;
  margin-inline: clamp(22px, 4vw, 72px);
  padding-block: 18px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.masthead-location { text-align: end; }

.masthead .cm-lang-dropdown { justify-self: end; }

.welcome {
  inline-size: min(640px, calc(100% - 56px));
  margin: auto;
  padding-block: clamp(20px, 4.5vh, 48px) 0;
}

.intro {
  margin-block-end: clamp(28px, 4.4vh, 42px);
  text-align: center;
}

.brand {
  display: inline-grid;
  border-radius: 8px;
}

.brand img {
  inline-size: clamp(170px, 32vw, 225px);
  block-size: auto;
}

.brand-dark,
:root[data-theme="dark"] .brand-light { display: none; }

:root[data-theme="dark"] .brand-dark { display: block; }

.intro h1 {
  margin: 22px 0 7px;
  font-size: clamp(2.35rem, 7.5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.06em;
}

.intro h1:lang(ru) { font-size: clamp(1.7rem, 7.2vw, 3.75rem); }

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  font-weight: 600;
}

.catalogue {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-block-size: 146px;
  padding: 24px clamp(19px, 5vw, 31px);
  overflow: hidden;
  border: 1px solid #2d6092;
  border-radius: 17px;
  background: #082b57;
  box-shadow: 0 16px 33px #082b5724;
  color: #fff;
}

.catalogue::before,
.catalogue::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
}

.catalogue::before {
  inset-inline-start: 37%;
  background: url("../seafood-hero.webp") center 44% / cover;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
  opacity: .82;
  transition: transform .3s ease;
}

.catalogue::after {
  background: linear-gradient(90deg, #082b57 31%, #082b57e6 46%, #082b5745 72%, #082b575c 100%);
}

.catalogue-copy,
.contact-copy { display: grid; gap: 4px; }

.catalogue-title {
  font-size: clamp(1.32rem, 4.9vw, 1.85rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.035em;
}

.catalogue-title:lang(ru) { font-size: clamp(1.12rem, 4.45vw, 1.7rem); }

.catalogue-description {
  color: #e5f3ff;
  font-size: clamp(.82rem, 2.9vw, .98rem);
  font-weight: 600;
}

.catalogue-arrow {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 54px;
  aspect-ratio: 1;
  border: 1px solid #d4ebff94;
  border-radius: 50%;
  background: #082b57ce;
  transition: background-color .2s ease, transform .2s ease;
}

.catalogue-arrow svg { inline-size: 23px; }
.catalogue:hover::before { transform: scale(1.045); }
.catalogue:hover .catalogue-arrow { background: #0869e9; transform: translateX(3px); }

.contact { margin-block-start: 18px; }

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-block-size: 78px;
  padding: 12px clamp(8px, 2.8vw, 16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}

.contact-item:hover { background: var(--hover); }

.contact-icon {
  display: grid;
  place-items: center;
  inline-size: 42px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--icon-background);
  color: var(--accent);
}

.contact-icon svg { inline-size: 21px; }
.contact-copy strong { font-size: 1.075rem; font-weight: 800; line-height: 1.15; }
.contact-copy span { color: var(--muted); font-size: .865rem; font-weight: 600; }
.external-arrow { inline-size: 20px; color: var(--accent); }

.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  inline-size: min(100% - 92px, 640px);
  margin: auto auto 0;
  padding-block: clamp(24px, 4vh, 40px) clamp(24px, 4vh, 40px);
  text-align: center;
}

.footer p {
  display: flex;
  align-items: center;
  gap: clamp(9px, 3vw, 19px);
  margin: 0;
  color: var(--heading);
  font-size: clamp(.93rem, 3.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -.025em;
}

.footer p::before,
.footer p::after {
  flex: none;
  inline-size: clamp(13px, 4vw, 27px);
  block-size: 1px;
  background: var(--accent);
  opacity: .5;
  content: "";
}

.footer small { color: var(--muted); font-size: .75rem; font-weight: 700; }

.welcome-tools {
  position: absolute;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  display: flex;
  gap: 8px;
}

.welcome-tools button {
  display: grid;
  place-items: center;
  inline-size: 48px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 8px 24px #082b5714;
  color: var(--heading);
  cursor: pointer;
}

.welcome-tools svg { inline-size: 22px; }
.welcome-tools button[hidden], .sun, .play,
:root[data-theme="dark"] .moon, :root[data-motion="paused"] .pause { display: none; }
:root[data-theme="dark"] .sun, :root[data-motion="paused"] .play { display: block; }
.welcome-tools button:hover { color: var(--accent); }

@media (max-width: 760px) {
  .welcome-tools { inset-inline-end: 14px; inset-block-end: 14px; }
  .welcome-tools button { inline-size: 44px; }
  .current-upper { inset-inline-end: -54%; }
  .current-lower { inset-inline-start: -54%; }
}

@media (max-width: 440px) {
  .masthead { grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-inline: 18px; padding-block: 15px 12px; font-size: 9px; letter-spacing: .09em; }
  .masthead .cm-lang-dropdown { grid-column: 1 / -1; justify-self: center; }
  .welcome { inline-size: calc(100% - 36px); padding-block-start: 30px; }
  .intro h1 { margin-block-start: 17px; }
  .catalogue { min-block-size: 121px; border-radius: 14px; }
  .catalogue::before { inset-inline-start: 35%; }
  .catalogue::after { background: linear-gradient(90deg, #082b57 29%, #082b57e8 48%, #082b5763 76%, #082b575c); }
  .catalogue-arrow { inline-size: 43px; }
  .catalogue-arrow svg { inline-size: 20px; }
  .contact { margin-block-start: 11px; }
  .contact-item { min-block-size: 71px; gap: 11px; }
  .contact-icon { inline-size: 38px; }
  .contact-copy span { font-size: .8rem; }
  .footer { padding-block-end: 45px; }
  .current-upper { inset-inline-end: -94%; }
  .current-lower { inset-inline-start: -92%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
