@font-face { font-family: Avenir; src: url("fonts/avenir-regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: Avenir; src: url("fonts/avenir-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #2b3336;
  --brown: #765743;
  --cream: #f4efe6;
  --paper: #fffdf9;
  --muted: #667074;
  --line: rgba(43, 51, 54, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Avenir, Arial, sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 20; padding: 10px 14px; background: white; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(43, 51, 54, .97); color: white; }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 150px; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.4); border-radius: 6px; background: transparent; color: white; padding: 8px 12px; font: inherit; }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav .nav-list { display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-nav a { padding: 10px 13px; border-radius: 4px; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brown); }

.hero { min-height: 640px; display: grid; place-items: center; position: relative; color: white; background: linear-gradient(90deg, rgba(32,39,41,.88), rgba(32,39,41,.25)), url("images/studio.jpg") center 42% / cover; }
.hero-copy { max-width: 760px; margin-right: auto; padding-block: 110px; }
.hero-logo { width: min(360px, 76vw); margin-bottom: 28px; }
.eyebrow { margin: 0 0 12px; color: #e5d5c5; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; }
h1 { margin: 0 0 24px; font-size: clamp(2.8rem, 7vw, 5.7rem); letter-spacing: -.04em; }
.hero p { max-width: 590px; font-size: 1.2rem; }
.button { display: inline-block; margin-top: 18px; padding: 13px 22px; border-radius: 100px; background: var(--brown); color: white; font-weight: 600; text-decoration: none; }
.button:hover { background: #654632; }

.section { padding-block: 88px; }
.section-soft { background: var(--cream); }
.section-title { max-width: 710px; margin-bottom: 38px; }
.section-title h2, .page-intro h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.025em; }
.section-title p { color: var(--muted); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 12px 30px rgba(43,51,54,.06); }
.price-card header { padding: 26px; background: var(--ink); color: white; }
.price-card:nth-child(1) header { background: var(--brown); }
.price-card:nth-child(3) header { background: #a65f3e; }
.price-card h3 { margin: 0; font-size: 1.45rem; }
.price-list { margin: 0; padding: 8px 24px 20px; list-style: none; }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border: 0; }
.price-list strong { font-size: 1.18rem; }
.price-list span small { display: block; color: #288543; }
.note { margin: 25px 0 0; color: var(--muted); text-align: center; }

.studio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.studio-card { min-height: 230px; position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--ink); text-decoration: none; }
.studio-card img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .3s ease, opacity .3s ease; }
.studio-card:hover img, .studio-card:focus img { transform: scale(1.03); opacity: .18; }
.studio-card h3 { margin: 0; color: white; text-shadow: 0 2px 8px #000; }
.studio-name { position: absolute; inset: auto 18px 15px; transition: opacity .2s ease; }
.studio-contact { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 22px; color: white; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.studio-contact strong { margin-top: 12px; }
.studio-contact p { margin: 8px 0 0; font-size: .9rem; line-height: 1.45; }
.studio-card:hover .studio-name, .studio-card:focus .studio-name { opacity: 0; }
.studio-card:hover .studio-contact, .studio-card:focus .studio-contact { opacity: 1; transform: translateY(0); }

.page-intro { padding-block: 74px 46px; background: var(--cream); }
.prose { max-width: 850px; }
.prose h2 { margin-top: 42px; font-size: 1.65rem; }
.prose h3 { margin-top: 32px; }
.prose a { color: var(--brown); }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item h2 { margin: 0 0 8px; font-size: 1.3rem; }
.contact-box { margin-top: 42px; padding: 28px; border-radius: 12px; background: var(--cream); }

.site-footer { padding-block: 50px; background: var(--ink); color: white; }
.footer-branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.footer-branches h2 { margin: 0 0 10px; font-size: 1.15rem; }
.footer-branches p { margin: 0; color: #e2e5e6; font-size: .9rem; line-height: 1.55; }
.footer-branches a { font-weight: 600; }
.footer-branches .branch-map { display: inline-block; margin-top: 7px; color: #e5d5c5; text-decoration: underline; text-underline-offset: 3px; }
.socials { display: flex; gap: 10px; }
.socials { margin-top: 34px; }
.socials img { width: 34px; margin: 0; }
.copyright { margin-top: 34px; color: #cbd0d2; font-size: .9rem; }

@media (hover: none) {
  .studio-card img { opacity: .18; }
  .studio-name { opacity: 0; }
  .studio-contact { opacity: 1; transform: none; }
}

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 78px 0 auto; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; background: var(--ink); }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-list { flex-direction: column; align-items: stretch; }
  .grid-3, .studio-grid, .footer-branches { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 560px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .section { padding-block: 62px; }
  .grid-3, .studio-grid, .footer-branches { grid-template-columns: 1fr; }
  .hero-copy { padding-block: 76px; }
  .studio-card { min-height: 260px; }
}
