/* ===== Anton Fesenko — site styles ===== */
:root {
  --bg: #0e0e0f;
  --bg-2: #141416;
  --surface: #19191c;
  --surface-2: #202024;
  --border: #2b2b30;
  --text: #f3f0ea;
  --muted: #a8a39b;
  --accent: #e8cba3;
  --accent-ink: #1a1510;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg .fill { fill: currentColor; stroke: none; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1.1em;
}
.eyebrow span { color: var(--muted); margin: 0 .6em; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.lead { font-size: 1.15rem; color: #d9d4cc; max-width: 34em; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: var(--radius-sm);
  font: 600 .98rem var(--font-body); cursor: pointer;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f1d9b8; }
.btn-primary:disabled { background: #3a352e; color: #8d867c; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: #4a4640; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.text-link { color: var(--accent); font-weight: 500; }
.text-link:hover { text-decoration: underline; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 15, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo { width: 40px; height: 40px; filter: invert(1); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { font-size: .95rem; color: #d6d1c9; position: relative; padding: 6px 0; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 20%, rgba(232,203,163,.10), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(232,203,163,.05), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 96px) 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ----- Photo placeholders (replace with real <img>) ----- */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background:
    linear-gradient(135deg, rgba(232,203,163,.08), rgba(255,255,255,.02) 60%),
    var(--surface);
  border: 1px dashed #3a3832; border-radius: var(--radius);
  color: #77726a; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}
.photo-slot svg { width: 44px; height: 44px; stroke-width: 1.2; }
.photo-slot--hero { aspect-ratio: 4 / 5; max-height: 600px; width: 100%; }
.photo-slot--card { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; border: 0; border-bottom: 1px solid var(--border); }
.photo-slot--about { aspect-ratio: 4 / 5; }
.hero-media img, .about img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; }

/* ----- Directions ----- */
.directions { padding-top: 0; }
.direction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.direction-card {
  position: relative; display: block; padding: 36px 34px 32px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, background .25s;
}
.direction-card:hover { border-color: rgba(232,203,163,.5); transform: translateY(-3px); background: var(--surface); }
.direction-num { font-family: var(--font-head); color: var(--accent); font-size: .9rem; letter-spacing: .2em; }
.direction-card h2 { font-size: 1.75rem; margin: 14px 0 10px; }
.direction-card p { color: var(--muted); max-width: 30em; }
.direction-link { color: var(--accent); font-weight: 500; }

/* ----- Photo services ----- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, transform .25s; }
.service-card:hover { border-color: rgba(232,203,163,.45); transform: translateY(-3px); }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-body { padding: 22px 24px 24px; }
.service-body p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ----- Portfolio ----- */
.portfolio { margin-top: 72px; }
.portfolio-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.portfolio-head h3 { font-size: 1.6rem; margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  background: transparent; color: var(--muted); border: 1px solid var(--border);
  padding: .5em 1.1em; border-radius: 999px; font: 500 .9rem var(--font-body); cursor: pointer;
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; }
.gallery-item.tall { grid-row: span 2; }
.gallery img.gallery-item { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.is-hidden { display: none; }

/* ----- Booking ----- */
.booking {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 20px;
  padding: clamp(28px, 4vw, 52px);
}
.booking-info h2 { margin-bottom: .45em; }
.booking-info > p { color: #d0cbc3; font-size: 1.05rem; }
.feature-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.feature-list li { display: flex; align-items: center; gap: 16px; color: #ddd8d0; }
.feature-list svg { color: var(--accent); width: 26px; height: 26px; }

.booking-widget { display: grid; gap: 18px; align-content: start; }
.booking-panels { display: grid; grid-template-columns: 1fr 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.calendar { padding: 22px 22px 18px; border-right: 1px solid var(--border); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { margin: 0; font-size: 1.15rem; }
.cal-nav { background: none; border: 0; color: var(--text); font-size: 1.6rem; line-height: 1; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: var(--surface-2); }
.cal-nav:disabled { color: #4a4740; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-weekdays span { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center;
  background: none; border: 1px solid transparent; border-radius: 9px;
  color: var(--text); font: 500 .95rem var(--font-body); cursor: pointer;
}
.cal-day:hover:not(:disabled) { border-color: rgba(232,203,163,.5); }
.cal-day:disabled { color: #4d4a44; cursor: default; }
.cal-day.is-available { position: relative; }
.cal-day.is-available::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .7; }
.cal-day.is-today { border-color: #3d3b36; }
.cal-day.is-selected { background: var(--accent); color: var(--accent-ink); }
.cal-day.is-selected::after { background: var(--accent-ink); }

.times { padding: 22px 18px; }
.times-title { font-weight: 600; margin: 0; }
.times-date { color: var(--muted); font-size: .9rem; margin: 2px 0 16px; }
.time-list { display: grid; gap: 10px; }
.time-btn {
  background: none; border: 1px solid #45423c; color: var(--text); border-radius: 9px;
  padding: .7em; font: 500 .92rem var(--font-body); cursor: pointer;
}
.time-btn small { display: block; font-size: .72rem; font-weight: 400; opacity: .7; margin-top: 2px; }
.time-btn:hover { border-color: var(--accent); }
.time-btn.is-selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.times-empty { color: var(--muted); font-size: .9rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  color: var(--text); font: 400 1rem var(--font-body); padding: .75em .9em;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { resize: vertical; }
.booking-note { color: var(--accent); font-size: .92rem; margin: 0; min-height: 1.2em; }

/* ----- Web dev ----- */
.dev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dev-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: border-color .25s, transform .25s; }
.dev-card:hover { border-color: rgba(232,203,163,.45); transform: translateY(-3px); }
.dev-card svg { color: var(--accent); width: 30px; height: 30px; margin-bottom: 18px; }
.dev-card h3 { font-size: 1.08rem; }
.dev-card p { color: var(--muted); font-size: .94rem; margin: 0; }

.projects { margin-top: 72px; }
.projects > h3 { font-size: 1.6rem; margin-bottom: 24px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card { display: grid; grid-template-columns: 220px 1fr; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.project-thumb {
  display: grid; place-items: center; min-height: 200px;
  background: linear-gradient(140deg, #1d2a3e, #12161d); color: #c9d2e0;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .02em;
}
.project-thumb--logo { background: linear-gradient(140deg, #26221c, #141312); }
.project-thumb--logo img { width: 96px; filter: invert(84%) sepia(18%) saturate(500%) hue-rotate(340deg); }
.project-body { padding: 26px; }
.project-tag { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.project-body h4 { font-size: 1.25rem; }
.project-body p:not(.project-tag) { color: var(--muted); font-size: .95rem; }

.cta-strip {
  margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(232,203,163,.14), rgba(232,203,163,.04));
  border: 1px solid rgba(232,203,163,.25);
}
.cta-strip p { margin: 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; }

/* ----- About ----- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-copy p:not(.eyebrow) { color: #d0cbc3; font-size: 1.05rem; }

/* ----- Contact ----- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-copy > p:not(.eyebrow) { color: #d0cbc3; font-size: 1.05rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--accent); }
.contact-form { display: grid; gap: 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* ----- Footer ----- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-dirs { margin: 0; color: #d6d1c9; }
.footer-dirs span { color: var(--muted); margin: 0 .5em; }
.social { display: flex; gap: 18px; }
.social a { color: #d6d1c9; }
.social a:hover { color: var(--accent); }
.social svg { width: 24px; height: 24px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05); }
.footer-bottom p { margin: 0; color: #77726a; font-size: .85rem; }

.optional { color: #6f6a63; }
.req { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Responsive ===== */
@media (max-width: 1060px) {
  .dev-grid { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 20px;
    transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility .3s;
  }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .photo-slot--hero { aspect-ratio: 4 / 3; }
  .direction-grid, .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .photo-slot--about { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .booking-panels { grid-template-columns: 1fr; }
  .calendar { border-right: 0; border-bottom: 1px solid var(--border); padding: 18px 14px; }
  .time-list { grid-template-columns: repeat(2, 1fr); }
  .dev-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-thumb { min-height: 140px; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .hero-actions .btn { width: 100%; }
  .cta-strip { padding: 24px; }
  .brand-sub { font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
