/* Шаблон главной: стили отделены от HTML и поведения. */
:root {
  --blue: #0759ef;
  --blue-hover: #0048cb;
  --blue-dark: #0645b8;
  --blue-soft: #e8f0ff;
  --ink: #111a2c;
  --muted: #4b5668;
  --line: #dbe1eb;
  --surface: #f5f7fb;
  --white: #fff;
  --radius: 12px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-space: clamp(56px, 6.3vw, 88px);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--white);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.035em; }
h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.07; font-weight: 750; }
h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.15; font-weight: 700; }
h3 { font-size: 23px; line-height: 1.25; font-weight: 650; }
p { font-size: 16px; line-height: 1.65; }
p + p { margin-top: 16px; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: #c9dcff; color: #091a3c; }
:focus-visible { outline: 3px solid #f0a32b; outline-offset: 5px; }
.container { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.lead { font-size: clamp(19px, 1.65vw, 23px); line-height: 1.5; letter-spacing: -.018em; }
.caption { font-size: 13px; line-height: 1.6; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; background: var(--white); padding: 16px; border: 2px solid var(--blue); }
.skip-link:focus { top: 12px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 16px 24px; border: 1.5px solid transparent; border-radius: 8px; background: var(--blue); color: var(--white); font-size: 16px; line-height: 1.25; font-weight: 600; text-align: center; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.button svg { width: 20px; height: 20px; }
.button:hover { background: var(--blue-hover); transform: translateY(-2px); }
.button-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.button-outline:hover { color: var(--white); }
.button-light { color: var(--blue); background: var(--blue-soft); }
.button-light:hover { background: #d7e5ff; }
.button-white { background: var(--white); color: var(--ink); }
.button-white:hover { background: #e9f0ff; }
.link { display: inline-flex; align-items: center; gap: 16px; color: var(--blue); background: none; border: 0; padding: 6px 0; font-size: 16px; font-weight: 600; line-height: 1.5; text-align: left; }
.link:hover { text-decoration: underline; text-underline-offset: 5px; }
.small-link { font-size: 14px; }
.inline-link { padding: 0; background: none; border: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; line-height: inherit; text-align: left; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading p, .reviews-section > div > p { color: var(--muted); margin-top: 14px; }
.section-aside { color: var(--muted); font-size: 14px; line-height: 1.5; text-align: right; }
.demo-label { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Шапка и первый экран */
.header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid #edf0f5; }
.header-inner { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: inline-flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.brand strong { font-size: 25px; line-height: 1; font-weight: 750; letter-spacing: -.045em; }
.brand > span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.brand-dot { color: var(--blue); }
.desktop-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.desktop-nav a { padding-block: 12px; }
.desktop-nav a:hover, .footer nav a:hover { color: var(--blue); }
.header-contact { display: flex; flex-direction: column; gap: 7px; text-align: right; }
.phone { font-size: 17px; font-weight: 650; white-space: nowrap; }
.header-contact > span { font-size: 13px; color: var(--muted); }
.header-cta { min-height: 46px; padding: 13px 18px; font-size: 14px; white-space: nowrap; }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: center; padding-block: 44px 52px; }
.hero-content { padding-block: 20px; }
.hero .lead { color: var(--muted); margin-top: 26px; }
.hero-description { max-width: 44ch; color: var(--muted); margin-top: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-actions .button:first-child { min-width: 220px; }
.hero-link { margin-top: 18px; font-size: 15px; }
.hero-link svg { width: 18px; height: 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 30px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.hero-picture { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-picture img { width: 100%; height: 100%; max-height: 566px; min-height: 460px; object-fit: cover; border-radius: var(--radius); object-position: 56% 50%; }
.hero-picture figcaption { font-size: 13px; line-height: 1.5; text-align: right; color: var(--muted); margin-top: 9px; }

/* Услуги */
.services-section { background: var(--surface); }
.main-services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { display: flex; gap: 26px; align-items: start; padding: 36px; border-radius: var(--radius); }
.service-icon { width: 64px; height: 64px; stroke-width: 1.4; margin-top: 3px; }
.service-card h3 { font-size: 30px; }
.service-card p { margin-top: 16px; max-width: 35ch; }
.service-card-primary { background: var(--blue); color: var(--white); }
.service-card-light { background: #e3edff; color: #152c5f; }
.service-link { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 600; color: inherit; border: 0; background: none; padding: 6px 0; margin-top: 22px; }
.service-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.service-link svg { width: 20px; height: 20px; }
.service-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 34px; margin-top: 30px; }
.service-shortcuts a { display: inline-flex; gap: 12px; align-items: center; color: var(--blue); font-size: 16px; font-weight: 600; padding: 5px 0; }
.service-shortcuts svg { width: 25px; height: 25px; }
.service-shortcuts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-shortcuts .service-shortcuts-note { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 400; }

/* Портфолио */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 28px; }
.filter { border: 0; border-radius: 6px; padding: 12px 17px; min-height: 44px; background: var(--surface); color: var(--muted); font-size: 14px; }
.filter.is-active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 600; }
.filter:hover { background: #e2ebfb; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 26px; }
.work-card { min-width: 0; }
.work-image { position: relative; display: block; width: 100%; aspect-ratio: 1.16; border: 0; border-radius: var(--radius); padding: 0; overflow: hidden; background: var(--surface); }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.work-image:hover img { transform: scale(1.045); }
.image-action { position: absolute; right: 14px; bottom: 14px; background: var(--white); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; }
.work-info { padding-top: 20px; }
.work-type { font-size: 13px; color: var(--blue-dark); line-height: 1.4; }
.work-info h3 { font-size: 23px; margin: 9px 0 10px; }
.work-info h3 button { border: 0; padding: 0; background: none; text-align: left; font: inherit; letter-spacing: inherit; }
.work-info h3 button:hover { color: var(--blue); }
.work-info p { color: var(--muted); font-size: 15px; }
.work-info .link { margin-top: 12px; }
.portfolio-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 34px; }
.portfolio-navigation { display: none; }

/* О мастере и порядок заказа */
.about-section { padding-top: 12px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.experience-panel { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 44px; min-height: 306px; background: var(--blue-soft); color: var(--blue-dark); border-radius: var(--radius); }
.experience-panel strong { font-size: 110px; line-height: 1; font-weight: 750; letter-spacing: -.07em; }
.experience-panel strong > span { font-size: .68em; vertical-align: 9%; }
.experience-panel p { font-size: 20px; line-height: 1.4; margin-top: 14px; font-weight: 600; letter-spacing: -.02em; }
.experience-panel > svg { width: 90px; height: 90px; stroke-width: 1.1; margin-bottom: 5px; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy .lead { color: var(--ink); }
.about-copy > p:not(.lead) { color: var(--muted); }
.about-copy .link { margin-top: 18px; }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding: 0; margin: 40px 0 0; }
.process-list li { display: flex; align-items: start; gap: 18px; }
.step-number { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 23px; font-weight: 700; }
.process-list h3 { font-size: 20px; margin: 8px 0 14px; letter-spacing: -.025em; }
.process-list p { color: var(--muted); font-size: 15px; }

/* Дополнительные услуги, отзывы и FAQ */
.additional-section { background: var(--surface); }
.additional-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.additional-card { padding: 36px; background: var(--white); border-radius: var(--radius); position: relative; }
.additional-card > svg { width: 38px; height: 38px; color: var(--blue); margin-bottom: 20px; }
.additional-card h3 { font-size: 29px; margin-bottom: 18px; }
.additional-card p { max-width: 47ch; color: var(--muted); }
.additional-card ul { display: grid; gap: 10px; margin-top: 22px; font-size: 14px; line-height: 1.5; }
.additional-card li { display: flex; align-items: center; gap: 10px; }
.additional-card li::before { content: '✓'; color: var(--blue); font-size: 17px; }
.additional-card .link { margin-top: 25px; }
.reviews-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; }
.reviews-empty { display: flex; align-items: start; gap: 22px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); }
.reviews-empty > svg { width: 44px; height: 44px; color: var(--blue); }
.reviews-empty h3 { font-size: 22px; margin-bottom: 12px; }
.reviews-empty p { color: var(--muted); font-size: 15px; }
.reviews-empty .caption { display: block; margin-top: 12px; }
.reviews-section.reviews-filled { display: block; }
.reviews-filled .section-heading { align-items: center; }
.review-demo-note { font-size: 13px; color: var(--muted); max-width: 220px; line-height: 1.5; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); min-width: 0; }
.review-author { display: flex; align-items: center; gap: 13px; }
.review-avatar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 50%; font-size: 20px; font-weight: 600; }
.review-author h3 { font-size: 19px; letter-spacing: -.02em; }
.review-author div > span { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.review-card .review-example-label { margin-top: 20px; font-size: 13px; color: var(--blue-dark); }
.review-card blockquote { font-size: 15px; line-height: 1.65; margin: 12px 0 24px; color: var(--ink); }
.review-card > img { margin-top: auto; width: 100%; height: 160px; border-radius: 8px; object-fit: cover; }
.business-details { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.business-details + .footer-bottom { margin-top: 24px; }
.max-phone { font-size: 26px !important; font-weight: 600; color: var(--ink) !important; }
.max-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
#max-copy-status { margin-top: 18px; font-size: 14px; }
@media (max-width: 900px) { .reviews-grid { gap: 16px; } .review-card { padding: 22px; } }
@media (max-width: 650px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 18px; }
  .review-card { padding: 25px; }
  .review-card > img { height: 200px; }
  .review-demo-note { max-width: none; }
  .max-actions { flex-direction: column; }
}
.faq-section { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-intro { position: sticky; top: 144px; }
.faq-intro p { margin-top: 20px; color: var(--muted); max-width: 31ch; }
.faq-intro .link { margin-top: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { list-style: none; position: relative; padding-right: 42px; font-size: 18px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: -4px; color: var(--blue); font-size: 28px; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin-top: 17px; color: var(--muted); font-size: 15px; }

/* Форма */
.request-section { padding-bottom: 44px; }
.request-panel { background: var(--blue); color: var(--white); border-radius: 16px; padding: 52px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.request-copy { position: sticky; top: 140px; }
.request-copy h2 { font-size: 40px; margin-bottom: 26px; }
.request-copy .lead { font-size: 25px; }
.request-copy > p:not(.lead) { margin-top: 20px; max-width: 35ch; color: #e6efff; }
.request-phone { display: block; font-size: 26px; font-weight: 650; letter-spacing: -.03em; white-space: nowrap; margin-top: 35px; }
.request-copy .caption { display: block; color: #d8e6ff; margin-top: 8px; }
.request-form { display: grid; gap: 20px; }
.request-form label { display: flex; flex-wrap: wrap; gap: 9px 5px; font-size: 14px; line-height: 1.4; }
.request-form label > input:not([type=checkbox]):not([type=file]), .request-form select, .request-form textarea { flex-basis: 100%; width: 100%; min-width: 0; border: 2px solid transparent; border-radius: 7px; padding: 14px 15px; min-height: 50px; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.4; }
.request-form input::placeholder, .request-form textarea::placeholder { color: #727c8e; opacity: 1; }
.request-form textarea { resize: vertical; min-height: 102px; }
.request-form select { appearance: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.request-form .optional { font-size: 13px; color: #e6efff; }
.request-form input:focus-visible, .request-form textarea:focus-visible, .request-form select:focus-visible { outline: 3px solid #ffcb66; outline-offset: 2px; }
.request-form [aria-invalid=true] { border-color: #ffce7d !important; }
.field-error { display: block; flex-basis: 100%; color: #fff0c9; font-size: 13px; line-height: 1.5; }
.upload-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.request-form .upload-button { display: inline-flex; align-items: center; position: relative; cursor: pointer; padding: 10px 14px; border: 1px solid #b8d1ff; border-radius: 6px; font-weight: 600; min-height: 44px; overflow: hidden; }
.upload-button svg { width: 19px; height: 19px; }
.upload-button input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.upload-button:focus-within { outline: 3px solid #ffcb66; outline-offset: 3px; }
.upload-button:hover { background: #ffffff17; }
.upload-hint { font-size: 13px; line-height: 1.5; color: #e6efff; }
.photo-preview { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-preview:empty { display: none; }
.photo-thumb { position: relative; }
.photo-thumb img { width: 66px; height: 66px; border-radius: 5px; object-fit: cover; }
.photo-thumb button { position: absolute; top: -6px; right: -5px; border: 1px solid var(--blue); width: 25px; height: 25px; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 18px; padding: 0; }
.request-form .consent { display: flex; flex-wrap: nowrap; align-items: start; gap: 10px; font-size: 13px; line-height: 1.5; color: #e6efff; }
.consent input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #12294d; }
.submit-button { width: 100%; justify-content: space-between; }
.form-demo-note { margin: -7px 0 0; font-size: 13px; line-height: 1.5; color: #d8e6ff; text-align: center; }
.form-status { background: #fff; color: #163d76; padding: 16px; border-radius: 7px; margin: 0; font-size: 14px; line-height: 1.6; }

/* Контакты и подвал */
.contacts-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: start; padding-top: 32px; }
.contacts-section h2 { font-size: 33px; margin-bottom: 20px; }
.contacts-section > div > p { color: var(--muted); }
.contacts-section .caption { margin-top: 16px; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 8px; }
.contacts-grid > div { display: flex; align-items: start; flex-direction: column; gap: 13px; min-width: 0; }
.contact-label { font-size: 13px; color: var(--muted); }
.contact-value { font-size: 22px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.contact-value:hover { color: var(--blue); }
.contact-value.email { font-size: 19px; }
.contacts-grid .caption { margin: 0; }
.contacts-grid .small-link { font-size: 13px; }
.footer { background: var(--surface); padding-block: 46px 22px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr .6fr; gap: 40px; }
.footer .brand strong { font-size: 25px; }
.footer nav { display: flex; flex-direction: column; gap: 15px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 46px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-demo { margin-top: 22px; font-size: 13px; color: var(--muted); }
.mobile-actions { display: none; }

/* Диалоги */
.dialog { border: 0; background: var(--white); color: var(--ink); width: min(660px, calc(100% - 32px)); max-height: 90svh; padding: 42px; border-radius: 14px; overscroll-behavior: contain; }
.dialog::backdrop { background: #0c1b36a6; }
.dialog-close { display: grid; place-items: center; position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; background: var(--surface); border: 0; border-radius: 50%; font-size: 28px; line-height: 1; }
.dialog h2 { margin: 10px 25px 22px 0; font-size: 32px; }
.dialog p { color: var(--muted); }
.dialog ul { display: grid; gap: 12px; list-style: disc; padding-left: 20px; font-size: 15px; line-height: 1.6; margin-top: 22px; color: var(--muted); }
.dialog .dialog-request { margin-top: 28px; }
.dialog .caption { font-size: 13px; margin-top: 18px; }
.work-dialog { width: min(940px, calc(100% - 32px)); padding: 0; overflow: auto; }
.work-dialog-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 490px; }
.work-dialog-grid > img { width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.work-dialog-copy { padding: 48px 35px 32px; }
.work-dialog-copy .demo-label { color: var(--blue); }
.work-dialog-copy h2 { font-size: 30px; }
.work-dialog-copy .button { font-size: 14px; padding-inline: 18px; }
.gallery-controls { display: flex; align-items: center; gap: 18px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.gallery-controls button { width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); border-radius: 50%; font-size: 22px; }
.gallery-controls button:hover { background: var(--blue-soft); color: var(--blue); }

@media (max-width: 1200px) {
  .header-inner { gap: 22px; }
  .desktop-nav { gap: 20px; }
  .header-cta { display: none; }
  .hero { gap: 32px; }
  .service-card { padding: 30px; gap: 22px; }
  .service-icon { width: 48px; height: 48px; }
  .service-shortcuts .service-shortcuts-note { margin-left: 0; }
  .request-panel { padding: 40px; gap: 44px; }
  .about-grid, .faq-grid { gap: 45px; }
  .experience-panel { padding: 32px; }
  .experience-panel > svg { width: 70px; height: 70px; }
  .process-list { gap: 22px; }
  .process-list li { gap: 13px; }
  .contacts-section { grid-template-columns: .8fr 1.2fr; gap: 35px; }
  .contact-value { font-size: 20px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 90px; }
  .header-inner { min-height: 88px; }
  .brand strong { font-size: 23px; }
  .desktop-nav { gap: 16px; font-size: 13px; }
  .phone { font-size: 15px; }
  .header-contact > span { font-size: 13px; }
  .hero { gap: 25px; padding-top: 30px; }
  h1 { font-size: 43px; }
  .hero-picture img { min-height: 465px; }
  .hero .lead { font-size: 19px; }
  .hero-description { font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { min-height: 48px; font-size: 14px; padding: 14px 18px; }
  .hero-actions .button:first-child { min-width: 0; }
  .hero-actions .button-light { padding-inline: 15px; }
  .hero-facts { gap: 10px 15px; }
  .service-card { padding: 27px; flex-direction: column; gap: 20px; }
  .service-card h3 { font-size: 28px; }
  .service-card p { font-size: 15px; }
  .portfolio-grid { gap: 30px 19px; }
  .work-info h3 { font-size: 21px; }
  .work-info p { font-size: 14px; }
  .work-image { aspect-ratio: .9; }
  .about-grid { gap: 32px; grid-template-columns: .85fr 1.15fr; }
  .experience-panel { min-height: 280px; padding: 25px; position: relative; }
  .experience-panel strong { font-size: 90px; }
  .experience-panel > svg { position: absolute; right: 22px; top: 28px; width: 45px; height: 45px; }
  .experience-panel p { font-size: 18px; }
  .about-copy h2 { font-size: 31px; }
  .about-copy .lead { font-size: 19px; }
  .about-copy > p:not(.lead) { font-size: 15px; }
  .process-list { gap: 24px; }
  .process-list li { flex-direction: column; gap: 12px; }
  .process-list h3 { font-size: 21px; }
  .additional-card { padding: 28px; }
  .additional-card h3 { font-size: 27px; }
  .reviews-section { grid-template-columns: .8fr 1.2fr; gap: 30px; }
  .reviews-empty { padding: 25px; gap: 15px; }
  .reviews-empty > svg { width: 32px; height: 32px; }
  .reviews-empty h3 { font-size: 21px; }
  .faq-grid { gap: 35px; grid-template-columns: .7fr 1.3fr; }
  .request-panel { gap: 32px; padding: 32px; grid-template-columns: .7fr 1.3fr; }
  .request-copy h2 { font-size: 31px; }
  .request-copy .lead { font-size: 21px; }
  .request-phone { font-size: 21px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; }
  .contacts-section { grid-template-columns: 1fr; gap: 30px; }
  .contacts-grid { gap: 40px; }
  .footer-main { grid-template-columns: 1.3fr 1fr .6fr; gap: 24px; }
  .footer .brand strong { font-size: 23px; }
}
@media (max-width: 650px) {
  :root { --gutter: 20px; --section-space: 52px; }
  html { scroll-padding-top: 87px; }
  .header-inner { min-height: 82px; gap: 12px; }
  .brand { gap: 6px; }
  .brand strong { font-size: 22px; }
  .brand > span { font-size: 13px; }
  .desktop-nav, .header-contact { display: none; }
  .menu-toggle { border: 0; background: var(--surface); display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 10px 12px; min-height: 44px; border-radius: 6px; font-size: 13px; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .mobile-menu { padding-block: 15px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; max-height: calc(100svh - 90px); overflow: auto; }
  .mobile-menu > a:not(.button) { padding: 12px 0; font-size: 16px; }
  .mobile-menu .button { grid-column: 1 / -1; margin-top: 10px; }
  .hero { display: flex; flex-direction: column; gap: 28px; padding-block: 36px 38px; }
  .hero-content { width: 100%; padding: 0; }
  h1 { font-size: clamp(35px, 9.5vw, 52px); letter-spacing: -.045em; }
  .hero .lead { font-size: 20px; margin-top: 22px; }
  .hero-description { margin-top: 15px; font-size: 15px; }
  .desktop-break { display: none; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; margin-top: 25px; }
  .hero-actions .button { font-size: 14px; padding-inline: 16px; gap: 10px; min-height: 51px; }
  .hero-actions .button:first-child { flex: 1; }
  .hero-actions .button-light { padding-inline: 13px; }
  .hero-actions .button-light svg { width: 17px; height: 17px; }
  .hero-link { font-size: 14px; margin-top: 14px; }
  .hero-facts { font-size: 13px; margin-top: 23px; gap: 9px 15px; }
  .hero-picture { width: 100%; }
  .hero-picture img { width: 100%; aspect-ratio: 1.33; height: auto; min-height: 0; max-height: 360px; object-position: 50% 55%; border-radius: 10px; }
  .hero-picture figcaption { font-size: 13px; margin-top: 7px; }
  h2 { font-size: 31px; }
  h3 { font-size: 23px; }
  .section-heading { margin-bottom: 27px; gap: 16px; align-items: start; flex-direction: column; }
  .section-heading p { font-size: 15px; margin-top: 12px; }
  .section-aside { display: none; }
  .main-services { grid-template-columns: 1fr; gap: 16px; }
  .service-card { flex-direction: row; padding: 27px 23px; gap: 18px; }
  .service-icon { width: 42px; height: 42px; }
  .service-card h3 { font-size: 25px; }
  .service-card p { font-size: 14px; margin-top: 14px; }
  .service-link { margin-top: 18px; font-size: 13px; gap: 10px; }
  .service-link svg { width: 18px; height: 18px; }
  .service-shortcuts { margin-top: 25px; gap: 18px; flex-direction: column; align-items: start; }
  .service-shortcuts a { font-size: 16px; }
  .service-shortcuts .service-shortcuts-note { margin-top: 5px; font-size: 13px; }
  .portfolio-section .section-heading { gap: 14px; }
  .portfolio-section .section-heading .demo-label { margin-top: 0; font-size: 13px; }
  .portfolio-filters { gap: 7px; flex-wrap: wrap; overflow-x: visible; padding: 3px 2px 6px; margin: -3px -2px 22px; scrollbar-width: thin; }
  .filter { flex-shrink: 0; font-size: 13px; min-height: 42px; padding-inline: 14px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-image { aspect-ratio: 1.25; }
  .work-info { padding-top: 18px; }
  .work-info h3 { font-size: 25px; }
  .work-info p { font-size: 15px; }
  .work-info .small-link { margin-top: 8px; }
  .portfolio-bottom { flex-direction: column; align-items: start; gap: 25px; margin-top: 30px; }
  .portfolio-bottom .button { width: 100%; }
  .about-section { padding-top: 4px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .experience-panel { min-height: 220px; padding: 32px; align-items: end; }
  .experience-panel strong { font-size: 100px; }
  .experience-panel p { font-size: 19px; }
  .experience-panel > svg { position: static; width: 80px; height: 80px; }
  .about-copy h2 { font-size: 31px; }
  .about-copy .lead { font-size: 20px; }
  .about-copy > p:not(.lead) { font-size: 16px; }
  .process-list { grid-template-columns: 1fr; gap: 29px; margin-top: 30px; }
  .process-list li { flex-direction: row; gap: 17px; }
  .step-number { width: 40px; height: 40px; font-size: 21px; }
  .process-list h3 { margin-top: 6px; margin-bottom: 10px; font-size: 22px; }
  .process-list p { font-size: 15px; }
  .additional-grid { grid-template-columns: 1fr; gap: 18px; }
  .additional-card { padding: 28px 24px; }
  .additional-card h3 { font-size: 28px; }
  .additional-card p { font-size: 15px; }
  .additional-card .link { font-size: 15px; }
  .reviews-section { grid-template-columns: 1fr; gap: 26px; }
  .reviews-empty { padding: 24px; }
  .reviews-empty > svg { width: 31px; height: 31px; }
  .reviews-empty h3 { font-size: 22px; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-intro { position: static; }
  .faq-intro p { margin-top: 15px; max-width: none; font-size: 15px; }
  .faq-intro .link { margin-top: 15px; }
  .faq-list details { padding-block: 21px; }
  .faq-list summary { font-size: 17px; padding-right: 32px; }
  .faq-list details p { font-size: 15px; }
  .request-section { padding-bottom: 35px; }
  .request-panel { grid-template-columns: 1fr; padding: 30px 23px; gap: 32px; border-radius: 12px; }
  .request-copy { position: static; }
  .request-copy h2 { font-size: 31px; margin-bottom: 20px; }
  .request-copy .lead { font-size: 22px; }
  .request-copy > p:not(.lead) { font-size: 15px; margin-top: 15px; }
  .request-phone { font-size: 25px; margin-top: 24px; }
  .request-copy .caption { font-size: 13px; }
  .form-row { grid-template-columns: 1fr; gap: 19px; }
  .request-form { gap: 19px; }
  .request-form label { font-size: 13px; }
  .request-form .optional { font-size: 13px; }
  .request-form label > input:not([type=checkbox]):not([type=file]), .request-form select, .request-form textarea { font-size: 16px; padding: 12px; }
  .upload-row { gap: 12px; }
  .upload-hint { font-size: 13px; }
  .request-form .consent { font-size: 13px; }
  .submit-button { font-size: 15px; padding-inline: 18px; gap: 12px; }
  .contacts-section { padding-top: 20px; gap: 28px; }
  .contacts-section h2 { font-size: 31px; }
  .contacts-section > div > p { font-size: 15px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 26px; padding: 0; }
  .contacts-grid > div { gap: 10px; }
  .contact-value { font-size: 26px; }
  .contact-value.email { font-size: 22px; }
  .footer { padding-top: 36px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer .brand { grid-column: 1 / -1; }
  .footer .brand strong { font-size: 25px; }
  .footer .brand > span { font-size: 13px; }
  .footer nav { font-size: 13px; gap: 17px; }
  .footer-bottom { margin-top: 34px; gap: 18px; font-size: 13px; }
  .footer-bottom > .inline-link { order: 3; flex-basis: 100%; }
  .footer-demo { font-size: 13px; margin-top: 20px; }
  .mobile-actions { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10px; position: fixed; bottom: 0; inset-inline: 0; z-index: 15; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-actions a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--blue-soft); color: var(--blue-dark); border-radius: 7px; font-size: 13px; font-weight: 600; }
  .mobile-actions a:last-child { background: var(--blue); color: var(--white); }
  .mobile-actions svg { width: 18px; height: 18px; }
  .dialog { padding: 35px 24px; max-height: 88svh; width: calc(100% - 24px); }
  .dialog h2 { font-size: 28px; margin-bottom: 20px; }
  .dialog p { font-size: 15px; }
  .dialog .button { font-size: 14px; padding-inline: 18px; }
  .work-dialog { padding: 0; }
  .work-dialog-grid { grid-template-columns: 1fr; }
  .work-dialog-grid > img { height: 270px; }
  .work-dialog-copy { padding: 28px 25px; }
  .work-dialog-copy h2 { font-size: 28px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand strong { font-size: 20px; }
  .brand > span { font-size: 13px; }
  .menu-toggle { padding-inline: 10px; gap: 5px; }
  h1 { font-size: 34px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { font-size: 13px; padding-inline: 12px; gap: 8px; }
  .hero-actions .button-light svg { display: none; }
  .hero-facts { gap: 9px 11px; font-size: 13px; }
  .service-card { padding: 24px 20px; gap: 13px; }
  .service-card h3 { font-size: 23px; }
  .service-icon { width: 35px; height: 35px; }
  .request-panel { padding-inline: 20px; }
  .request-copy h2 { font-size: 28px; }
  .request-phone { font-size: 23px; }
  .experience-panel { padding: 26px; }
  .experience-panel > svg { width: 65px; height: 65px; }
}
/* На телефоне одна работа занимает ширину ленты без обрезанных соседних текстов. */
@media (max-width: 650px) {
  .portfolio-section .portfolio-grid {
    position: relative;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .portfolio-grid::-webkit-scrollbar { display: none; }
  .portfolio-section .work-card {
    display: flex;
    flex-direction: column;
    height: min(560px, 80svh, calc(100svh - 250px));
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .portfolio-section .work-image {
    width: 100%;
    flex: 1 1 0;
    min-height: 80px;
    aspect-ratio: auto;
  }
  .portfolio-section .work-info { flex: 0 0 auto; padding-top: 17px; }
  .portfolio-section .work-info h3 { font-size: 23px; margin-top: 8px; }
  .portfolio-section .work-info p { font-size: 15px; }
  .portfolio-section .work-info .link { min-height: 42px; margin-top: 8px; }
  .portfolio-navigation { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
  .slide-button { width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 23px; line-height: 1; }
  .slide-button:hover { background: #d7e5ff; }
  .slide-button:disabled { background: var(--surface); color: #9da7b8; }
  .portfolio-pagination { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
  .slide-progress { display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--blue-soft); overflow: hidden; }
  .slide-progress > span { display: block; height: 100%; background: var(--blue); border-radius: inherit; transition: width .2s ease; }
  .mobile-actions:not([hidden]) { animation: mobile-actions-in .2s ease-out; }
}
@keyframes mobile-actions-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* Основной текст читается одинаково на всех ширинах; подписи остаются компактными. */
.service-card p, .work-info p, .about-copy > p:not(.lead), .process-list p,
.additional-card p, .reviews-empty p, .faq-list details p, .request-copy > p:not(.lead),
.contacts-section > div > p:not(.caption) { font-size: 16px; }
.faq-list details p { max-width: 64ch; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .header { position: static; }
  .mobile-actions, .menu-toggle, .request-form, .portfolio-filters, .footer-demo { display: none !important; }
  .section { padding-block: 25px; }
  .request-panel { color: var(--ink); background: var(--surface); }
  .request-copy { position: static; }
}
