:root {
  --bg: #e7e3dd;
  --panel: #ece8e1;
  --panel-soft: #f4f1ec;
  --white: #ffffff;
  --text: #343741;
  --muted: #727983;
  --button: #3d434e;
  --button-hover: #2f353f;
  --line: rgba(52, 55, 65, 0.08);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);

  /* Main page width */
  --content-width: 1040px;

  /* Image widths */
  --hero-image-width: 360px;
  --split-image-width: 320px;
  --outdoor-image-width: 280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- HEADER ---------- */

.site-header {
  background: #f8f6f3;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 20px 28px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo-main {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.lang-toggle {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: none;
  background: var(--button);
  color: #fff;
  font: inherit;
  padding: 12px 18px;
  cursor: pointer;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--button-hover);
}

/* ---------- SHARED PAGE WIDTH ---------- */

.hero,
.story-section,
.note-section,
.contact-section,
.split-section {
  width: min(100% - 40px, var(--content-width));
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HERO ---------- */

.hero {
  min-height: 74vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 90px 40px 100px;
  background: var(--panel);
}

.hero-copy {
  max-width: 500px;
  padding-left: 28px;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 5.6vw, 5.3rem);
  font-style: italic;
  line-height: 0.95;
  font-weight: 500;
  margin: 0 0 26px;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 470px;
  margin: 0 0 34px;
}

.hero-btn {
  display: inline-block;
  background: var(--button);
  color: #fff;
  padding: 18px 30px;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.hero-btn:hover {
  background: var(--button-hover);
}

.hero-image-frame,
.split-image-frame {
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
}

.hero-image-frame {
  width: min(100%, var(--hero-image-width));
  justify-self: center;
}

.hero-image-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- STORY / NOTE / CONTACT ---------- */

.story-section,
.note-section,
.contact-section {
  padding: 74px 40px;
  background: var(--panel-soft);
}

.story-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.story-inner p,
.split-copy p,
.contact-card p {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0 0 18px;
}

/* ---------- SPLIT SECTIONS ---------- */

.split-section {
  padding: 82px 40px;
  background: #f7f5f2;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 58px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: 1fr 340px;
}

.split-section.reverse .split-image-frame {
  order: 2;
}

.split-section.reverse .split-copy {
  order: 1;
}

.split-image-frame {
  width: min(100%, var(--split-image-width));
  justify-self: center;
}

.split-image-frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split-copy {
  max-width: 560px;
}

/* ---------- OUTDOOR SECTION IMAGE SMALLER ---------- */
/* This targets the third split section after hero/story/about/what */
.split-section:nth-of-type(4) .split-image-frame {
  width: min(100%, var(--outdoor-image-width));
}

.center {
  text-align: center;
}

/* ---------- CONTACT ---------- */

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 42px;
  box-shadow: var(--shadow);
}

.contact-form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d9d4cd;
  padding: 16px 18px;
  font: inherit;
  background: #faf9f7;
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 170px;
}

.form-btn {
  margin-top: 18px;
  border: none;
  cursor: pointer;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- LANGUAGE TOGGLE ---------- */

.ua {
  display: none;
}

body.lang-en .en {
  display: block;
}

body.lang-en .ua {
  display: none;
}

body.lang-ua .en {
  display: none;
}

body.lang-ua .ua {
  display: block;
}

body.lang-ua .site-nav .ua,
body.lang-en .site-nav .en {
  display: inline-block;
}

body.lang-ua .site-nav .en,
body.lang-en .site-nav .ua {
  display: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .hero,
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-section.reverse .split-image-frame,
  .split-section.reverse .split-copy {
    order: initial;
  }

  .hero-copy {
    padding-left: 0;
    max-width: 100%;
  }

  .hero-image-frame {
    width: min(100%, 360px);
  }

  .split-image-frame,
  .split-section:nth-of-type(4) .split-image-frame {
    width: min(100%, 320px);
  }

  .split-copy {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .logo-main {
    font-size: 2.3rem;
  }

  .hero,
  .story-section,
  .note-section,
  .contact-section,
  .split-section {
    width: min(100% - 20px, var(--content-width));
    padding: 44px 20px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .hero-btn {
    width: 100%;
    text-align: center;
  }

  .hero-image-frame {
    width: min(100%, 300px);
  }

  .split-image-frame,
  .split-section:nth-of-type(4) .split-image-frame {
    width: min(100%, 260px);
  }

  .contact-card {
    padding: 26px;
  }
}