:root {
  --bg-main: #fffdf8;
  --bg-soft: #fff7ea;
  --panel: #ffffff;
  --text-main: #20180e;
  --text-muted: #5f5442;
  --line: #ecdab8;
  --gold: #b99348;
  --brand-dark: #130a00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at -10% -20%, #fff2d5 0%, transparent 50%),
    radial-gradient(circle at 110% -30%, #ffeec9 0%, transparent 45%),
    linear-gradient(180deg, #fffefa 0%, #fff8eb 100%);
}

.container {
  width: min(1150px, 92vw);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 3.2vw;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ecd7af;
  box-shadow: 0 8px 20px rgba(69, 49, 12, 0.08);
}

.brand img {
  width: 138px;
  max-width: 42vw;
  height: auto;
  display: block;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--brand-dark);
  text-decoration: none;
  font-family: "Bad Script", cursive;
  font-weight: 700;
  font-size: 1.18rem;
  padding: 6px 11px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
  background: #ffe8ba;
  color: #000;
  transform: translateY(-1px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.social-icons a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(180deg, #fff8e7 0%, #ffeecf 100%);
  border: 1px solid #ead0a0;
  color: #3a2a0f;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(66, 46, 11, 0.18);
  background: linear-gradient(180deg, #fff0d0 0%, #ffe4b2 100%);
}

.hero {
  border: 1px solid #dfc082;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 44px rgba(71, 52, 16, 0.18);
  position: relative;
}

.hero-light {
  background: linear-gradient(160deg, #ffffff 0%, #fff1d0 55%, #ffd890 100%);
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(12, 9, 6, 0.58) 0%, rgba(12, 9, 6, 0.28) 45%, rgba(12, 9, 6, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 9, 6, 0.18) 0%, rgba(12, 9, 6, 0.36) 100%),
    url("home-design.jpg");
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero h1 {
  color: #1a1205;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
}

.hero p {
  color: #3e2d13;
  font-weight: 600;
}

.hero-soft {
  background: linear-gradient(160deg, #fffdf7 0%, #fff8ea 100%);
  padding: 20px;
}

.hero-content {
  padding: 36px 26px 42px;
  text-align: left;
  width: min(720px, 100%);
  margin: 0;
}

.hero-logo {
  width: min(300px, 100%);
  height: auto;
  margin-bottom: 14px;
}

.hero-image h1,
.hero-image p {
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.hero-image h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  max-width: 14ch;
}

.hero-image p {
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 18px;
}

h1, h2 {
  line-height: 1.25;
  margin-top: 0;
}

.btn {
  display: inline-block;
  background: linear-gradient(180deg, #1f1607 0%, #130a00 100%);
  color: #fff;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(19, 10, 0, 0.25);
}

.service-grid {
  margin-top: 26px;
  display: grid;
  gap: 20px;
}

.home-main {
  display: grid;
  gap: 26px;
}

.home-page {
  scroll-snap-type: y mandatory;
}

.home-page .snap-block {
  min-height: calc(100svh - 68px);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
}

.service-slide {
  width: 100%;
}

.service-card {
  background: var(--panel);
  border: 1px solid #ecdab7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(68, 52, 23, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(68, 52, 23, 0.14);
}

.service-card img {
  width: 100%;
  height: clamp(220px, 36vw, 330px);
  object-fit: cover;
  display: block;
}

.reveal-image {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-image.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-text {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-text.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.type-text {
  min-height: 1.3em;
}

.type-text.is-typing::after {
  content: "|";
  margin-left: 2px;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.service-card img.credits-image {
  object-fit: contain;
  background: #fff;
  padding: 14px;
}

.service-card img.real-estate-image {
  height: auto;
  object-fit: unset;
}

.service-body {
  padding: 16px 18px;
}

.service-body ul {
  padding-left: 18px;
}

.social-section,
.fb-section,
.form-card,
.about-block {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid #ecdab7;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 14px 26px rgba(68, 52, 23, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfd1b6;
  border-radius: 12px;
  font: inherit;
  background: #fffdf8;
}

textarea {
  margin-top: 12px;
}

.checkbox-line {
  margin: 12px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 500;
}

.checkbox-line input[type="checkbox"] {
  width: auto;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.helper-text {
  color: var(--text-muted);
  margin-top: 14px;
}

.form-success {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #b7e2bc;
  background: #eaf8ec;
  color: #1f5c2a;
  border-radius: 10px;
  font-weight: 700;
}

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f1b5b5;
  background: #fdecec;
  color: #8b1f1f;
  border-radius: 10px;
  font-weight: 700;
}

.about-block img {
  width: 100%;
  height: clamp(260px, 35vw, 420px);
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 14px;
}

.team-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.profile-card {
  background: var(--panel);
  border: 1px solid #ecdab7;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(68, 52, 23, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(68, 52, 23, 0.14);
}

.profile-card img {
  width: 100%;
  height: clamp(280px, 34vw, 420px);
  object-fit: cover;
  display: block;
}

.profile-card h2,
.profile-card p {
  margin: 12px 14px;
}

.site-footer {
  margin-top: 24px;
  padding: 16px 20px;
  border-top: 1px solid #e8d5af;
  background: #fff8ea;
  color: #46341a;
  text-align: center;
  font-weight: 600;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: #3b2a12;
}

.page-transition {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.35s ease;
}

.page-transition img {
  width: min(280px, 62vw);
  opacity: 0.95;
  transform: scale(1);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

body.page-ready .page-transition {
  opacity: 0;
  pointer-events: none;
}

body.page-leaving .page-transition {
  opacity: 1;
  pointer-events: all;
}

body.page-leaving .page-transition img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .top-icons {
    margin-left: 4px;
  }

  .site-header {
    padding: 8px 3.8vw;
  }

  .brand img {
    width: 126px;
  }

  nav a {
    font-size: 1.04rem;
  }

  .home-page .snap-block {
    min-height: calc(100svh - 62px);
  }

  .form-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}
