/*
Theme Name: Бумажный кораблик
Theme URI: https://it-age.ru
Author: Бумажный кораблик
Description: Сайт принт-студии с редактируемыми услугами, контактами и графиком работы.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: bumazhny-korablik
*/

:root {
  --ink: #15364b;
  --ink-soft: #456274;
  --sky: #b7d7e3;
  --sky-pale: #e4f0f2;
  --paper: #fbf8f2;
  --paper-deep: #f1ece3;
  --accent: #1687b7;
  --accent-dark: #0c668f;
  --line: rgba(21, 54, 75, .13);
  --shadow: 0 18px 55px rgba(25, 55, 72, .11);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 99; padding: 10px 15px; background: white; }
.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  z-index: 5;
  overflow: hidden;
  background: #b8b5b7;
  border-bottom: 1px solid rgba(21, 54, 75, .16);
  box-shadow: 0 5px 18px rgba(21, 54, 75, .08);
}
.header-inner { position: relative; z-index: 1; min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { display: block; color: #153e56; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 34px); }
.main-nav a { font-size: 13px; font-weight: 700; text-decoration: none; color: #21495f; transition: color .18s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--accent-dark); }
.header-cta, .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(217, 121, 82, .2);
  transition: transform .18s ease, background .18s ease;
}
.header-cta { background: #164760; box-shadow: 0 7px 18px rgba(15, 64, 90, .19); }
.header-cta:hover { background: #0d344b; }
.header-cta:hover, .button:hover { transform: translateY(-2px); background: var(--accent-dark); color: #fff; }
.button-secondary { background: rgba(255,255,255,.72); color: var(--ink); border: 1px solid rgba(21,54,75,.15); box-shadow: none; }
.button-secondary:hover { background: #fff; color: var(--ink); }

.brand-banner {
  width: 100%;
  height: clamp(230px, 33.333vw, 650px);
  background-color: #99b5c8;
  background-image: url("assets/images/logo-banner-extended.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 8vw, 108px) 0 80px;
  background: var(--paper);
}
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; }
.hero::before { width: 600px; height: 600px; right: -260px; top: -300px; }
.hero::after { width: 420px; height: 420px; right: -170px; top: -210px; }
.hero-grid { position: relative; z-index: 1; display: block; max-width: 880px; margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { max-width: 880px; margin: 20px auto 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 6.6vw, 80px); font-weight: 500; line-height: .99; letter-spacing: -.055em; }
.hero h1 em { color: #367f9f; font-weight: 400; }
.hero-copy { max-width: 680px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(17px, 1.7vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; color: #4d6b7c; font-size: 12px; }

.section { padding: clamp(68px, 9vw, 112px) 0; }
.section-heading { max-width: 710px; margin: 0 auto 44px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { margin: 14px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5vw, 56px); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.services-section { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.service-card { position: relative; min-height: 174px; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover, .service-card.is-expanded { transform: translateY(-3px); border-color: rgba(54,127,159,.35); box-shadow: 0 14px 35px rgba(25,55,72,.08); }
.service-card__toggle { display: flex; width: 100%; min-height: 172px; flex-direction: column; align-items: flex-start; padding: 24px 24px 20px; border: 0; border-radius: inherit; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.service-card__toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.service-number { display: inline-grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--sky-pale); color: #367f9f; font-size: 11px; font-weight: 800; }
.service-card__title { margin: 17px 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 600; line-height: 1.15; }
.service-card__summary { margin: 0; color: var(--ink-soft); font-size: 13px; }
.service-card__summary[hidden] { display: none !important; }
.service-card__prompt { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 13px; color: var(--accent-dark); font-size: 11px; font-weight: 750; }
.service-card__prompt span { font-size: 16px; line-height: 1; }
.service-card__details { padding: 0 24px 22px; color: var(--ink-soft); font-size: 13px; }
.service-card__details[hidden] { display: none !important; }
.service-card__details p { margin: 0 0 7px; color: var(--ink-soft); font-size: inherit; }
.service-card__details ul { display: grid; gap: 6px; margin: 0; padding-left: 19px; }
.service-card__details li::marker { color: var(--accent); }
.service-empty { grid-column: 1/-1; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.custom-section { position: relative; overflow: hidden; background: #173c52; color: white; }
.custom-section::before { content: ""; position: absolute; width: 440px; height: 440px; right: -100px; top: -210px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.custom-grid { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
.custom-section .eyebrow { color: #f0ad8e; }
.custom-section h2 { max-width: 720px; margin: 15px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5.5vw, 63px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.custom-section p { max-width: 640px; margin: 0; color: #c7d9e1; }
.custom-products { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.custom-products span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.19); border-radius: 999px; color: #e3edf1; font-size: 12px; }
.custom-action { white-space: nowrap; }

.market-section { background: var(--paper-deep); }
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 850px; margin: 0 auto; }
.market-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border: 1px solid rgba(21,54,75,.1); border-radius: 20px; background: #fff; text-decoration: none; box-shadow: 0 7px 22px rgba(25,55,72,.04); transition: transform .18s ease, box-shadow .18s ease; }
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.market-card small { display: block; color: var(--ink-soft); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.market-card strong { display: block; margin-top: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.market-arrow { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--sky-pale); color: #367f9f; font-size: 20px; }

.contact-section { background: #e8f1f1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.contact-card { padding: clamp(26px, 4vw, 42px); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: 0 12px 36px rgba(25,55,72,.06); }
.contact-card h3 { margin: 0 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.contact-line { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 0 0 18px; }
.contact-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--sky-pale); color: #367f9f; font-size: 14px; font-weight: 800; }
.contact-line small { display: block; color: var(--ink-soft); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.contact-line a, .contact-line span.value { display: inline-block; margin-top: 2px; font-size: 16px; font-weight: 650; text-decoration: none; }
.contact-line a:hover { color: var(--accent-dark); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours-table tr:last-child td { border: 0; }
.hours-table td:last-child { text-align: right; font-weight: 650; }
.hours-break { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.hours-note { margin: 22px 0 0; color: var(--ink-soft); font-size: 13px; }
.contact-vk { margin-top: 25px; }

.site-footer { padding: 26px 0; background: #123247; color: #c2d5dd; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; }
.footer-brand { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; }
.admin-hint { padding: 9px 14px; background: #fff4ce; color: #533900; text-align: center; font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { min-height: 94px; gap: 14px; }
  .brand-name { font-size: 19px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 12px; }
  .header-cta { min-height: 42px; padding-inline: 15px; font-size: 12px; }
  .brand-banner { height: clamp(220px, 37vw, 300px); background-size: auto 100%; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 540px); }
  .header-inner { min-height: 0; justify-content: space-between; flex-wrap: wrap; gap: 0 10px; padding-block: 9px 11px; }
  .brand-name { max-width: 135px; font-size: 17px; }
  .header-cta { min-height: 40px; padding-inline: 13px; font-size: 11px; }
  .main-nav { order: 3; width: 100%; display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; }
  .main-nav a { font-size: 11px; }
  .hero { padding: 50px 0 52px; }
  .brand-banner { height: max(220px, 68vw); background-size: auto 100%; }
  .hero h1 { max-width: 480px; font-size: clamp(48px, 13vw, 68px); }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 30px; }
  .service-grid { gap: 10px; }
  .service-card { min-height: 155px; border-radius: 15px; }
  .service-card__toggle { min-height: 153px; padding: 18px 18px 16px; }
  .service-card__title { font-size: 18px; }
  .service-card__summary { font-size: 12px; }
  .service-card__details { padding: 0 18px 18px; font-size: 12px; }
  .custom-grid { grid-template-columns: 1fr; gap: 25px; }
  .custom-action { justify-self: start; }
  .market-grid, .contact-grid { grid-template-columns: 1fr; }
  .market-card { padding: 22px; }
  .contact-card { padding: 25px 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 24px); }
  .header-cta { gap: 5px; padding-inline: 10px; font-size: 10px; }
  .main-nav a { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
