@import url('/fonts/setup-fonts.css?v=20261026-form-1');

/* Four larger lines. Cyrillic gets its own considered type pairing. */
.home-hero { gap: 16px; padding-top: 12px; padding-bottom: 28px; }
.home-hero .type-line { padding-block: 3px; }
.home-hero .type-title,
.home-hero .type-row.spotlight .type-title,
html:lang(en) .home-hero .type-row.spotlight .type-title,
html:lang(en) .home-hero .type-title,
.home-hero .type-row.serif .type-title,
html:lang(en) .home-hero .type-row.serif .type-title {
  font-size: clamp(44px, min(12vw, calc((100vh - 304px) / 4.12)), 240px);
  font-size: clamp(44px, min(12vw, calc((100svh - 304px) / 4.12)), 240px);
  line-height: 1.02;
}
html:lang(ru) .home-hero .type-title { font-family: 'Onest', Arial, sans-serif; font-weight: 400; letter-spacing: -.065em; }
html:lang(ru) .home-hero .type-row.serif .type-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; letter-spacing: -.055em; }
.home-hero .type-row { --photo-size: min(10vw, 14svh, 190px); }
.home-hero .type-showcase-end p { font-size: clamp(22px, 2vw, 36px); max-width: 670px; }

/* The portrait belongs to the third line. Phones reserve real space for it,
   instead of placing an absolute thumbnail over the heading. */
@media (max-width:640px), (max-height:500px) {
  .home-hero .type-row.spotlight {
    --photo-size: clamp(52px,16vw,92px);
    display: flex; gap: clamp(10px,3vw,16px); align-items: center;
  }
  .home-hero .type-row.spotlight .type-photo {
    position: relative; inset: auto; flex: 0 0 var(--photo-size);
    width: var(--photo-size); height: var(--photo-size); border-radius: 10px;
  }
  .home-hero .type-row:not(.spotlight) .type-photo,
  .home-hero .type-sticker { display: none; }
}
@media (min-width:641px) and (max-height:500px) {
  .home-hero .type-row.spotlight { --photo-size: 48px; gap: 12px; }
}


/* Whole rounded sections overlap through native scroll, as in the reference.
   The project form is one surface. Its fields never animate independently. */
:root { --setup-gutter: clamp(24px, 6vw, 140px); --stack-gap: clamp(64px, 8vw, 144px); --stack-radius: clamp(28px, 3vw, 56px); }
html { overflow-x: clip; }
body { overflow-x: clip; overflow-y: visible; }
.landing-stack { position: relative; isolation: isolate; padding-top: var(--stack-gap); background: #101010; overflow-anchor: none; }
.landing-stack * { overflow-anchor: none; }
.landing-stack > .stack-panel {
  position: relative;
  margin: 0;
  min-height: 100svh;
  border-radius: var(--stack-radius) var(--stack-radius) 0 0;
}
/* A short overlap lead-in keeps the panels moving instead of pinning them
   motionless for half a screen. The form's own bottom padding protects controls. */
.landing-stack > .stack-panel + .stack-panel { margin-top: clamp(64px, 10svh, 108px); }
.landing-stack > .hero-showcase { margin-top: clamp(64px, 10svh, 108px); }
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis :is(textarea, select, .recommend-list, .region-search-results, .modal-overlay) { overscroll-behavior: contain; }
/* A tall panel pins only after its last field has entered the viewport.
   Height comes from ResizeObserver, with no scroll handler or transformed form. */
.landing-stack.stack-ready > .stack-panel {
  position: sticky;
  top: min(0px, calc(100svh - var(--stack-height, 100svh)));
}
.setup-workspace-wrap { z-index: 1; padding: clamp(48px, 5vw, 96px) var(--setup-gutter); background: #b8afda; color: #101010; }
.project-entry { padding: 0; margin: 0 0 20px; align-items: end; gap: 6vw; scroll-margin-top: 64px; }
.project-entry h2 { font: 400 clamp(40px, 4.8vw, 84px)/1.04 var(--display-sans); letter-spacing: -.055em; }
.project-entry p { max-width: 430px; margin: 0; font: 400 clamp(18px, 1.5vw, 26px)/1.45 var(--display-sans); }
.container:has(#page-add.active, #page-maps.active) #status { margin: 0 0 32px; padding: 0; color: #40394f; background: transparent; font-size: 14px; }
.setup-switchbar { position: relative; margin: 0 0 clamp(40px, 4vw, 72px); padding: 0; }
.setup-switchbar:has(#toolTabs[hidden]) { display: none; }
.setup-switchbar #toolTabs {
  --selected-tab: 0;
  position: relative; isolation: isolate;
  width: min(100%, 660px); max-width: none; margin: 0;
  display: flex; gap: 0; padding: 6px;
  border: 1px solid #101010; border-radius: 100px; background: #101010;
}
.setup-switchbar #toolTabs::before {
  content: ''; position: absolute; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px) / 3); border-radius: 100px; background: #fff;
  transform: translateX(calc(var(--selected-tab) * 100%));
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
  pointer-events: none; z-index: -1;
}
.setup-switchbar #toolTabs:has(.tab:nth-child(2).active) { --selected-tab: 1; }
.setup-switchbar #toolTabs:has(.tab:nth-child(3).active) { --selected-tab: 2; }
.setup-switchbar #toolTabs .tab {
  flex: 1 1 0; min-height: 58px; padding: 15px 10px; margin: 0;
  font: 500 15px/1.3 var(--display-sans); text-align: center;
  border: 0 !important; background: transparent !important; color: #fff !important;
  transition: color 220ms ease; white-space: normal;
}
.setup-switchbar #toolTabs .tab.active { color: #101010 !important; }
.setup-switchbar #toolTabs .tab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* One unified workspace: white editable fields, generous labels, no inner cards. */
#page-add, #page-maps { margin-inline: 0; }
#page-add .project-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 100px); min-height: 0; }
#page-add :is(.left-col, .right-col) { gap: 42px; }
#page-add .block, #page-maps .block {
  --text-primary: #101010; --text-secondary: #40394f;
  padding: 0; border: 0; border-radius: 0; background: transparent; color: #101010;
  box-shadow: none; /* taste-skill-ignore: removing inherited card styling. */
}
#page-add .block-title, #page-maps .block-title { display: block; margin-bottom: 20px; font: 400 clamp(23px, 2vw, 36px)/1.2 var(--display-sans); letter-spacing: -.04em; color: #101010; }
#page-add .form-step-heading, #page-maps .form-step-heading { display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.form-step-number { display: inline-grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #101010; font: 600 21px/1 var(--display-sans); letter-spacing: 0; font-variant-numeric: tabular-nums; }
#page-add .semantic-prompt { margin: -10px 0 16px 56px; color: #40394f; font: 400 clamp(16px, 1.3vw, 20px)/1.45 var(--display-sans); }
#page-add .semantic-prompt .btn-link { display: inline; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: #101010; font: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: currentColor; }
#page-add .semantic-prompt .btn-link:hover { text-decoration-thickness: 2px; }
#page-add .semantic-prompt .btn-link:focus-visible { outline: 2px solid #101010; outline-offset: 4px; border-radius: 2px; }
#page-add .block-title:has(#recommendCount) { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
#page-add .form-group, #page-maps .form-group { gap: 10px; }
#page-add :is(input:not([type=file]), textarea),
#page-maps :is(input:not([type=checkbox]):not([type=radio]), textarea) {
  width: 100%; background: #fff; color: #101010;
  border: 1px solid #a198bd; border-radius: 12px; min-height: 62px; padding: 18px 20px;
  font: 400 17px/1.5 var(--display-sans);
}
#page-add :is(input, textarea)::placeholder, #page-maps :is(input, textarea)::placeholder { color: #68636f; opacity: 1; }
#page-add :is(input, textarea):focus, #page-maps :is(input, textarea):focus {
  border-color: #101010; outline: 2px solid #101010; outline-offset: 3px;
  box-shadow: none; /* taste-skill-ignore: simple high-contrast focus indication. */
}
#page-add #siteUrl { min-height: 72px; font-size: 20px; }
#page-add #keywordsInput { min-height: 290px; }
#page-add small, #page-maps :is(small, .hint) { color: #40394f; font-size: 14px; line-height: 1.5; }
#page-add .btn-link, #page-maps .btn-link { color: #101010; font-size: 15px; text-decoration-color: #5a526d; }
#page-add .btn-group { flex-wrap: wrap; gap: 16px 26px; }
#page-add .region-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#page-add .region-chip { min-height: 50px; padding: 12px; border: 1px solid #827799; border-radius: 100px; color: #101010; background: transparent; font: 500 14px/1.3 var(--display-sans); }
#page-add .region-chip.active { background: #101010; border-color: #101010; color: #fff; }
#page-add .region-chip:hover:not(.active) { background: #cdc5e5; border-color: #101010; }
#page-add .region-code-picker { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; }
#page-add .region-code-add.btn.drop-button { --button-base: #b8afda; justify-self: start; min-height: 62px; padding: 18px 24px; font-size: 14px; }
#page-add .region-search-result > * { pointer-events: none; }
#page-add .launch-area { margin-top: 28px; gap: 20px; }
#page-add .launch-area .btn.drop-button, #page-maps .btn.drop-button { --button-base: #b8afda; min-height: 64px; padding: 20px 26px; font-size: 15px; }
#page-add .instruction-link { font-size: 14px; color: #101010; }
#page-add .launch-area .instruction-link.drop-button { --button-base: #fff; --button-text: #101010; --button-hover-text: #fff; color: var(--button-text); text-decoration: none; }
#page-add .recommend-list { min-height: 88px; max-height: 320px; }
#page-add .recommend-list .item { border-color: #a399bb; font-size: 16px; }
#page-add .recommend-list .add-btn { background: #101010; color: #fff; width: 44px; height: 44px; }
#page-add .empty-inline { padding: 0; color: #40394f; font-size: 16px; line-height: 1.5; }
#page-add .recommend-actions { flex-wrap: wrap; gap: 16px 24px; margin-top: 18px; }

/* Maps use the same surface and retain the original three-step workflow. */
#page-maps .map-steps { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 36px; padding: 0 0 24px; border: 0; }
#page-maps .map-step { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #524a63; font-size: 15px; }
#page-maps .map-step .form-step-number { flex-basis: 32px; width: 32px; height: 32px; font-size: 16px; background: #d6cfea; }
#page-maps .map-step.active { color: #101010; text-decoration: none; }
#page-maps .map-step.active .form-step-number { background: #101010; color: #fff; }
#page-maps .narrow { width: min(100%, 900px); max-width: none; margin: 0; }
#page-maps .form-group { margin-bottom: 24px; }
#page-maps .form-group > label { font-size: 16px; color: #101010; }
#page-maps .map-url-help { background: #cdc5e5; border: 0; border-radius: 12px; color: #373042; padding: 24px; margin-top: 16px; font-size: 14px; overflow-wrap: anywhere; }
#page-maps .map-url-help :is(strong, span, p, li) { color: inherit; }
#page-maps .map-nav-buttons { gap: 18px; margin-top: 30px; }
#page-maps .map-review-item { background: transparent; border-color: #998eae; }
#page-maps input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; padding: 0; accent-color: #101010; }

/* Broad editorial panels, with a neutral background visible between them. */
.landing-stack > .hero-showcase { z-index: 2; padding: clamp(40px, 4vw, 80px) var(--setup-gutter); background: #f2f2f2; align-items: center; }
.landing-stack .hero-scene { border-radius: clamp(24px, 2vw, 36px); }
.landing-stack > .service-guide { z-index: 3; background: #fff; padding: clamp(64px, 7vw, 132px) var(--setup-gutter); gap: 8vw; }
.landing-stack .service-guide-intro { position: relative; top: auto; padding: 0; }
.landing-stack .service-guide h2 { font-size: clamp(44px, 5.4vw, 108px); }
.landing-stack .service-guide-list dt { font-size: clamp(25px, 2.4vw, 46px); }
.landing-stack .service-guide-list dd { font-size: clamp(16px, 1.25vw, 22px); color: #4c4c4c; }
.landing-stack > .setup-note { z-index: 4; background: #b8afda; padding: clamp(64px, 7vw, 132px) var(--setup-gutter); align-items: center; }
.landing-stack .setup-note h2 { align-self: center; }
.landing-stack .setup-note p { color: #28232f; font-size: clamp(17px, 1.5vw, 24px); }
.container:has(#page-projects.active, #page-admin.active) :is(.landing-stack, .setup-workspace-wrap) { display: contents; }

@media (max-width:1000px) {
  :root { --setup-gutter: 40px; }
  .project-entry { gap: 30px; align-items: start; }
  .project-entry h2 { font-size: 46px; }
  #page-add .project-form { gap: 32px; }
  #page-add .region-chip { font-size: 13px; }
  .landing-stack > .hero-showcase { padding-inline: 24px; }
}
@media (max-width:700px) {
  :root { --setup-gutter: 24px; --stack-gap: 64px; --stack-radius: 30px; }
  .project-entry { flex-direction: column; align-items: start; gap: 24px; }
  .project-entry h2 { font-size: 42px; }
  .project-entry p { font-size: 18px; }
  .container:has(#page-add.active, #page-maps.active) #status { font-size: 13px; }
  .setup-switchbar #toolTabs { padding: 5px; }
  .setup-switchbar #toolTabs::before { left: 5px; top: 5px; bottom: 5px; width: calc((100% - 10px) / 3); }
  .setup-switchbar #toolTabs .tab { font-size: 12px; min-height: 54px; padding: 10px 5px; }
  #page-add .project-form { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  #page-add .block-title, #page-maps .block-title { font-size: 25px; }
  #page-add #siteUrl { font-size: 18px; }
  #page-add .launch-area .btn.drop-button { width: 100%; font-size: 14px; }
  #page-maps .map-steps { flex-direction: column; gap: 18px; }
  #page-maps .map-url-help { padding: 20px; }
  #page-maps .map-nav-buttons { flex-wrap: wrap; }
  .landing-stack > .hero-showcase { grid-template-columns: 1fr; padding: 24px 16px; gap: 20px; }
  .landing-stack > .service-guide { grid-template-columns: 1fr; gap: 48px; }
  .landing-stack .service-guide h2 { font-size: 46px; }
  .landing-stack > .setup-note { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width:360px) {
  :root { --setup-gutter: 20px; }
  .project-entry h2 { font-size: 36px; }
  .setup-switchbar #toolTabs .tab { font-size: 11px; }
  #page-add .region-chips { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
  .setup-switchbar #toolTabs::before, .setup-switchbar #toolTabs .tab { transition: none; }
}

@media (max-width:640px) {
  .home-hero { gap: 16px; padding: 12px 16px 24px; }
  .home-hero .type-lines { padding-block: 8px; }
  .home-hero .type-line { padding-block: 7px; }
  .home-hero .type-title, .home-hero .type-row.spotlight .type-title, html:lang(en) .home-hero .type-row.spotlight .type-title, html:lang(en) .home-hero .type-title { font-size: 13.5vw; }
  .home-hero .type-row.serif .type-title, html:lang(en) .home-hero .type-row.serif .type-title { font-size: 14vw; }
  html:lang(ru) .home-hero .type-row.finale .type-title { font-size: 11.2vw; }
  html:lang(en) .home-hero .type-row.finale .type-title { font-size: 10.8vw; }
  .home-hero .type-showcase-end p { font-size: 21px; }
}
@media (max-width:640px) and (max-height:700px) {
  .home-hero { padding-block: 8px 18px; gap: 12px; }
  .home-hero .type-lines { padding-block: 0; }
  .home-hero .type-line { padding-block: 3px; }
  .home-hero .type-showcase-end p { font-size: 19px; }
  .home-hero .type-showcase-end { gap: 12px; }
}
@media (max-width:360px) {
  :root { --setup-gutter: 20px; }
  .home-hero .type-showcase-end p { font-size: 18px; }
  .home-hero .type-line { padding-block: 2px; }
}

/* Keep both language versions on the same action grid. Russian labels must
   wrap inside their button instead of pushing the next action onto a new row. */
#page-add .launch-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
#page-add .launch-area .btn.drop-button { width: 100%; min-width: 0; min-height: 76px; padding: 16px; font-size: 14px; gap: 10px; }
#page-add .launch-area .drop-label { min-width: 0; }
#page-add .launch-area .drop-arrow { flex-basis: 18px; }
#page-add .launch-area .btn.drop-button::before { left: 26px; }
#page-add .btn-group, #page-add .recommend-actions { align-items: center; }
#page-add :is(.btn-group, .recommend-actions) > .btn-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; line-height: 1.4; }
@media (max-width:1100px) { #page-add .launch-area { grid-template-columns: 1fr; } #page-add .launch-area .btn.drop-button { min-height: 64px; } }
@media (max-width:700px) {
  #page-add .btn-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #page-add .btn-group > .btn-link { min-width: 0; min-height: 48px; white-space: normal; text-align: left; justify-content: flex-start; }
}
@media (max-width:700px) {
  #page-add .btn-group { align-items: stretch; }
  #page-add .btn-group > .btn-link { min-height: 60px; align-items: flex-start; }
}
