:root {
  --bg-light: #faf6f2;
  --bg-mid: #efe7dd;
  --bg-deep: #e6dbcf;
  --text: #2a1f14;
  --gold: #9c7a3a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);

  background: radial-gradient(
    circle at 70% 40%,
    var(--bg-light) 0%,
    var(--bg-mid) 45%,
    var(--bg-deep) 100%
  );

  overflow: hidden;
  caret-color: transparent;
}

.wrapper {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.layout {
  width: 100%;
  max-width: 1600px;

  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.link {
  display: inline-block;
  max-width: 460px;

  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.1;
  letter-spacing: 0.6px;

  text-decoration: none;
  color: var(--text);

  transition: color 0.35s ease, transform 0.35s ease;
  will-change: transform, color;
}

.link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.line {
  width: 120px;
  height: 2px;
  margin-top: 26px;

  background: linear-gradient(
    90deg,
    var(--gold),
    rgba(156,122,58,0.15)
  );

  transition: width 0.35s ease;
}

.link:hover + .line {
  width: 200px;
}

.presentation-link {
  display: inline-block;
  width: fit-content;
  margin-top: 18px;

  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.3px;

  color: rgba(42,31,20,0.72);
  text-decoration: none;

  border-bottom: 1px solid rgba(156,122,58,0.45);
  padding-bottom: 3px;

  transition: color 0.3s ease, border-color 0.3s ease;
}

.presentation-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* CONTACTS */

.contacts {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(42,31,20,0.66);
}

.importer {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(42,31,20,0.74);
}

#year {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1px;

  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";

  color: rgba(42,31,20,0.68);
}

.contact-link {
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.contact-link:hover {
  color: var(--gold);
  opacity: 0.9;
}

.phone-link {
  display: inline-block;
  margin-top: 6px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.25px;

  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";

  color: rgba(42,31,20,0.82);
}

.mail-link {
  display: inline-block;
  margin-top: 4px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 15.5px;
  line-height: 1.35;
  letter-spacing: 0.15px;

  color: rgba(42,31,20,0.72);
}

.right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider {
  position: relative;

  height: 90vh;
  max-height: 90vh;
  aspect-ratio: 2 / 3;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn 1s ease forwards;

  transition: transform 0.4s ease;
  will-change: transform;
}

.slider:hover {
  transform: translateY(-4px);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;

  overflow: hidden;
  border-radius: 20px;

  box-shadow:
    0 40px 80px rgba(0,0,0,0.18),
    0 10px 20px rgba(0,0,0,0.10);
}

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.5s ease;
  will-change: transform;
}

.slider:hover .slide.active img {
  transform: scale(1.035);
}

.slide.enter-next {
  z-index: 3;
  animation: coverFromRight 0.65s ease forwards;
}

.slide.enter-prev {
  z-index: 3;
  animation: coverFromLeft 0.65s ease forwards;
}

.slide.exit-next,
.slide.exit-prev {
  z-index: 2;
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 6;

  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(250,246,242,0.78);
  color: rgba(42,31,20,0.72);

  font-size: 38px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;

  cursor: pointer;
  transform: translateY(-50%);

  box-shadow:
    0 10px 24px rgba(0,0,0,0.12),
    0 4px 10px rgba(0,0,0,0.08);

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.slider-btn:hover {
  background: rgba(250,246,242,0.95);
  color: var(--gold);
  transform: translateY(-50%) scale(1.06);
}

.slider-btn-prev {
  left: 18px;
}

.slider-btn-next {
  right: 18px;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes coverFromRight {
  from {
    opacity: 1;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes coverFromLeft {
  from {
    opacity: 1;
    transform: translateX(-100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1100px) {

  body {
    overflow: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .wrapper {
    height: auto;
  }

  .slider {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 2 / 3;

    opacity: 1;
    transform: none;
    animation: none;
  }

  .slider:hover {
    transform: none;
  }

  .slider:hover .slide.active img {
    transform: none;
  }
}

@media (max-width: 768px) {

  .contacts {
    font-size: 14px;
  }

  .contacts div {
    white-space: normal;
  }

  #year {
    font-size: 13px;
  }

  .phone-link {
    font-size: 18px;
  }

  .mail-link {
    font-size: 16px;
  }
}

@media (max-width: 640px) {

  .wrapper {
    padding: 24px;
  }

  .layout {
    gap: 36px;
  }

  .link {
    font-size: 32px;
  }

  .line {
    width: 90px;
  }

  .link:hover + .line {
    width: 140px;
  }

  .presentation-link {
    margin-top: 16px;
    font-size: 15px;
  }

  .slider-track {
    border-radius: 14px;
    box-shadow:
      0 30px 60px rgba(0,0,0,0.16),
      0 8px 16px rgba(0,0,0,0.10);
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 34px;
  }

  .slider-btn-prev {
    left: 10px;
  }

  .slider-btn-next {
    right: 10px;
  }
}