:root {
  --bg: #f7f4ef;
  --text: #202326;
  --muted: #5e6267;
  --accent: #5d351d;
  --line: #d8d0c6;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .65rem .9rem;
  background: #fff;
  color: var(--text);
}
.skip-link:focus { top: 1rem; }

.container,
.header-inner,
.mobile-contact {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand,
.site-location {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
.site-location {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}
.language-switch {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav { display: flex; align-items: center; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: .42rem .78rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}
.nav-cta:hover { opacity: .9; }
.header-contact {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .83rem;
  white-space: nowrap;
}
.header-contact > a {
  color: var(--text);
  text-decoration: none;
}
.header-contact > a:hover { text-decoration: underline; }
.social-links {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}
.social-links a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.social-links svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.social-links .icon-fill { fill: currentColor; stroke: none; }
.mobile-nav-cta,
.mobile-contact { display: none; }

.hero { padding: 2.7rem 0 1.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 2rem;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1, h2 {
  font-family: "Oswald", Arial, sans-serif;
  color: var(--text);
  line-height: 1.05;
  margin-top: 0;
}
h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.35rem, 4vw, 4rem);
}
h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3vw, 3rem);
}
.hero-copy p { margin: 0 0 .8rem; }
.welcome-points {
  list-style: none;
  margin: .1rem 0 .9rem;
  padding: 0;
}
.welcome-points li {
  position: relative;
  padding-left: 1.3rem;
  margin: .25rem 0;
}
.welcome-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.closing-line {
  margin-bottom: 0 !important;
  font-weight: 700;
}
.hero-figure {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.gallery-section { padding: .8rem 0 2rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  height: 190px;
  overflow: hidden;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.gallery-grid figure:first-child img { object-position: center 22%; }
.gallery-grid figure:last-child img { object-position: center 40%; }

.section {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
}
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 3rem;
}
.schedule {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 1rem;
}
.schedule-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: baseline;
}
.schedule-item strong { white-space: nowrap; }
.schedule-item span { color: var(--text); }
.secondary-info { color: var(--muted); }
.practical-info p:first-child { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.45rem 0 2rem;
}
.footer-inner { text-align: center; }
.footer-trial {
  display: inline-block;
  color: var(--accent);
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}

@media (max-width: 1080px) {
  .header-contact > a:first-child { display: none; }
  .header-inner { gap: .75rem; }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 62px;
    justify-content: space-between;
  }
  .brand-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .brand { font-size: 1.02rem; }
  .site-location,
  .language-switch,
  .desktop-nav,
  .header-contact { display: none; }
  .mobile-nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .4rem .7rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }
  .mobile-nav-cta:hover { opacity: .9; }
  .mobile-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    padding: .35rem 0 .55rem;
    font-size: .74rem;
  }
  .mobile-contact > a {
    color: var(--text);
    text-decoration: none;
  }
  .mobile-contact .mobile-language-switch {
    color: var(--accent);
    font-weight: 700;
  }
  .mobile-contact .social-links a { width: 22px; height: 22px; }

  .hero { padding-top: 2rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .hero-figure { min-height: 0; }
  .hero-figure img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .gallery-grid figure { height: 145px; }
  .course-layout { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 540px) {
  .container,
  .header-inner,
  .mobile-contact { width: min(calc(100% - 1.2rem), var(--container)); }
  .brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .brand { font-size: .94rem; gap: .45rem; }
  .hero { padding: 1.5rem 0 1rem; }
  h1 { font-size: 2.45rem; }
  h2 { font-size: 2rem; }
  .gallery-section { padding-bottom: 1.5rem; }
  .gallery-grid { gap: .55rem; }
  .gallery-grid figure { height: 112px; }
  .schedule {
    grid-template-columns: 1fr;
    gap: .45rem;
  }
  .schedule-item {
    grid-template-columns: 6.2rem 1fr;
    gap: .6rem;
  }
  .section { padding-top: 1.6rem; }
}
