@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-latin-ext-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-latin-ext-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f5f4f2;
  --ink: #1d1a18;
  --muted: #5c5550;
  --line: #e7e1db;
  --accent: #7d6655;
  --radius: 4px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "General Sans", system-ui, -apple-system, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step-head: clamp(2.4rem, 1.8rem + 2.4vw, 3.6rem);
  --step-display: clamp(3.2rem, 2rem + 5vw, 6.2rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, .logo { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.05; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

.wrap { width: min(1240px, 100% - 64px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none; border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 0.95rem/1 var(--sans); letter-spacing: 0.02em; padding: 17px 26px; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease);
}
.btn:hover { background: #3a3430; border-color: #3a3430; }
.btn:active { transform: scale(0.98); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 12px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { text-decoration: none; font-size: 2rem; line-height: 0.9; display: inline-flex; flex-direction: column; }
.logo small { font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.nav { display: flex; gap: 36px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 180ms ease; }
.nav a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 88px; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.kicker { font-size: 1rem; color: var(--accent); margin-bottom: 22px; }
.hero h1 { font-size: var(--step-display); line-height: 0.95; font-weight: 400; }
.lead { font-size: var(--step-lead); color: var(--muted); max-width: 30em; margin: 30px 0 40px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Facts ---------- */
.facts { background: var(--surface); }
.facts-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 34px 0; font-size: 1rem; }
.facts span { display: block; font-size: var(--step-small); color: var(--muted); margin-bottom: 4px; }
.facts a { text-decoration: none; }

/* ---------- Sections ---------- */
.services, .gallery { padding: 120px 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.head h2 { font-size: var(--step-head); font-weight: 400; }
.head p { color: var(--muted); max-width: 26em; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.card { overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--surface); transition: transform 600ms var(--ease); }
.card:hover img { transform: scale(1.02); }
.card h3 { font-size: 1.85rem; font-weight: 500; margin: 22px 0 8px; }
.card p { color: var(--ink); opacity: .82; max-width: 30em; }

.about { background: var(--surface); padding: 120px 0; }
.about-in { display: grid; grid-template-columns: 5fr 6fr; gap: 88px; align-items: center; }
.about-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: var(--step-head); font-weight: 400; margin-bottom: 28px; }
.about-text p { max-width: 34em; }
.about-text p + p { margin-top: 16px; }
.about-text .sign { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); margin-top: 28px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface); }

/* ---------- Contact ---------- */
.contact { background: var(--surface); padding: 120px 0; }
.contact-in { display: grid; grid-template-columns: 5fr 6fr; gap: 88px; align-items: start; }
.contact-info h2 { font-size: var(--step-head); font-weight: 400; margin-bottom: 20px; }
.contact-info > p { color: var(--muted); max-width: 30em; }
.big-tel { display: inline-block; font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); text-decoration: none; margin: 28px 0 36px; line-height: 1; }
.contact dl { display: grid; gap: 22px; }
.contact dt { font-size: var(--step-small); color: var(--muted); margin-bottom: 2px; }

.form { background: #fff; padding: 44px; border-radius: var(--radius); display: grid; gap: 18px; }
.form h3 { font-size: 1.85rem; font-weight: 500; margin-bottom: 6px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: var(--step-small); color: var(--muted); }
input, select, textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; width: 100%;
  transition: border-color 180ms ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-size: var(--step-small); color: var(--muted); line-height: 1.55; }
.form .btn { justify-self: start; }
.msg { display: none; padding: 12px 16px; border-radius: var(--radius); font-size: var(--step-small); }
.msg.ok { display: block; background: #edf5ee; color: #24502f; }
.msg.err { display: block; background: #f8ecec; color: #7a2727; }

/* ---------- Footer ---------- */
.foot { padding: 72px 0 32px; font-size: var(--step-small); color: var(--muted); background: var(--bg); }
.foot-in { display: grid; grid-template-columns: 2fr 2fr 1.5fr; gap: 40px; padding-bottom: 48px; }
.logo-foot { color: var(--ink); }
.foot-title { color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: var(--step-small); }

.float-call { display: none; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-rise].in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card img { transition: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 22px; }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .nav { display: none; }
  .hero { padding: 28px 0 64px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { order: -1; aspect-ratio: 4 / 4.4; }
  .about-in, .contact-in { grid-template-columns: 1fr; gap: 44px; }
  .facts-in { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .services, .gallery, .about, .contact { padding: 80px 0; }
  .head { display: block; margin-bottom: 36px; }
  .head p { margin-top: 10px; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  .top-in { height: 64px; }
  .logo { font-size: 1.7rem; }
  .hide-sm { display: none; }
  .hero h1 { font-size: 3.4rem; }
  .actions .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 44px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .form { padding: 26px 20px; }
  .row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .float-call {
    display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
    background: var(--ink); color: #fff; align-items: center; justify-content: center;
  }
}
