:root {
  --ink: #24242a;
  --muted: #6e6963;
  --soft: #8b857e;
  --paper: #fbfaf8;
  --sand: #f2efeb;
  --wine: #a91f2d;
  --wine-dark: #8e1926;
  --line: rgba(36, 36, 42, 0.11);
  --page: min(1296px, calc(100vw - 96px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--wine);
}

button,
a,
summary {
  outline-offset: 4px;
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  padding: 0 max(48px, calc((100vw - 1296px) / 2));
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(14px);
}

.logo-link {
  justify-self: start;
}

.logo-link img {
  width: 208px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a,
.header-phone,
.footer a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.header-phone:hover,
.footer a:hover {
  color: var(--wine);
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 22px;
}

.header-phone {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  border-color: var(--wine-dark);
  background: var(--wine-dark);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding-inline: 24px;
  font-size: 13px;
}

.button-ghost {
  border-color: rgba(36, 36, 42, 0.28);
  background: rgba(251, 250, 248, 0.58);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 92px));
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: right center;
}

.hero-shade {
  background: linear-gradient(
    95deg,
    var(--paper) 0%,
    rgba(251, 250, 248, 0.96) 28%,
    rgba(251, 250, 248, 0.78) 44%,
    rgba(251, 250, 248, 0.14) 70%,
    rgba(251, 250, 248, 0) 86%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: min(820px, calc(100vh - 92px));
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 84px;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 500;
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(54px, 5.15vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 500px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 38px;
}

.hero-note {
  display: flex;
  width: min(520px, 100%);
  margin: 52px 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(36, 36, 42, 0.14);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.section {
  padding-block: 124px;
}

.brands + .contacts {
  padding-top: 0;
}

.section-heading {
  display: flex;
  margin-bottom: 58px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
}

.section-heading h2,
.about h2,
.brands h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

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

.direction-image-wrap {
  aspect-ratio: 0.82;
  overflow: hidden;
  background: var(--sand);
}

.direction-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.direction-card:hover .direction-image-wrap img {
  transform: scale(1.035);
}

.direction-info {
  display: flex;
  gap: 18px;
  margin-top: 26px;
}

.direction-info > span {
  flex: none;
  padding-top: 5px;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.direction-info h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.direction-info p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.about {
  padding-block: 128px;
  background: var(--sand);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.8fr);
  align-items: start;
  gap: clamp(80px, 8vw, 130px);
}

.about-visual {
  position: relative;
}

.about-visual > img {
  width: 100%;
  height: min(740px, 58vw);
  object-fit: cover;
}

.year-card {
  position: absolute;
  right: -54px;
  bottom: 54px;
  display: flex;
  width: 270px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.year-card strong {
  color: var(--wine);
  font-family: "Lora", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.year-card span {
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.about-content {
  padding-top: 34px;
}

.about-copy {
  display: grid;
  max-width: 560px;
  gap: 18px;
  margin-top: 34px;
  color: #514d48;
  font-size: 15px;
  line-height: 1.72;
}

.about-copy p {
  margin: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(36, 36, 42, 0.14);
}

.facts div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.facts strong {
  font-family: "Lora", Georgia, serif;
  font-size: 36px;
  font-weight: 500;
}

.facts span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.about-map-button {
  margin-top: 36px;
}

.brands {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: stretch;
  gap: 60px;
}

.brands .lead {
  max-width: 500px;
  margin: 20px 0 38px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.brand-grid {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--paper);
}

.brand-cell {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand-cell:nth-child(3n) {
  border-right: 0;
}

.brand-cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.brand-cell img {
  width: 100%;
  height: auto;
  max-width: 224px;
  aspect-ratio: 224 / 125;
  object-fit: contain;
}

.more-brands {
  display: flex;
  margin: 26px 0 0;
  align-items: center;
  gap: 14px;
  color: #514d48;
  font-size: 14px;
}

.more-brands span {
  width: 38px;
  height: 1px;
  background: var(--wine);
}

.brands-visual {
  position: relative;
  min-height: 550px;
  overflow: hidden;
}

.brands-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contacts-heading {
  margin-bottom: 54px;
}

.city {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: 30px;
}

.contact-card {
  padding: 42px 38px;
  background: var(--sand);
}

.contact-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.contact-card dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 17px 16px;
  margin: 32px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}

.contact-card dt {
  padding-top: 2px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-card dd a:hover {
  color: var(--wine);
}

.route-button {
  margin-top: 28px;
  gap: 10px;
}

.route-button span {
  color: currentColor;
}

.map-wrap {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: var(--sand);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.94) brightness(1.04);
}

.map-label {
  position: absolute;
  bottom: 32px;
  left: 32px;
  display: flex;
  max-width: calc(100% - 64px);
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(36, 36, 42, 0.14);
  pointer-events: none;
}

.map-label > span {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 5px rgba(169, 31, 45, 0.14);
}

.map-label p {
  display: flex;
  margin: 0;
  flex-direction: column;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.map-label strong {
  color: var(--ink);
  font-size: 13px;
}

.footer {
  padding-top: 68px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.62fr 0.85fr 1fr;
  gap: 44px;
}

.footer-brand img {
  width: 205px;
}

.footer-brand p,
.footer-address p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-address p {
  margin-top: 0;
}

.footer nav,
.footer-contacts,
.footer-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.footer strong {
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  margin-top: 50px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px 34px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
}

.motion-ready .hero-image {
  opacity: 0.72;
  transform: scale(1.035);
}

.motion-ready.page-loaded .hero-image {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 1.25s ease,
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready .hero-entrance {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(30px);
}

.motion-ready.page-loaded .hero-entrance {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity 850ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    filter 850ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 850ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

.motion-ready .reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(42px);
  transition:
    opacity 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    filter 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    clip-path 1.05s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
  will-change: opacity, filter, transform;
}

.motion-ready .reveal.reveal-media {
  clip-path: inset(0 0 18% 0);
  transform: translateY(34px) scale(0.985);
}

.motion-ready .reveal.reveal-scale {
  filter: blur(3px);
  transform: translateY(20px) scale(0.94);
}

.motion-ready .reveal.reveal-visible {
  opacity: 1;
  clip-path: inset(0);
  filter: blur(0);
  transform: translateY(0) scale(1);
}

@media (max-width: 1180px) {
  :root {
    --page: min(100% - 64px, 1060px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 82px;
    padding-inline: 32px;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-right: 60px;
  }

  .mobile-menu {
    position: absolute;
    right: 28px;
    display: block;
  }

  .mobile-menu summary {
    display: flex;
    width: 42px;
    height: 42px;
    cursor: pointer;
    list-style: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    width: 15px;
    height: 1px;
    background: var(--ink);
    transition: transform 160ms ease;
  }

  .mobile-menu[open] summary span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-menu[open] summary span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: absolute;
    top: 54px;
    right: 0;
    display: flex;
    width: min(320px, calc(100vw - 32px));
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 45px rgba(36, 36, 42, 0.14);
  }

  .mobile-menu nav a {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
  }

  .mobile-menu nav a:last-child {
    border: 0;
    color: var(--wine);
  }

  .hero,
  .hero-content {
    min-height: min(760px, calc(100vh - 82px));
  }

  .about-grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1fr);
    gap: 72px;
  }

  .year-card {
    right: -35px;
  }

  .brands {
    gap: 38px;
  }

  .brand-cell {
    min-height: 112px;
    padding: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --page: calc(100% - 48px);
  }

  .section,
  .about {
    padding-block: 92px;
  }

  .hero {
    min-height: auto;
    padding-top: max(150px, 40vw);
    background: var(--paper);
  }

  .hero-image {
    height: max(150px, 40vw);
    background: #f7f0e9;
    object-fit: contain;
    object-position: center;
  }

  .hero-shade {
    height: max(150px, 40vw);
    background: linear-gradient(180deg, rgba(251, 250, 248, 0) 58%, var(--paper) 100%);
  }

  .hero-content {
    min-height: auto;
    padding-block: 44px 62px;
  }

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

  .direction-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 28px;
  }

  .direction-card:last-child .direction-info {
    margin: 0;
  }

  .about-grid,
  .brands {
    grid-template-columns: 1fr;
  }

  .about-visual {
    width: min(82%, 620px);
  }

  .about-visual > img {
    height: 680px;
  }

  .about-content {
    padding-top: 0;
  }

  .brands-visual {
    min-height: 600px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 480px;
  }

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

  .footer-address {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  :root {
    --page: calc(100% - 36px);
  }

  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    min-height: 70px;
    padding-inline: 18px;
  }

  .logo-link img {
    width: 156px;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu {
    right: 16px;
  }

  .mobile-menu summary {
    width: 38px;
    height: 38px;
  }

  .mobile-menu nav {
    top: 48px;
  }

  .hero {
    padding-top: 0;
  }

  .hero-image,
  .hero-shade {
    display: none;
  }

  .hero-content {
    padding-top: 52px;
    padding-bottom: 34px;
  }

  .motion-ready .hero-entrance,
  .motion-ready .reveal,
  .motion-ready .reveal.reveal-scale {
    filter: none;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(46px, 14vw, 62px);
    line-height: 1.02;
  }

  .hero-copy {
    margin-top: 25px;
    font-size: 15px;
  }

  .hero-buttons {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .hero-note {
    margin-top: 34px;
    font-size: 11px;
  }

  .section,
  .about {
    padding-block: 74px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .section-heading h2,
  .about h2,
  .brands h2 {
    font-size: clamp(36px, 11vw, 46px);
  }

  .section-heading h2 br {
    display: none;
  }

  .directions-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .direction-card:last-child {
    display: block;
    grid-column: auto;
  }

  .direction-card:last-child .direction-info {
    margin-top: 26px;
  }

  .direction-image-wrap {
    aspect-ratio: 0.92;
  }

  .about-grid {
    gap: 62px;
  }

  .about-visual {
    width: calc(100% - 18px);
  }

  .about-visual > img {
    height: 520px;
  }

  .year-card {
    right: -18px;
    bottom: -30px;
    width: min(240px, 78%);
    padding: 24px;
  }

  .year-card strong {
    font-size: 38px;
  }

  .about-content {
    margin-top: 18px;
  }

  .facts {
    gap: 14px;
  }

  .facts strong {
    font-size: 29px;
  }

  .facts span {
    font-size: 10px;
  }

  .brands {
    gap: 42px;
  }

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

  .brand-cell:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .brand-cell:nth-child(2n) {
    border-right: 0;
  }

  .brand-cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }

  .brand-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .brand-cell {
    min-height: 108px;
  }

  .brands-visual {
    min-height: 500px;
  }

  .contacts-heading {
    align-items: flex-start;
  }

  .city {
    padding-top: 8px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .contact-card dl {
    grid-template-columns: 76px 1fr;
    font-size: 13px;
  }

  .map-wrap {
    min-height: 410px;
  }

  .map-label {
    bottom: 18px;
    left: 18px;
    max-width: calc(100% - 36px);
  }

  .footer {
    padding-top: 54px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
  }

  .footer-brand,
  .footer-address {
    grid-column: 1 / -1;
  }

  .footer-address {
    margin-top: 4px;
  }

}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 45px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: baseline;
  }

  .facts span {
    margin-top: 0;
    font-size: 11px;
  }

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

  .footer-brand,
  .footer-address {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
