/* mcholding.ru — типография «Медиа Центр». Стиль общий с штамп-печать.рф. */

@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/onest-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/onest-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,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: 'Onest'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/onest-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #F4F8FB;
  --bg-2: #EAF0F6;
  --surface: #FFFFFF;
  --tile: #EEF3F8;
  --ink: #0B1A33;
  --ink-2: #33415C;
  --muted: #66748C;
  --line: rgba(11, 26, 51, .08);
  --line-2: rgba(11, 26, 51, .15);
  --brand: #0064B0;
  --brand-600: #00579A;
  --brand-700: #004680;
  --brand-50: #E9F2FB;
  --cyan: #0099DE;
  --night: #06112A;
  --night-2: #0C1B3E;
  --focus: rgba(0, 100, 176, .38);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 51, .05), 0 1px 1px rgba(11, 26, 51, .03);
  --shadow-md: 0 12px 32px -14px rgba(11, 26, 51, .20), 0 2px 6px rgba(11, 26, 51, .04);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--white { background: var(--surface); }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 100, 176, .7); }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--brand-50); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.header__bar {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 12px 10px 20px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-md);
}
.header__logo img { height: 34px; width: auto; }
.header__nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.header__logo { flex: none; }
.header__nav a:hover { color: var(--brand); }
.header__phone { font-weight: 700; font-size: 16px; white-space: nowrap; }
.header__phone:hover { color: var(--brand); }

/* Первый экран */
.hero { padding: clamp(32px, 6vw, 72px) 0 var(--section-y); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 700; }
.hero h1 span { color: var(--brand); }
.hero__lead { margin-top: 22px; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__panel {
  padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(150deg, var(--night-2) 0%, var(--brand-700) 55%, var(--brand) 100%);
  box-shadow: 0 34px 80px -34px rgba(11, 26, 51, .5);
}
.hero__panel h2 { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.tech { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tech li {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16);
}
.hero__note { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 16px; opacity: .92; }

/* Два входа */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.door--dark { background: var(--night); color: #fff; border-color: transparent; }
.door h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.door > p { margin-top: 10px; color: var(--ink-2); }
.door--dark > p { color: rgba(255, 255, 255, .78); }
.checks { margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.door .btn { margin-top: auto; align-self: flex-start; }

/* Направления */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  display: flex; flex-direction: column; padding: 26px; min-height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.section--white .tile { background: var(--bg); }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.tile__icon {
  width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px;
  display: grid; place-items: center; background: var(--brand-50); color: var(--brand);
}
.tile__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 21px; font-weight: 700; }
.tile p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.tile__more { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 15px; color: var(--brand); }
.tile__more::after { content: " →"; }
.tile__more--ext::after { content: " ↗"; }

/* Наши сайты */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.site {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-md); color: #fff;
  background: linear-gradient(160deg, var(--night-2), var(--night)); transition: transform .25s var(--ease);
}
a.site:hover { transform: translateY(-3px); }
.site__domain { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #7CC6F2; }
.site h3 { margin-top: 10px; font-size: 23px; font-weight: 700; }
.site p { margin-top: 8px; color: rgba(255, 255, 255, .76); font-size: 16px; }
.site__go { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 15px; }

/* Как заказать */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700;
}
.step h3 { font-size: 19px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* Контакты */
.contact { background: var(--night); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
.contact__lead { margin-top: 16px; max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, .78); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact__hint { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .6); }
.card { padding: clamp(22px, 3vw, 32px); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); }
.card dl { margin: 0; display: grid; gap: 20px; }
.card dt { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.card dd { margin: 6px 0 0; font-size: 19px; font-weight: 600; }
.card dd a:hover { color: #7CC6F2; }
.card dd small { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, .7); }

/* Подвал */
.footer { padding: 28px 0; background: var(--night); color: rgba(255, 255, 255, .6); font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer img { height: 30px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a:hover { color: #fff; }

/* Кнопка звонка: только на телефоне */
.only-mobile { display: none; }

@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__phone { margin-left: auto; }
}
@media (max-width: 1020px) {
  .hero__grid, .contact__grid { grid-template-columns: 1fr; }
  .tiles, .sites { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .only-mobile { display: inline-flex; }
  .only-desktop { display: none; }
  .header__bar { padding: 8px 8px 8px 16px; gap: 12px; }
  .header__logo img { height: 28px; }
  .header__phone { display: none; }
  .header .btn { margin-left: auto; }
  .doors, .tiles, .sites, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn, .contact__actions .btn { width: 100%; }
  .door .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
