:root {
  --site-bg: #f6f8fb;
  --site-surface: #ffffff;
  --site-text: #132033;
  --site-muted: #5d6b7c;
  --site-primary: #1769e0;
  --site-accent: #14a88b;
  --site-warm: #f06f4f;
  --site-border: #dbe3ee;
  --site-soft: #edf3fa;
  --site-deep: #101b2b;
  --site-shadow: 0 18px 50px rgba(21, 36, 56, .10);
  --site-radius: 8px;
  --site-radius-soft: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; background: linear-gradient(180deg, #eef4fb 0, var(--site-bg) 360px); color: var(--site-text); }
body.site-theme--contrast { --site-bg: #07111c; --site-surface: #172331; --site-text: #f4f8fb; --site-muted: #c9d4de; --site-primary: #5db7ff; --site-accent: #41d6b6; --site-warm: #ff9a7a; --site-border: #2f4152; --site-soft: #101a25; --site-deep: #060b10; --site-shadow: 0 18px 50px rgba(0,0,0,.28); background: #07111c; color: #f4f8fb; }
body.site-theme--contrast .site-header { border-color: #223446; background: rgba(7,17,28,.92); }
body.site-theme--contrast .site-brand,
body.site-theme--contrast .site-nav a { color: #f4f8fb; }
body.site-theme--contrast .site-nav a:hover { background: #172331; color: #fff; }
body.site-theme--contrast .site-nav a:last-child { background: #f4f8fb; color: #07111c; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
body.site-theme--contrast .site-footer { border-color: #223446; color: #c9d4de; }
body.site-theme--soft { --site-bg: #fbf7f0; --site-surface: #fffaf3; --site-text: #243445; --site-muted: #667281; --site-primary: #4f7dd9; --site-accent: #74bfa3; --site-warm: #e99c72; --site-border: #e1e9e8; --site-soft: #f6efe4; --site-shadow: 0 18px 44px rgba(123,142,164,.12); background: linear-gradient(180deg, #eff7ff 0, #fbf7f0 360px); }
body.site-theme--soft .site-header { border-color: rgba(225,233,232,.9); background: rgba(251,247,240,.9); }
body.site-theme--soft .site-nav a:hover { background: #f2ede5; }
body.site-theme--soft .site-nav a:last-child { background: #4f7dd9; color: #fff; }
body.site-theme--soft .site-footer { border-color: #e1e9e8; }
body.site-theme--editorial { --site-bg: #f7f3ec; --site-surface: #fffdf8; --site-text: #111827; --site-muted: #4f5965; --site-primary: #111827; --site-accent: #a35b27; --site-warm: #c2410c; --site-border: #d8d1c8; --site-soft: #efe6da; --site-shadow: 0 16px 38px rgba(32,24,18,.10); background: #f7f3ec; }
body.site-theme--editorial .site-header { border-color: #d8d1c8; background: rgba(255,253,248,.92); }
body.site-theme--editorial .site-nav a { border-radius: 4px; }
body.site-theme--editorial .site-nav a:hover { background: #efe6da; }
body.site-theme--editorial .site-nav a:last-child { background: #111827; color: #fff; }
body.site-theme--editorial .site-footer { border-color: #d8d1c8; }
body.site-theme--vibrant { --site-bg: #f4fbff; --site-surface: #ffffff; --site-text: #102033; --site-muted: #52657b; --site-primary: #0ea5e9; --site-accent: #22c55e; --site-warm: #f97316; --site-border: #cde8f5; --site-soft: #e9f8ff; --site-shadow: 0 20px 50px rgba(14,165,233,.13); background: linear-gradient(180deg, #eef9ff 0, #f4fbff 360px); }
body.site-theme--vibrant .site-header { border-color: rgba(205,232,245,.9); background: rgba(244,251,255,.9); }
body.site-theme--vibrant .site-nav a:hover { background: #e9f8ff; }
body.site-theme--vibrant .site-nav a:last-child { background: linear-gradient(135deg, #0ea5e9, #22c55e); color: #fff; }
body.site-theme--vibrant .site-footer { border-color: #cde8f5; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid rgba(219,227,238,.78); background: rgba(246,248,251,.88); backdrop-filter: blur(18px); }
.site-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--site-text); text-decoration: none; font-weight: 900; letter-spacing: 0; }
.site-brand__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--site-text); color: #fff; }
.site-brand__logo { display: block; width: auto; height: 42px; max-width: 188px; object-fit: contain; }
.site-brand--small .site-brand__logo { height: 32px; max-width: 150px; }
.site-brand--large .site-brand__logo { height: 54px; max-width: 230px; }
.site-brand--logo-only { gap: 0; }
.site-brand--text-only { min-height: 42px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 10px 13px; border-radius: 8px; color: var(--site-muted); text-decoration: none; font-weight: 800; }
.site-nav a:hover { background: #eaf0f7; color: var(--site-text); }
.site-nav a:last-child { background: var(--site-text); color: #fff; box-shadow: 0 10px 24px rgba(16,27,43,.14); }
.site-nav a:last-child:hover { background: var(--site-primary); color: #fff; }
.site-header__actions { display: inline-flex; align-items: center; gap: 10px; }
.site-header__contact { color: var(--site-muted); font-weight: 800; white-space: nowrap; }
.site-header__button { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 8px; background: var(--site-primary); color: #fff; text-decoration: none; font-weight: 900; box-shadow: 0 10px 24px rgba(23,105,224,.18); white-space: nowrap; }
.site-header__button:hover { background: #0f57bf; color: #fff; }
.site-header--compact { min-height: 56px; border-bottom-color: transparent; background: rgba(255,255,255,.82); }
.site-header--compact .site-brand__logo { height: 32px; }
.site-header--compact .site-nav a { padding: 7px 10px; border-radius: 6px; font-size: 14px; }
.site-header--centered { min-height: 112px; flex-direction: column; justify-content: center; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.site-header--centered .site-brand { flex-direction: column; gap: 6px; }
.site-header--centered .site-brand__logo { height: 48px; }
.site-header--split { margin: 16px auto 0; width: min(1160px, calc(100% - 40px)); min-height: 70px; padding: 0 18px; border: 1px solid var(--site-border); border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 14px 34px rgba(21,36,56,.08); }
.site-header--dark { border-color: rgba(255,255,255,.08); background: #101b2b; }
.site-header--dark .site-brand,
.site-header--dark .site-nav a,
.site-header--dark .site-header__contact { color: #fff; }
.site-header--dark .site-nav a:hover { background: rgba(255,255,255,.09); color: #fff; }
.site-header--dark .site-nav a:last-child { background: #fff; color: #101b2b; }
.site-header--dark .site-header__button { background: #fff; color: #101b2b; }
.site-main { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid var(--site-border); color: var(--site-muted); }
.site-footer__brand { display: grid; gap: 4px; max-width: 420px; }
.site-footer__brand strong { color: var(--site-text); }
.site-footer__brand span { line-height: 1.45; }
.site-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.site-social { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--site-border); border-radius: 8px; background: var(--site-surface); color: var(--site-muted); text-decoration: none; box-shadow: 0 8px 20px rgba(21,36,56,.06); }
.site-social:hover { border-color: transparent; color: #fff; background: var(--site-primary); box-shadow: 0 12px 24px rgba(23,105,224,.18); }
.site-social svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.site-social span { color: inherit; font-size: 10px; font-weight: 900; line-height: 1; letter-spacing: 0; }
.site-social--telegram:hover { background: #26a5e4; }
.site-social--vk:hover { background: #0077ff; }
.site-social--whatsapp:hover { background: #25d366; }
.site-social--max:hover { background: #101b2b; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.site-footer__nav a { color: var(--site-muted); text-decoration: none; font-weight: 700; }
.site-footer__nav a:hover { color: var(--site-primary); }
.site-footer__year { white-space: nowrap; }
.site-footer--compact { align-items: center; padding: 16px 0 22px; font-size: 14px; }
.site-footer--compact .site-footer__brand span,
.site-footer--compact .site-footer__nav { display: none; }
.site-footer--columns { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; padding-top: 34px; }
.site-footer--columns .site-footer__nav { display: grid; gap: 8px; }
.site-footer--centered { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.site-footer--centered .site-footer__brand { justify-items: center; }
.site-footer--dark { width: min(1160px, calc(100% - 40px)); margin-bottom: 24px; padding: 28px 30px; border: 0; border-radius: 8px; background: #101b2b; color: #c9d4de; }
.site-footer--dark .site-footer__brand strong,
.site-footer--dark .site-footer__nav a { color: #fff; }
.site-footer--dark .site-footer__nav a:hover { color: #5db7ff; }
.site-footer--dark .site-social { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.page-header { border-bottom: 1px solid var(--site-border); margin-bottom: 24px; padding-bottom: 16px; }
.page-header h1 { margin: 0; font-size: clamp(32px, 6vw, 56px); }
.page-body,
.page-content { color: var(--site-muted); font-size: 18px; line-height: 1.65; }
.page-content h2,
.page-content h3 { color: var(--site-text); line-height: 1.25; }
.page-content a,
.section-item a { color: var(--site-primary); }
.page-content img { display: block; margin: 18px 0; border-radius: 4px; }
.page--home .page-body { color: var(--site-muted); }
.block { border-bottom: 1px solid var(--site-border); padding: 70px 0; }
.page--home .block { border-bottom: 0; }
.block h2 { color: var(--site-text); margin: 0 0 14px; font-size: clamp(30px, 4vw, 46px); letter-spacing: 0; line-height: 1.05; }
.block-inner { display: grid; gap: 24px; align-items: center; }
.block-copy > :first-child { margin-top: 0; }
.block-copy > :last-child { margin-bottom: 0; }
.block-media { margin: 0; }
.block-media img { display: block; width: 100%; height: auto; border-radius: 8px; object-fit: cover; box-shadow: var(--site-shadow); }
.block-image-left .block-inner,
.block-image-right .block-inner { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); }
.block-image-right .block-inner { grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); }
.block-image-top .block-inner { grid-template-columns: 1fr; }
.block-image-top .block-media img { max-height: 520px; }
.block-image-full .block-media img { max-height: 520px; }
.block-image-background { position: relative; min-height: 520px; display: grid; align-items: end; overflow: hidden; color: #fff; background: #17202a; border-radius: 8px; }
.block-image-background::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(10,18,28,.76), rgba(10,18,28,.18)), var(--block-bg-image); background-size: cover; background-position: center; }
.block-image-background .block-inner { position: relative; z-index: 1; padding: 64px; }
.block-image-background h2,
.block-image-background .block-content { color: #fff; }
.block-hero {
  position: relative;
  min-height: 646px;
  display: grid;
  align-items: center;
  padding: 78px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(239,246,255,.96) 54%, rgba(232,250,245,.96) 100%);
  box-shadow: 0 28px 78px rgba(16,27,43,.13);
}
.block-hero::after {
  content: "";
  position: absolute;
  right: 48px;
  bottom: 52px;
  width: min(478px, 39vw);
  height: min(338px, 29vw);
  border: 1px solid rgba(16,27,43,.10);
  border-radius: 8px;
  background:
    linear-gradient(180deg, var(--site-deep) 0 48px, transparent 48px),
    linear-gradient(90deg, #eef4fb 0 30%, #ffffff 30% 100%);
  box-shadow: 0 24px 80px rgba(23,105,224,.18);
}
.block-hero::before {
  content: "";
  position: absolute;
  right: 84px;
  bottom: 88px;
  z-index: 1;
  width: min(394px, 33vw);
  height: min(235px, 20vw);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23,105,224,.14) 0 34%, transparent 34%),
    linear-gradient(180deg, rgba(20,168,139,.22) 0 28%, transparent 28%),
    repeating-linear-gradient(180deg, rgba(16,27,43,.11) 0 1px, transparent 1px 42px),
    linear-gradient(135deg, #ffffff, #f7fafc);
  box-shadow: inset 0 0 0 1px rgba(16,27,43,.08);
}
.block-hero .block-inner { position: relative; z-index: 2; max-width: 650px; }
.block-hero.block-image-full::before,
.block-hero.block-image-full::after,
.block-hero.block-image-top::before,
.block-hero.block-image-top::after,
.block-hero.block-image-left::before,
.block-hero.block-image-left::after,
.block-hero.block-image-right::before,
.block-hero.block-image-right::after,
.block-hero.block-image-background::before,
.block-hero.block-image-background::after { display: none; }
.block-hero.block-image-background {
  background-image: linear-gradient(90deg, rgba(10,18,28,.78), rgba(10,18,28,.36)), var(--block-bg-image);
  background-size: cover;
  background-position: center;
}
.block-hero.block-image-full .block-inner,
.block-hero.block-image-top .block-inner,
.block-hero.block-image-left .block-inner,
.block-hero.block-image-right .block-inner,
.block-hero.block-image-background .block-inner { max-width: none; }
.block-hero.block-image-background h2,
.block-hero.block-image-background .block-content { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.28); }
.block-hero.block-image-background .block-copy::before { background: rgba(255,255,255,.9); text-shadow: none; }
.block-hero.block-image-full .block-inner { grid-template-columns: 1fr; }
.block-hero.block-image-top .block-inner { grid-template-columns: 1fr; }
.block-hero.block-image-full .block-media img,
.block-hero.block-image-top .block-media img,
.block-hero.block-image-left .block-media img,
.block-hero.block-image-right .block-media img { max-height: 430px; }
.block-hero .block-copy::before {
  content: "MiraCMS";
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 22px;
  padding: 0 12px;
  border: 1px solid rgba(23,105,224,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--site-primary);
  font-size: 13px;
  font-weight: 900;
}
.block-hero h2 { max-width: 620px; font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: 0; margin-bottom: 20px; }
.block-hero .block-content { max-width: 600px; color: #405168; font-size: 21px; line-height: 1.65; }
.block-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.block-list li {
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 22px;
  color: var(--site-text);
  background: var(--site-surface);
  box-shadow: 0 10px 26px rgba(21,36,56,.06);
}
.block-list li:hover { border-color: rgba(23,105,224,.24); box-shadow: 0 16px 34px rgba(21,36,56,.09); }
.block-features,
.block-services,
.block-testimonials { padding-top: 76px; }
.block-features .block-content,
.block-services .block-content,
.block-testimonials .block-content { max-width: 720px; color: var(--site-muted); font-size: 18px; line-height: 1.7; }
.block-features .block-list li::before,
.block-services .block-list li::before {
  content: "";
  display: block;
  width: 34px;
  height: 6px;
  margin-bottom: 14px;
  border-radius: 99px;
  background: var(--site-accent);
}
.block-services { margin-top: 10px; padding: 54px; border: 1px solid var(--site-border); border-radius: 8px; background: rgba(255,255,255,.72); box-shadow: 0 18px 48px rgba(21,36,56,.07); }
.block-services .block-list li:nth-child(2n)::before { background: var(--site-primary); }
.block-services .block-list li:nth-child(3n)::before { background: var(--site-warm); }
.block-testimonials .block-list li { position: relative; padding-top: 54px; }
.block-testimonials .block-list li::before { content: ""; position: absolute; left: 22px; top: 22px; width: 28px; height: 22px; border-left: 8px solid var(--site-primary); border-radius: 2px; opacity: .22; }
.block-contacts,
.block-cta {
  padding: 52px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--site-deep), #1d3652 62%, #146f66);
  color: #fff;
  box-shadow: 0 24px 70px rgba(16,27,43,.18);
}
.block-contacts h2,
.block-cta h2,
.block-contacts .block-content,
.block-cta .block-content { color: #fff; }
.block-contacts .site-button,
.block-cta .site-button { background: #fff; color: var(--site-text); }
.block-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.block-actions--center { justify-content: center; }
.block-actions--right { justify-content: flex-end; }
.site-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--site-primary); color: #fff; text-decoration: none; font-weight: 900; box-shadow: 0 12px 28px rgba(23,105,224,.22); }
.site-button:hover { background: #0f57bf; color: #fff; }
.site-button--secondary { border: 1px solid var(--site-border); background: var(--site-surface); color: var(--site-text); box-shadow: 0 10px 24px rgba(21,36,56,.08); }
.site-button--secondary:hover { border-color: var(--site-primary); background: var(--site-soft); color: var(--site-text); }
.site-button--link { min-height: 0; padding: 0; border-radius: 0; background: transparent; color: var(--site-primary); box-shadow: none; }
.site-button--link:hover { background: transparent; color: #0f57bf; text-decoration: underline; }
.block-contacts .site-button--link,
.block-cta .site-button--link { background: transparent; color: #fff; }
.site-link { color: var(--site-primary); }
.block-corporate .block-copy { max-width: none; }
.block-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }
.block-card { display: grid; gap: 8px; min-height: 132px; padding: 22px; border: 1px solid var(--site-border); border-radius: 8px; background: var(--site-surface); box-shadow: 0 12px 30px rgba(21,36,56,.07); }
.block-card strong { color: var(--site-text); font-size: 18px; line-height: 1.25; }
.block-card span { color: var(--site-muted); line-height: 1.55; }
.block-card--team::before,
.block-card--certificates::before,
.block-card--case-studies::before { content: ""; width: 34px; height: 6px; border-radius: 99px; background: var(--site-accent); }
.block-card--certificates::before { background: var(--site-primary); }
.block-card--case-studies::before { background: var(--site-warm); }
.block-client-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 26px; }
.block-client { display: grid; min-height: 74px; place-items: center; padding: 14px; border: 1px solid var(--site-border); border-radius: 8px; background: var(--site-surface); color: var(--site-text); font-weight: 900; text-align: center; box-shadow: 0 10px 24px rgba(21,36,56,.05); }
.block-faq-list { display: grid; gap: 10px; margin-top: 26px; }
.block-faq-item { border: 1px solid var(--site-border); border-radius: 8px; background: var(--site-surface); box-shadow: 0 10px 24px rgba(21,36,56,.05); }
.block-faq-item summary { cursor: pointer; padding: 18px 20px; color: var(--site-text); font-weight: 900; }
.block-faq-item p { margin: 0; padding: 0 20px 20px; color: var(--site-muted); line-height: 1.65; }
.page--design-contrast { --site-text: #f4f8fb; --site-muted: #c9d4de; --site-primary: #5db7ff; --site-accent: #41d6b6; --site-warm: #ff9a7a; --site-border: #2f4152; --site-surface: #172331; --site-deep: #060b10; }
.page--design-contrast .block { border-color: #223446; }
.page--design-contrast .block-hero { border-color: #26394a; background: #060b10; color: #f4f8fb; box-shadow: 0 28px 78px rgba(0,0,0,.22); }
.page--design-contrast .block-hero .block-copy::before { border-color: rgba(93,183,255,.34); background: rgba(255,255,255,.08); color: #7cc6ff; }
.page--design-contrast .block-hero .block-content,
.page--design-contrast .block h2 { color: #f4f8fb; }
.page--design-contrast .block-list li,
.page--design-contrast .block-services { border-color: #2f4152; background: #172331; color: #f4f8fb; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.page--design-contrast .block-contacts,
.page--design-contrast .block-cta { background: linear-gradient(135deg, #04090e, #172331 62%, #0f3d40); }
.page--design-contrast .site-button { background: #f4f8fb; color: #07111c; box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.page--design-contrast .site-button:hover { background: #5db7ff; color: #07111c; }
.page--design-soft { --site-primary: #4f7dd9; --site-accent: #74bfa3; --site-warm: #e99c72; --site-border: #dfe9ef; }
.page--design-soft .block-hero { border-color: #edf2f0; background: linear-gradient(135deg, #fffaf3, #eff7ff 55%, #eefaf1); box-shadow: 0 24px 70px rgba(123,142,164,.16); }
.page--design-soft .block-list li,
.page--design-soft .block-services { border-color: #e1e9e8; background: #fffaf3; box-shadow: 0 12px 30px rgba(123,142,164,.09); }
.page--design-soft .block-list li::before { background: #74bfa3; }
.page--design-soft .site-button { background: #4f7dd9; }
.page--design-soft .block-contacts,
.page--design-soft .block-cta { background: linear-gradient(135deg, #4f7dd9, #6bbfa8); }
.page--design-editorial { --site-primary: #111827; --site-accent: #a35b27; --site-warm: #c2410c; --site-border: #d8d1c8; --site-muted: #4f5965; }
.page--design-editorial .block-hero { min-height: 580px; border-color: #d8d1c8; border-radius: 8px; background: #fffdf8; box-shadow: 0 18px 44px rgba(32,24,18,.10); }
.page--design-editorial .block-hero .block-copy::before { border-color: #d8d1c8; background: #fff; color: #a35b27; }
.page--design-editorial .block h2,
.page--design-editorial .block-hero h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.page--design-editorial .block-list li,
.page--design-editorial .block-services { border-color: #d8d1c8; border-radius: 6px; background: #fffdf8; box-shadow: none; }
.page--design-editorial .block-features .block-list li::before,
.page--design-editorial .block-services .block-list li::before { width: 22px; height: 2px; background: #a35b27; }
.page--design-editorial .site-button { border-radius: 4px; background: #111827; box-shadow: none; }
.page--design-editorial .block-contacts,
.page--design-editorial .block-cta { border-radius: 8px; background: #111827; }
.page--design-vibrant { --site-primary: #0ea5e9; --site-accent: #22c55e; --site-warm: #f97316; --site-border: #cde8f5; }
.page--design-vibrant .block-hero { border-color: rgba(255,255,255,.58); background: linear-gradient(135deg, #0b2740, #11646d 46%, #6d2f7e); color: #fff; box-shadow: 0 30px 84px rgba(14,165,233,.22); }
.page--design-vibrant .block-hero .block-content,
.page--design-vibrant .block-hero h2 { color: #fff; }
.page--design-vibrant .block-hero .block-copy::before { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.92); color: #0b65d8; }
.page--design-vibrant .block-list li { border-color: rgba(14,165,233,.22); background: #fff; box-shadow: 0 14px 34px rgba(14,165,233,.11); }
.page--design-vibrant .block-list li::before { background: linear-gradient(90deg, #22c55e, #0ea5e9); }
.page--design-vibrant .block-services { border-color: rgba(14,165,233,.22); background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(238,249,255,.96)); }
.page--design-vibrant .site-button { background: linear-gradient(135deg, #0ea5e9, #22c55e); box-shadow: 0 12px 28px rgba(14,165,233,.22); }
.page--design-vibrant .block-contacts,
.page--design-vibrant .block-cta { background: linear-gradient(135deg, #0b2740, #0ea5e9 58%, #22c55e); }
.page .site-button--secondary { border: 1px solid var(--site-border); background: var(--site-surface); color: var(--site-text); }
.page .site-button--secondary:hover { border-color: var(--site-primary); background: var(--site-soft); color: var(--site-text); }
.page .site-button--link { min-height: 0; padding: 0; border-radius: 0; background: transparent; color: var(--site-primary); box-shadow: none; }
.page .site-button--link:hover { background: transparent; color: var(--site-primary); text-decoration: underline; }
.block-contacts .site-button--link,
.block-cta .site-button--link { color: #fff; }
.page--design-contrast .block-hero.block-image-background,
.page--design-soft .block-hero.block-image-background,
.page--design-editorial .block-hero.block-image-background,
.page--design-vibrant .block-hero.block-image-background {
  background-image: linear-gradient(90deg, rgba(10,18,28,.78), rgba(10,18,28,.36)), var(--block-bg-image);
  background-size: cover;
  background-position: center;
}
.page--home .page-announce {
  max-width: 780px;
  margin: 0 0 28px;
  padding: 20px 24px;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(21,36,56,.06);
}
.error-page { min-height: 62vh; display: grid; align-content: center; justify-items: center; text-align: center; padding: 48px 0; }
.error-page__code { font-size: clamp(86px, 18vw, 160px); font-weight: 900; line-height: .85; color: var(--site-primary); opacity: .16; }
.error-page h1 { margin: 18px 0 10px; font-size: clamp(30px, 5vw, 48px); }
.error-page p { max-width: 560px; margin: 0; color: var(--site-muted); font-size: 18px; line-height: 1.6; }
.error-page__actions { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.page-announce {
  margin: 0 0 24px;
  color: #536273;
  font-size: 18px;
  line-height: 1.6;
}

.page-announce img,
.page-content img {
  max-width: 100%;
  height: auto;
}

.public-shell { display: grid; gap: 28px; }
.public-hero {
  display: grid;
  gap: 16px;
  align-items: end;
  min-height: 260px;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(219,227,238,.9);
  border-radius: var(--site-radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(237,243,250,.96) 58%, rgba(238,252,247,.92)),
    repeating-linear-gradient(90deg, rgba(19,32,51,.035) 0 1px, transparent 1px 72px);
  box-shadow: var(--site-shadow);
}
.public-hero h1 { margin: 0; max-width: 820px; font-size: clamp(36px, 7vw, 66px); line-height: .98; letter-spacing: 0; }
.public-hero__eyebrow,
.blog-card__meta,
.shop-card__category,
.shop-product__category,
.article-meta { margin: 0; color: var(--site-primary); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.public-hero__lead { max-width: 680px; margin: 14px 0 0; color: var(--site-muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; }
.public-card,
.empty-state--public,
.form-panel,
.article-body {
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: 0 12px 30px rgba(21,36,56,.06);
}
.empty-state--public { padding: 34px; color: var(--site-muted); text-align: center; }
.alert { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--site-radius); border: 1px solid var(--site-border); background: var(--site-soft); color: var(--site-text); }
.alert-success { border-color: rgba(20,168,139,.28); background: #ecfbf6; color: #0b6f5d; }
.section-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 4px; }
.section-item { min-height: 150px; padding: 22px; }
.section-item h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.25; }
.section-item h2 a { color: var(--site-text); text-decoration: none; }
.section-item h2 a:hover { color: var(--site-primary); }
.section-item__announce { color: var(--site-muted); font-size: 16px; line-height: 1.6; }
.section-item__announce > :first-child { margin-top: 0; }
.section-item__announce > :last-child { margin-bottom: 0; }
.section-empty { margin: 28px 0 0; color: var(--site-muted); font-size: 18px; }
.blog-list { display: grid; gap: 18px; }
.blog-card {
  display: grid;
  grid-template-columns: minmax(210px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: 0 12px 30px rgba(21,36,56,.06);
}
.blog-card__media { display: grid; min-height: 220px; place-items: center; overflow: hidden; background: #eaf0f7; color: var(--site-muted); text-decoration: none; font-weight: 900; }
.blog-card__media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.blog-card__body { display: grid; align-content: center; gap: 12px; padding: 24px 24px 24px 0; }
.blog-card h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.08; }
.blog-card h2 a { color: var(--site-text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--site-primary); }
.blog-card__excerpt { color: var(--site-muted); font-size: 17px; line-height: 1.6; }
.blog-card__excerpt > :first-child { margin-top: 0; }
.blog-card__excerpt > :last-child { margin-bottom: 0; }
.blog-card__link { justify-self: start; margin-top: 4px; }
.article-shell { display: grid; gap: 26px; }
.public-hero--article { min-height: 220px; }
.article-body { width: min(860px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 46px); color: var(--site-text); }
.article-body p,
.article-body li { color: var(--site-muted); font-size: 18px; line-height: 1.75; }
.article-cover { margin: 0 0 28px; }
.article-cover img { display: block; width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--site-radius); }
.form-panel {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 44px);
  padding: clamp(24px, 5vw, 44px);
}
.form-panel__intro { display: grid; align-content: start; gap: 10px; }
.form-panel__body { display: grid; gap: 16px; }
.form-panel__intro h2,
.shop-order-form h2 { margin: 0; color: var(--site-text); font-size: 24px; line-height: 1.2; }
.form-panel__intro p { margin: 0; color: var(--site-muted); line-height: 1.65; }
.front-form {
  display: grid;
  gap: 16px;
  width: 100%;
}
.front-form label { display: grid; gap: 7px; color: var(--site-muted); font-weight: 800; }
.front-form input,
.front-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-soft);
  padding: 12px 14px;
  background: #fff;
  color: var(--site-text);
  font: inherit;
}
.front-form textarea { min-height: 118px; resize: vertical; }
.front-form input:focus,
.front-form textarea:focus { outline: 3px solid rgba(23,105,224,.16); border-color: var(--site-primary); }
.front-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.front-form .form-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: #c2271d; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  background: var(--site-surface);
  box-shadow: 0 12px 30px rgba(21,36,56,.06);
}
.shop-card__media { display: grid; min-height: 230px; place-items: center; background: #eaf0f7; color: var(--site-muted); text-decoration: none; font-weight: 900; }
.shop-card__media img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.shop-card__body { display: grid; align-content: start; gap: 10px; padding: 18px; }
.shop-card h2 { margin: 0; font-size: 22px; line-height: 1.18; }
.shop-card h2 a { color: var(--site-text); text-decoration: none; }
.shop-card h2 a:hover { color: var(--site-primary); }
.shop-card p { margin: 0; color: var(--site-muted); line-height: 1.55; }
.shop-card strong,
.shop-product__price { color: var(--site-accent); font-size: 22px; }
.shop-card .site-button { justify-self: start; min-height: 42px; margin-top: 6px; padding: 0 16px; }
.shop-product { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 44px); align-items: start; }
.shop-product__media img,
.shop-product__placeholder { width: 100%; border-radius: var(--site-radius); border: 1px solid var(--site-border); background: #eaf0f7; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--site-shadow); }
.shop-product__placeholder { display: grid; place-items: center; color: var(--site-muted); font-weight: 900; }
.shop-product__body { display: grid; gap: 16px; }
.shop-product__body h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); line-height: 1; }
.shop-product__summary { color: var(--site-muted); font-size: 18px; line-height: 1.7; }
.shop-order-form { margin-top: 8px; padding: 24px; border: 1px solid var(--site-border); border-radius: var(--site-radius); background: var(--site-surface); box-shadow: 0 12px 30px rgba(21,36,56,.06); }

@media (max-width: 920px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-panel { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { position: static; min-height: 64px; padding: 0 20px; }
  .site-header--centered { min-height: 82px; padding-top: 12px; padding-bottom: 12px; }
  .site-header--split { width: min(100% - 28px, 1160px); margin-top: 12px; padding: 0 14px; }
  .site-brand span { display: none; }
  .site-brand__logo { height: 36px; max-width: 160px; }
  .site-nav { display: none; }
  .site-header__contact { display: none; }
  .site-header__button { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .site-main { width: min(100% - 28px, 1160px); padding-top: 18px; }
  .site-footer,
  .site-footer--columns,
  .site-footer--dark { width: min(100% - 28px, 1160px); grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .site-footer--centered { align-items: center; }
  .block { padding: 42px 0; }
  .block-hero { min-height: auto; padding: 38px 24px; }
  .block-hero::before,
  .block-hero::after { display: none; }
  .block-hero.block-image-full .block-inner { grid-template-columns: 1fr; }
  .block-hero h2 { font-size: clamp(36px, 12vw, 54px); }
  .block-hero .block-content { font-size: 18px; }
  .block-services { padding: 30px 22px; border-radius: 8px; }
  .block-image-background { min-height: 420px; border-radius: 8px; }
  .block-image-background .block-inner { padding: 34px 24px; }
  .block-contacts,
  .block-cta { padding: 30px 22px; }
  .block-image-left .block-inner,
  .block-image-right .block-inner { grid-template-columns: 1fr; }
  .public-hero { min-height: 220px; }
  .blog-card,
  .shop-product { grid-template-columns: 1fr; }
  .blog-card__body { padding: 0 20px 22px; }
  .blog-card__media,
  .blog-card__media img,
  .shop-card__media,
  .shop-card__media img { min-height: 190px; }
  .shop-grid { grid-template-columns: 1fr; }
}
