/*
Theme Name: В графике
Theme URI: https://vgrafike.com
Author: В графике
Description: Лёгкая тема коворкинга с управляемым каталогом кабинетов и записью через YCLIENTS.
Version: 1.0.0
Text Domain: vgrafike
*/

@font-face {
  font-family: "Manrope VG";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope VG";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  font-family: "Manrope VG", "Segoe UI", Arial, sans-serif;
  color: #293238;
  background: #f8ebdd;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #293238;
  --ink-soft: #3a454b;
  --cream: #f8ebdd;
  --paper: #fffaf4;
  --coral: #e58367;
  --coral-soft: #f0a18a;
  --line: rgba(41, 50, 56, 0.16);
  --shell: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; min-height: 100vh; background: var(--cream); -webkit-font-smoothing: antialiased; }
body, button, a { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.site-header + main, section[id] { scroll-margin-top: 100px; }
.shell { width: min(calc(100% - 80px), var(--shell)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--cream); border-bottom: 1px solid rgba(248, 235, 221, 0.12); }
.header-inner { height: 92px; display: flex; align-items: center; gap: 36px; }
.brand { width: 230px; flex: 0 0 auto; }
.brand img { width: 100%; height: 70px; object-fit: cover; object-position: left center; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a, .header-location { text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav > a:not(.nav-booking) { opacity: 0.78; transition: opacity .2s ease, color .2s ease; }
.nav > a:not(.nav-booking):hover, .nav > a:not(.nav-booking):focus-visible { opacity: 1; color: var(--coral-soft); }
.nav-booking { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 9px; background: var(--coral); color: var(--ink); }
.header-location { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); }
.header-location svg { color: var(--coral); font-size: 19px; }
.menu-button { display: none; border: 0; background: transparent; color: var(--cream); font-size: 28px; padding: 8px; }
.menu-button span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-button span + span { margin-top: 5px; }
.menu-button.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; }
.menu-button.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.admin-bar .site-header { top: 32px; }

.hero { position: relative; min-height: 620px; background: var(--ink); overflow: hidden; }
.hero-photo { position: absolute; inset: 0 0 0 32%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: rgba(41,50,56,.08); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shell { position: relative; z-index: 2; min-height: 620px; display: flex; align-items: center; }
.hero-panel { width: min(650px, 52%); padding: 50px 58px; background: var(--paper); box-shadow: 0 24px 70px rgba(13, 18, 21, .28); }
.kicker { margin: 0 0 20px; display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--coral); }
.kicker > span { width: 32px; height: 2px; background: currentColor; }
.hero h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 24px; font-size: clamp(44px, 5vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 800; }
.hero h1 em { display: block; margin-top: 10px; color: var(--coral); font-style: normal; }
.hero-copy { max-width: 550px; margin-bottom: 32px; font-size: 18px; line-height: 1.62; color: #4f585e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 58px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; text-decoration: none; font-size: 15px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: var(--coral-soft); }
.button-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--ink); color: var(--cream); }
.hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; font-size: 13px; font-weight: 700; }
.hero-notes span { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { color: var(--coral); font-size: 18px; }

.room-section, .steps { padding: 120px 0; background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; gap: 48px; align-items: flex-end; margin-bottom: 44px; }
.section-heading h2, .conditions h2, .place h2, .contact h2 { margin-bottom: 0; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -.045em; }
.section-heading > p { width: min(410px, 40%); margin-bottom: 6px; color: #596166; line-height: 1.7; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button { min-height: 46px; padding: 0 18px; border: 1px solid var(--line); background: transparent; font-weight: 750; cursor: pointer; transition: background .2s, color .2s, border .2s; }
.filters button:hover, .filters button:focus-visible, .filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.room-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.room-card { min-width: 0; background: var(--ink); color: var(--cream); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.room-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(41,50,56,.2); }
.room-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.room-card:hover .room-image img { transform: scale(1.025); }
.room-number { position: absolute; right: 0; bottom: 0; min-width: 52px; height: 44px; display: grid; place-items: center; background: var(--coral); color: var(--ink); font-size: 13px; font-weight: 900; }
.room-body { padding: 24px; }
.room-eyebrow { margin-bottom: 10px; color: var(--coral-soft); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 850; }
.room-body h3 { margin-bottom: 12px; font-size: 23px; line-height: 1.15; letter-spacing: -.025em; }
.room-body > p:not(.room-eyebrow) { min-height: 66px; margin-bottom: 24px; color: rgba(248,235,221,.68); font-size: 13px; line-height: 1.62; }
.room-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.room-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.room-tags span { padding: 6px 8px; border: 1px solid rgba(248,235,221,.18); font-size: 10px; font-weight: 750; }
.room-action { min-height: 44px; padding: 0 12px; flex: 0 0 auto; display: grid; place-items: center; background: var(--coral); color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 850; }
.show-more { margin: 34px auto 0; min-height: 52px; padding: 0 20px; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; border-bottom: 2px solid var(--ink); font-weight: 850; cursor: pointer; }
.show-more svg { transition: transform .2s ease; }
.show-more svg.is-up { transform: rotate(180deg); }

.conditions { padding: 116px 0; background: var(--ink); color: var(--cream); }
.conditions-grid { display: grid; grid-template-columns: .95fr 1.35fr; gap: 90px; }
.kicker-light { color: var(--coral-soft); }
.conditions-heading h2 { max-width: 590px; }
.condition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(248,235,221,.16); border-left: 1px solid rgba(248,235,221,.16); }
.condition-list article { min-height: 210px; padding: 28px; border-right: 1px solid rgba(248,235,221,.16); border-bottom: 1px solid rgba(248,235,221,.16); }
.condition-list article > span { display: inline-block; margin-bottom: 34px; color: var(--coral); font-size: 12px; font-weight: 900; }
.condition-list h3 { margin-bottom: 10px; font-size: 20px; }
.condition-list p { margin-bottom: 0; color: rgba(248,235,221,.64); font-size: 14px; line-height: 1.6; }

.steps-heading { margin-bottom: 56px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps-grid article { padding: 34px 36px 0 0; }
.steps-grid article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.steps-grid span { display: block; margin-bottom: 64px; color: var(--coral); font-size: 54px; font-weight: 550; letter-spacing: -.06em; }
.steps-grid h3 { margin-bottom: 12px; font-size: 24px; }
.steps-grid p { max-width: 340px; margin-bottom: 0; color: #60686c; line-height: 1.68; }

.place { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, .65fr); background: var(--paper); }
.place-photo { min-height: 660px; }
.place-photo img { width: 100%; height: 100%; object-fit: cover; }
.place-card { padding: clamp(50px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.place-card h2 { margin-bottom: 30px; }
.place-card > p:not(.kicker) { margin-bottom: 32px; color: #596166; line-height: 1.72; }
.text-link { width: fit-content; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; text-decoration: none; border-bottom: 2px solid var(--coral); padding-bottom: 6px; }

.contact { padding: 110px 0; background: var(--ink); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: end; }
.contact h2 { max-width: 720px; margin-bottom: 28px; }
.contact p:not(.kicker) { max-width: 650px; margin-bottom: 0; color: rgba(248,235,221,.66); line-height: 1.7; }
.contact-actions { display: grid; gap: 22px; }
.contact-actions .button { width: 100%; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.contact-links span, .contact-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(248,235,221,.16); color: rgba(248,235,221,.52); font-size: 12px; font-weight: 750; text-decoration: none; }
.contact-links a { color: var(--cream); }
.contact-links a:hover, .contact-links a:focus-visible { border-color: var(--coral); color: var(--coral-soft); }
.max-link { letter-spacing: .08em; }

.footer { padding: 34px 0; background: #20272b; color: var(--cream); border-top: 1px solid rgba(248,235,221,.12); }
.footer-inner { display: flex; align-items: center; gap: 30px; }
.footer img { width: 190px; height: 58px; object-fit: cover; object-position: left center; }
.footer p { margin: 0; color: rgba(248,235,221,.54); font-size: 13px; }
.footer a { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--coral-soft); font-weight: 850; text-decoration: none; }
.empty-rooms { padding: 48px; background: var(--paper); border: 1px solid var(--line); font-size: 18px; }
.simple-page { min-height: 65vh; padding-top: 120px; padding-bottom: 120px; }
.simple-page h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.045em; }

@media (max-width: 1180px) {
  .shell { width: min(calc(100% - 48px), var(--shell)); }
  .nav { gap: 18px; }
  .header-location { display: none; }
  .hero-panel { width: min(610px, 62%); padding: 40px 44px; }
  .hero h1 { font-size: 50px; }
  .hero-copy { margin-bottom: 24px; font-size: 16px; line-height: 1.5; }
  .hero-notes { margin-top: 20px; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-body > p:not(.room-eyebrow) { min-height: 0; }
  .conditions-grid { gap: 54px; }
}

@media (max-width: 840px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .header-inner { height: 76px; }
  .brand { width: 190px; }
  .brand img { height: 58px; }
  .menu-button { display: grid; place-items: center; margin-left: auto; cursor: pointer; }
  .nav { position: absolute; inset: 76px 0 auto; padding: 28px 24px 32px; display: none; align-items: stretch; background: var(--ink); border-top: 1px solid rgba(248,235,221,.12); }
  .nav.is-open { display: grid; }
  .nav a { min-height: 42px; display: flex; align-items: center; }
  .nav-booking { display: flex !important; margin-top: 12px; padding: 0 16px; justify-content: space-between; background: var(--coral); color: var(--ink); }
  .hero, .hero-shell { min-height: 820px; }
  .hero-photo { inset: 0; }
  .hero-photo::after { background: rgba(41,50,56,.28); }
  .hero-shell { align-items: flex-end; padding-bottom: 40px; }
  .hero-panel { width: 100%; padding: 42px 34px; }
  .hero h1 { font-size: clamp(42px, 9vw, 62px); }
  .room-section, .steps { padding: 88px 0; }
  .section-heading { display: block; }
  .section-heading > p { width: 100%; max-width: 570px; margin-top: 24px; }
  .conditions-grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { padding: 28px 0; border-bottom: 1px solid var(--line); }
  .steps-grid article + article { padding-left: 0; border-left: 0; }
  .steps-grid span { margin-bottom: 24px; }
  .place { grid-template-columns: 1fr; }
  .place-photo { min-height: 440px; }
  .contact { padding: 88px 0; }
}

@media (max-height: 700px) and (min-width: 841px) {
  .hero, .hero-shell { min-height: 530px; }
  .hero-panel { padding-top: 30px; padding-bottom: 30px; }
  .hero h1 { margin-bottom: 18px; font-size: 44px; }
  .hero-copy { margin-bottom: 18px; }
  .hero-notes { display: none; }
}

@media (max-width: 560px) {
  .hero, .hero-shell { min-height: 760px; }
  .hero-panel { padding: 34px 24px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-notes { gap: 12px; }
  .room-grid { grid-template-columns: 1fr; }
  .room-section, .steps { padding: 72px 0; }
  .section-heading h2, .conditions h2, .place h2, .contact h2 { font-size: 40px; }
  .filters { display: grid; grid-template-columns: repeat(2, 1fr); }
  .filters button { padding: 0 10px; }
  .condition-list { grid-template-columns: 1fr; }
  .conditions { padding: 78px 0; }
  .condition-list article { min-height: 0; }
  .place-photo { min-height: 320px; }
  .place-card { padding: 64px 24px; }
  .contact-links { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; }
  .footer p { width: 100%; order: 3; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

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