﻿@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500&family=Manrope:wght@300;400;500&display=swap");

:root {
  --bg: #f6f1e7;
  --bg-soft: #f2e9db;
  --text: #3f342a;
  --text-soft: #8b7764;
  --accent: #3f6f8b;
  --border: #cdbfae;
  --white: #ffffff;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.4;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero__logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero__title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.2;
  font-family: "Fraunces", "Times New Roman", serif;
  white-space: nowrap;
}

.hero__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-weight: 300;
  white-space: pre-line;
}

.carousel {
  width: 100%;
  margin: 0 -20px;
}

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  padding-left: 20px;
  padding-right: 20px;
}

.carousel__track::-webkit-scrollbar {
  height: 6px;
}

.carousel__track::-webkit-scrollbar-thumb {
  background: rgba(63, 52, 42, 0.15);
  border-radius: 999px;
}

.carousel__slide {
  position: relative;
  min-width: 78%;
  height: 43vh;
  max-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--bg-soft);
}

.carousel__slide:first-child {
  min-width: 88%;
}

.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) contrast(1.1) saturate(1.06);
}

.carousel__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(32, 24, 18, 0.52) 0%,
    rgba(32, 24, 18, 0.22) 26%,
    rgba(32, 24, 18, 0) 52%
  );
}

.carousel__caption {
  position: absolute;
  left: 16px;
  top: 14px;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.96);
  max-width: 86%;
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mini-gallery__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.mini-gallery__track::-webkit-scrollbar {
  height: 4px;
}

.mini-gallery__track::-webkit-scrollbar-thumb {
  background: rgba(63, 52, 42, 0.12);
  border-radius: 999px;
}

.mini-gallery__image {
  width: 170px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.brief {
  display: flex;
  justify-content: center;
}

.brief__text {
  margin: 0;
  max-width: 520px;
  font-size: 0.95rem;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.5;
  white-space: pre-line;
}

.reality,
.closing {
  display: flex;
  justify-content: center;
}

.reality__text,
.closing__text {
  margin: 0;
  max-width: 520px;
  font-size: 0.88rem;
  color: var(--text);
  text-align: center;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.btn {
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 0.98rem;
  text-align: center;
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn__icon {
  margin-right: 8px;
}

.btn--primary {
  background: linear-gradient(140deg, #3f6f8b 0%, #355f74 100%);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(63, 111, 139, 0.25);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: linear-gradient(140deg, #3a6782 0%, #2f5568 100%);
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(63, 111, 139, 0.28);
}

.btn--primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 14px 30px rgba(63, 111, 139, 0.24);
}

.actions__secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown {
  width: 100%;
}

.dropdown__toggle {
  list-style: none;
  cursor: pointer;
  width: 100%;
}

.dropdown__toggle::-webkit-details-marker {
  display: none;
}

.dropdown__toggle::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.85rem;
}

.dropdown[open] .dropdown__toggle::after {
  content: "▴";
}

.dropdown__menu {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(63, 52, 42, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.dropdown__item {
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 0.94rem;
}

.dropdown__item:hover,
.dropdown__item:focus-visible {
  background: var(--bg-soft);
}

.btn--secondary {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--tertiary {
  background: transparent;
  border: 1px solid rgba(63, 52, 42, 0.25);
  color: rgba(63, 52, 42, 0.85);
}

.btn--small {
  font-size: 0.9rem;
  padding: 12px 14px;
}

.footer {
  text-align: center;
  color: var(--text-soft);
}

.footer__text {
  font-size: 0.8rem;
}

.footer__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 119, 100, 0.45);
}

.footer__link:hover,
.footer__link:focus-visible {
  border-bottom-color: rgba(63, 52, 42, 0.75);
}

@media (min-width: 720px) {
  .page {
    padding: 40px 24px 70px;
  }

  .carousel__slide {
    min-width: 60%;
    height: 400px;
  }

  .brief__text {
    text-align: left;
  }

  .reality__text,
  .closing__text {
    text-align: left;
  }
}
