/* Strateg: readable type, generous spacing, one brand font across the interface. */
:root { --dim: #a0aaa9; }
html[data-theme=light] { --dim: #5c6b65; }
body { font-size: 18px; line-height: 1.7; }
code { font-family: Geologica, Arial, sans-serif; font-size: .9em; }

.header-inner { height: 104px; gap: 28px; }
.brand { width: 144px; }
.tool-label, .header nav { font-size: 16px; }
.icon-button { width: 44px; height: 44px; }
.hero { padding-block: 88px 72px; }
.eyebrow, .hero .eyebrow { font-size: 14px; letter-spacing: .045em; }
.hero .eyebrow { margin-bottom: 28px; }
h1 { font-size: clamp(44px, 4.5vw, 64px); white-space: normal; line-height: 1.15; }
h1>span:first-child {
  display: inline-block;
  background-image: linear-gradient(110deg, #dc5bf2 0%, #2ae8c6 50%, #dc5bf2 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: strateg-title-gradient 5s linear infinite;
}
@keyframes strateg-title-gradient {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
.hero-description { font-size: 20px; line-height: 1.75; margin-top: 28px; }
.scheme-label { font-size: 14px; line-height: 1.5; }
.scheme-sources { font-size: 14px; gap: 10px; }
.scheme-sources>span { font-size: 14px; padding: 10px; }
.scheme-destination { width: 280px; font-size: 16px; padding: 16px; }

.workspace-top { padding: 30px 40px; gap: 28px; }
.workspace-top h2 { font-size: 26px; }
.workspace-label { font-size: 14px; }
.text-button { font-size: 16px; min-height: 44px; white-space: normal; text-align: left; }
.workspace-grid { grid-template-columns: minmax(0, 1fr) 420px; }
.builder { padding: 40px; }
.form-step+.form-step { margin-top: 48px; }
.step-heading { gap: 16px; margin-bottom: 28px; }
.step-heading h3 { font-size: 24px; line-height: 1.35; }
.step-number { width: 34px; height: 34px; font-size: 14px; }
.required-caption { font-size: 14px; }
.field-label { font-size: 16px; line-height: 1.5; margin-bottom: 12px; flex-wrap: wrap; gap: 4px 6px; }
.field-label code { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 14px; }
input[type=text] { height: 56px; font-size: 18px; padding-inline: 16px; }
.url-input input { padding-left: 48px; }
.url-input>.icon { top: 18px; left: 17px; width: 20px; height: 20px; }
.field-hint, .preset-hint { font-size: 15px; line-height: 1.65; margin-top: 12px; }
.field-error { font-size: 16px; }
.presets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.preset { font-size: 16px; min-height: 60px; padding: 15px 16px; gap: 10px; line-height: 1.45; }
.preset-symbol { font-size: 20px; width: 22px; line-height: 24px; }
.preset .vk { font-size: 17px; }
.fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 28px; }
.field-wide { grid-column: 1/-1; }
.optional-heading { padding-top: 32px; margin-top: 8px; font-size: 17px; gap: 12px; }
.optional-heading>span:last-child { font-size: 14px; }
.settings { margin-top: 36px; padding-top: 28px; gap: 22px; }
.checkbox { font-size: 16px; gap: 10px; }
.checkbox input { width: 20px; height: 20px; flex-shrink: 0; }
.macro-bar { padding: 18px; gap: 12px; margin-top: 28px; font-size: 15px; }
.macro-bar button { font-size: 15px; min-height: 40px; }
.macro-bar p { font-size: 14px; }

.result-column { padding: 40px 32px; }
.result-heading { margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.result-heading .eyebrow, .result-status { font-size: 14px; }
.result-sticky h3 { font-size: 30px; line-height: 1.3; }
.result-description { font-size: 16px; line-height: 1.75; margin-top: 20px; min-height: 0; }
.link-preview { font-family: Geologica, Arial, sans-serif; font-size: 16px; line-height: 1.8; padding: 22px 20px; margin-top: 28px; min-height: 220px; max-height: 440px; }
.result-meta { font-family: Geologica, Arial, sans-serif; font-size: 14px; margin-top: 16px; flex-wrap: wrap; }
.button { font-size: 16px; min-height: 56px; padding: 16px 20px; }
.copy-button { margin-top: 28px; }
.secondary-actions { gap: 12px; margin-top: 14px; }
.secondary-actions .button { font-size: 16px; min-height: 52px; padding: 14px 10px; }
.result-note { font-size: 14px; line-height: 1.6; margin-top: 18px; }
.privacy-note { font-size: 14px; line-height: 1.7; margin-top: 30px; padding-top: 28px; gap: 12px; }
.privacy-note br { display: none; }
.privacy-note .icon { width: 20px; height: 20px; }
.result-tip { margin-top: 32px; padding-left: 18px; }
.tip-label { font-size: 14px; }
.result-tip p { font-size: 16px; line-height: 1.75; margin-top: 12px; }
.under-builder { font-size: 15px; gap: 28px; padding-top: 24px; flex-wrap: wrap; }

h2 { font-size: 40px; line-height: 1.25; }
.section-top { margin-bottom: 36px; gap: 28px; }
.section-top .eyebrow { margin-bottom: 18px; }
.history-section { padding-block: 104px; }
.counter { min-width: 32px; height: 32px; font-size: 16px; }
.history-actions { gap: 28px; }
.history-empty { padding: 44px 28px; }
.history-empty>p { font-size: 18px; }
.history-empty>span { font-size: 16px; margin-top: 12px; }
.history-empty>.icon { width: 26px; height: 26px; margin-bottom: 20px; }
.history-row { padding-block: 26px; gap: 24px; }
.history-title strong, .history-controls .text-button { font-size: 16px; }
.history-title>span, .history-time, .history-url { font-family: Geologica, Arial, sans-serif; font-size: 14px; }
.history-url { margin-top: 12px; }
.history-controls { gap: 18px; }
.history-controls .icon-button { width: 44px; height: 44px; }
.clear-confirm { font-size: 16px; padding-block: 24px; gap: 24px; }

.guide-section { padding-block: 96px; }
.guide-top { margin-top: 28px; gap: 64px; }
.guide-top h2 { font-size: 44px; }
.guide-top>p { max-width: 500px; font-size: 18px; line-height: 1.75; }
.guide-steps { gap: 40px; margin-top: 56px; }
.guide-steps>li { padding-top: 28px; }
.guide-steps>li>span { font-size: 14px; }
.guide-steps h3 { font-size: 24px; margin-top: 22px; }
.guide-steps p { font-size: 17px; line-height: 1.75; margin-top: 16px; }
.reference-section { padding-block: 104px; }
.reference-caption { font-size: 16px; }
.reference-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 44px; }
.reference-row { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; padding-block: 26px; }
.reference-row>code { font-size: 16px; }
.reference-row h3 { font-size: 18px; }
.reference-row p { font-size: 16px; line-height: 1.7; margin-top: 8px; }
.reference-row>span { display: none; }
summary, .faq summary { font-size: 18px; line-height: 1.5; padding-block: 28px; }
.faq details p { font-size: 17px; line-height: 1.75; margin-bottom: 24px; }
.help-section { padding: 56px; gap: 48px; margin-bottom: 104px; }
.help-section h2 { font-size: 40px; margin-top: 24px; }
.help-section p:not(.eyebrow) { font-size: 18px; line-height: 1.75; margin-top: 24px; }
.help-section .button { min-width: 250px; }
.footer-top { padding-block: 40px; gap: 40px; flex-wrap: wrap; }
.footer-top>.brand { width: 136px; }
.footer-top p, .footer-top>a:not(.brand) { font-size: 16px; }
.footer-bottom { font-size: 14px; line-height: 1.7; padding-block: 28px 32px; }
.toast { font-size: 16px; padding: 18px 24px; }
.copy-fallback { font-family: Geologica, Arial, sans-serif; font-size: 16px; }

@media(min-width:1280px) {
  .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width:1100px) {
  .header nav { display: none; }
  .header .icon-button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-block: 72px 60px; }
  .hero-scheme { display: none; }
  .workspace-grid { grid-template-columns: 1fr; }
  .result-column { border-left: 0; border-top: 1px solid var(--line); padding: 40px; }
  .result-sticky { position: static; }
  .result-tip { display: none; }
  .result-sticky h3 { font-size: 32px; }
  .settings { flex-direction: row; }
  .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .guide-top>p { max-width: 680px; }
  .guide-steps { grid-template-columns: 1fr; gap: 36px; }
  .guide-steps p { max-width: 680px; }
  .reference-grid { grid-template-columns: 1fr; gap: 48px; }
  .help-section { flex-direction: column; align-items: flex-start; }
}
@media(max-width:719px) {
  .container { width: calc(100% - 40px); }
  .header-inner { height: 92px; gap: 16px; }
  .header .brand { width: 110px; }
  .header-divider { display: none; }
  .tool-label { font-size: 14px; line-height: 1.4; flex: 1; }
  .header .icon-button { width: 44px; height: 44px; }
  .hero { padding-block: 52px 44px; }
  .hero .eyebrow { font-size: 14px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(36px, 8.5vw, 48px); line-height: 1.2; }
  .hero-description { font-size: 18px; margin-top: 24px; line-height: 1.7; }
  .workspace-top { padding: 24px; gap: 16px; flex-wrap: wrap; }
  .workspace-top h2 { font-size: 24px; }
  .reset-button { font-size: 16px; }
  .builder { padding: 32px 24px; }
  .step-heading { gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
  .step-heading h3 { font-size: 22px; }
  .required-caption { display: none; }
  .form-step+.form-step { margin-top: 40px; }
  .presets { grid-template-columns: 1fr 1fr; gap: 12px; }
  .preset { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; font-size: 16px; padding: 16px; min-height: 96px; }
  .fields-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-wide { grid-column: auto; }
  .field-label { font-size: 17px; }
  .field-label code { font-size: 14px; }
  .field-hint, .preset-hint { font-size: 15px; line-height: 1.65; }
  .optional-heading { flex-wrap: wrap; padding-top: 28px; font-size: 17px; }
  .settings { flex-direction: column; gap: 24px; }
  .checkbox { font-size: 16px; }
  .result-column { padding: 32px 24px; }
  .result-sticky h3 { font-size: 30px; }
  .result-description { font-size: 17px; line-height: 1.7; }
  .result-meta { font-size: 14px; }
  .link-preview { font-size: 16px; min-height: 220px; }
  .secondary-actions { grid-template-columns: 1fr 1fr; }
  .secondary-actions .button { font-size: 16px; padding-inline: 8px; gap: 6px; }
  .under-builder { gap: 16px 24px; font-size: 15px; padding-top: 24px; line-height: 1.6; }
  h2 { font-size: 34px; }
  .section-top { margin-bottom: 28px; gap: 24px; }
  .history-section { padding-block: 72px; }
  .history-actions, .history-actions .text-button { font-size: 16px; gap: 24px; }
  .history-empty { padding: 36px 24px; }
  .history-empty>p { font-size: 18px; }
  .history-empty>span { font-size: 16px; }
  .history-row { grid-template-columns: 1fr; gap: 16px; padding-block: 28px; }
  .history-title strong { font-size: 18px; }
  .history-title>span, .history-url { font-size: 14px; }
  .history-controls { max-width: none; justify-content: flex-start; gap: 24px; }
  .history-controls .history-reuse { display: inline-flex; }
  .guide-section { padding-block: 72px; }
  .guide-top h2 { font-size: 36px; }
  .guide-top>p { font-size: 18px; }
  .guide-steps { margin-top: 40px; gap: 36px; }
  .guide-steps h3 { font-size: 24px; }
  .guide-steps p { font-size: 17px; }
  .guide-steps>li>span { font-size: 14px; }
  .reference-section { padding-block: 72px; }
  .reference-grid { margin-top: 36px; gap: 40px; }
  .reference-row { grid-template-columns: 1fr; gap: 14px; padding-block: 28px; }
  .reference-row>code { font-size: 17px; }
  .reference-row h3 { font-size: 20px; }
  .reference-row p { font-size: 17px; }
  .faq summary { font-size: 18px; padding-block: 26px; }
  .faq details p { font-size: 17px; }
  .help-section { padding: 36px 28px; margin-bottom: 72px; gap: 32px; }
  .help-section .eyebrow { font-size: 14px; }
  .help-section h2 { font-size: 34px; }
  .help-section p:not(.eyebrow) { font-size: 18px; }
  .help-section .button { font-size: 16px; min-width: 0; width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  .footer-top>.brand { width: 136px; }
  .footer-top p, .footer-top>a:not(.brand) { font-size: 16px; }
  .footer-bottom { font-size: 14px; gap: 16px; padding-block: 24px 32px; }
  .toast { font-size: 16px; bottom: 18px; line-height: 1.5; }
}
@media(max-width:379px) {
  .container { width: calc(100% - 28px); }
  .builder, .result-column { padding-inline: 20px; }
  .workspace-top { padding-inline: 20px; }
  .workspace-top h2 { font-size: 22px; }
  .preset { padding: 14px; }
  .help-section { padding: 32px 22px; }
}
@media(prefers-reduced-motion:reduce) {
  h1>span:first-child { animation: none; background-position: 50% 50%; }
}
