@font-face {
  font-family: "Dosis";
  src: url("../fonts/dosis-300.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Dosis";
  src: url("../fonts/dosis-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Dosis";
  src: url("../fonts/dosis-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Dosis";
  src: url("../fonts/dosis-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Sedgwick Ave";
  src: url("../fonts/sedgwick-ave-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #2daed8;
  --blue-dark: #1689b1;
  --coral: #ff6e68;
  --ink: #333;
  --text: #6e6e6e;
  --soft: #f6f6f6;
  --line: rgba(45, 174, 216, .8);
  --shadow: 0 18px 50px rgba(25, 74, 91, .12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Dosis", "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 8vw, 120px) clamp(16px, 4vw, 54px);
  background:
    linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.18)),
    url("../images/hero.jpg") center/cover no-repeat;
}

.hero-panel {
  width: min(1248px, 100%);
  min-height: min(620px, calc(100svh - 120px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 6vw, 80px);
  background: rgba(255,255,255,.83);
  text-align: center;
}

.hero-logo {
  width: clamp(190px, 22vw, 290px);
  height: auto;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0;
  color: #272727;
  font-family: "Sedgwick Ave", cursive;
  font-size: clamp(30px, 3.25vw, 50px);
  font-weight: 400;
  line-height: 1.1;
}

.welcome {
  margin: 24px 0 54px;
  color: var(--blue);
  font-size: clamp(25px, 2.2vw, 34px);
}

.hero-nav {
  width: min(950px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  background: var(--blue-dark);
  box-shadow: 0 8px 24px rgba(45,174,216,.28);
  transform: translateY(-2px);
  outline: none;
}

.section {
  padding: clamp(60px, 7vw, 96px) max(20px, calc((100% - 1360px) / 2));
}

.products-section { padding-inline: max(0px, calc((100% - 1420px) / 2)); }

.section-title-wrap {
  position: relative;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.section-title-wrap h2 {
  margin: 0;
  padding: 0 20px 22px;
  color: var(--ink);
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin: -22px auto 36px;
  place-items: center;
  border-radius: 50%;
  background: #aaa;
  color: #fff;
  font-size: 17px;
}

.intro {
  max-width: 1320px;
  margin: 0 auto 26px;
  padding: 0 20px;
  text-align: center;
}

.intro strong { color: #555; font-weight: 500; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 30px;
}

.product-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 5 / 3;
  min-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  background: #e9e9e9;
  cursor: pointer;
  outline: none;
}

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}

.product-card > h3 {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 20px;
  right: 20px;
  margin: 0;
  padding: 6px 12px 8px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(-50%);
  transition: opacity .25s ease, transform .25s ease;
}

.card-details {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(21,137,177,.96), rgba(45,174,216,.92));
  color: #fff;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}

.card-details h4 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.2vw, 33px);
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
}

.card-details p {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.4;
}

.card-details a { font-weight: 600; }

.product-card:hover .card-details,
.product-card:focus-visible .card-details,
.product-card.is-open .card-details {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover > h3,
.product-card:focus-visible > h3,
.product-card.is-open > h3 { opacity: 0; transform: translateY(-60%); }

.product-card:hover img,
.product-card:focus-visible img,
.product-card.is-open img { filter: saturate(.8); transform: scale(1.04); }

.product-card:focus-visible { box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--blue); }

.card-hint {
  margin: 24px 0 0;
  text-align: center;
  font-size: 15px;
  font-style: italic;
}

.location-copy h3,
.contact-block h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: 7px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.13); outline: none; }
.button.coral { background: var(--coral); color: #fff; }
.button.blue { background: var(--blue); color: #fff; }
.button.outline { border-color: var(--blue); color: var(--blue-dark); }
.button.outline:hover { background: #ecf9fd; }

.location-section { background: var(--soft); }

.location-grid {
  width: min(1140px, 100%);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  margin: 0 auto;
}

.map-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.map-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease;
}
.map-link span {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 18px;
  border-radius: 6px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-weight: 500;
}
.map-link:hover img { transform: scale(1.025); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.contact-section { background: #fff; }

.contact-grid {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(38px, 7vw, 100px);
  margin: 0 auto;
}

.contact-block address { margin: 24px 0; font-style: normal; }
.contact-block strong { color: #4c4c4c; font-weight: 500; }

.contact-actions { display: grid; gap: 12px; align-content: start; }
.contact-actions > a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-actions > a:hover,
.contact-actions > a:focus-visible { border-color: var(--blue); box-shadow: 0 8px 26px rgba(45,174,216,.13); transform: translateY(-2px); outline: none; }
.contact-actions small, .contact-actions strong { display: block; }
.contact-actions small { font-size: 14px; }
.contact-icon {
  flex: 0 0 44px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

footer {
  padding: 52px 20px;
  background: #ededed;
  text-align: center;
}
footer p { margin: 0; }

.messenger,
.back-to-top {
  position: fixed;
  z-index: 20;
  right: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.17);
}

.messenger {
  bottom: 28px;
  width: 58px;
  height: 58px;
  border: 5px solid #fff;
  background: var(--blue);
  font-size: 34px;
}

.back-to-top {
  bottom: 98px;
  width: 42px;
  height: 42px;
  background: #888;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.visible { opacity: .86; pointer-events: auto; transform: translateY(0); }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-inline: 18px; }
  .products-section { padding-inline: 0; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { min-height: 100svh; padding: 18px; }
  .hero-panel { min-height: calc(100svh - 36px); padding: 34px 18px; }
  .hero-logo { width: 180px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(27px, 8vw, 38px); }
  .welcome { margin: 20px 0 32px; }
  .hero-nav { grid-template-columns: 1fr; gap: 10px; }
  .hero-nav a { font-size: 14px; }
  .section { padding: 58px 20px; }
  .product-grid { grid-template-columns: 1fr; padding-inline: 0; }
  .product-card { aspect-ratio: 4 / 3; min-height: 260px; }
  .product-card > h3 { font-size: 27px; }
  .card-details { padding: 24px; }
  .card-details h4 { font-size: 27px; }
  .card-details p { font-size: 17px; }
  .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .location-grid { gap: 32px; }
  .contact-grid { gap: 34px; }
  .quick-actions { flex-direction: column; }
  .button { width: 100%; }
  .messenger, .back-to-top { right: 16px; }
  .messenger { bottom: 16px; width: 54px; height: 54px; }
  .back-to-top { bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
