:root {
  --ink: #071b3b;
  --muted: #66758b;
  --teal: #078ca5;
  --teal2: #13b9bd;
  --line: #dce6ed;
  --paper: #fff;
  --soft: #f5fafb;
  --green: #24ad69;
  --shadow: 0 12px 40px rgba(10, 45, 70, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; font-family: Manrope, Arial, sans-serif; color: var(--ink); background: #fff; }
.topbar { height: 76px; display: flex; align-items: center; gap: 36px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: #fff; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand img { width: 44px; height: 40px; margin-right: 8px; }
.brand span { font-size: 25px; font-weight: 800; }
.brand small { font-size: 20px; font-weight: 800; }
.brand em { margin-left: 14px; padding-left: 14px; border-left: 1px solid #dbe2e7; color: #6b7a91; font-size: 13px; font-style: normal; }
.topbar nav { display: flex; gap: 28px; margin-left: auto; }
.topbar nav a { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.telegram { padding: 12px 16px; border-radius: 12px; background: #ebf7fb; color: #087f9e; font-size: 13px; text-decoration: none; }
.post-link { padding: 11px 15px; border-radius: 10px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.hero { min-height: 525px; position: relative; padding: 58px max(24px, calc((100vw - 1180px) / 2)) 140px; background: linear-gradient(90deg, rgba(234,247,250,.94) 0%, rgba(231,246,249,.62) 36%, rgba(0,0,0,0) 67%), url('/static/hero.png') center / cover no-repeat; }
.hero-inner { max-width: 620px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0 0 18px; font-size: 52px; line-height: 1.04; letter-spacing: -.04em; }
.lead { margin: 0; font-size: 20px; line-height: 1.45; }

.search-panel { width: min(1100px, calc(100% - 72px)); position: absolute; left: 50%; bottom: 22px; padding: 0 18px 17px; transform: translateX(-50%); border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(10,45,70,.14); }
.tabs { display: inline-flex; gap: 0; margin-bottom: -17px; overflow: hidden; transform: translateY(-28px); border: 1px solid #e3ebf0; border-radius: 12px 12px 10px 10px; background: #fff; box-shadow: 0 6px 18px rgba(10,45,70,.08); }
.tabs button { height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; border: 0; border-right: 1px solid #e6edf1; border-radius: 0; background: #fff; color: var(--ink); font: 600 13px Manrope; cursor: pointer; }
.tabs button:last-child { border-right: 0; }
.tabs .active { background: #f9ffff; color: var(--teal); }
.tab-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fields { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr; gap: 12px; }
.fields label { font-size: 11px; font-weight: 700; }
.input-wrap { display: block; position: relative; }
.input-wrap i { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-35%); color: #18334f; font-size: 16px; font-style: normal; }
.fields select, .fields input { width: 100%; height: 46px; margin-top: 7px; padding: 0 12px 0 40px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 500 12px Manrope; }
.search-button { height: 46px; align-self: end; border: 0; border-radius: 8px; background: linear-gradient(135deg, var(--teal2), var(--teal)); color: #fff; font: 700 13px Manrope; cursor: pointer; box-shadow: 0 6px 14px rgba(7,140,165,.18); }
.search-button span { margin-right: 6px; font-size: 20px; }

.benefits { max-width: 1100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0 auto; padding: 24px 0; }
.benefits > div { display: flex; align-items: center; gap: 13px; }
.benefits b { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: #e9fafa; color: var(--teal); font-size: 23px; }
.benefits span { display: flex; flex-direction: column; gap: 4px; }
.benefits strong { font-size: 12px; }
.benefits small { color: var(--muted); font-size: 10px; line-height: 1.35; }

.catalog { max-width: 1180px; margin: 0 auto; padding: 40px 0 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; }
.section-head > p { color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(10,45,70,.06); transition: .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.photo { height: 235px; position: relative; overflow: hidden; background: #edf3f5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 13px; left: 13px; padding: 7px 10px; border-radius: 7px; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; }
.badge.archived { background: #66758bcc; }
.count { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 7px; background: #071b3bbb; color: #fff; font-size: 11px; }
.card-body { padding: 16px; }
.price { font-size: 21px; font-weight: 800; }
.price small { font-size: 12px; font-weight: 600; }
.rub { margin-top: 3px; color: var(--teal); font-size: 13px; font-weight: 700; }
.card h3 { height: 45px; margin: 12px 0; overflow: hidden; font-size: 16px; line-height: 1.4; }
.address { height: 36px; color: var(--muted); font-size: 12px; }
.specs { display: flex; gap: 18px; margin: 13px 0; color: #3c4d63; font-size: 12px; }
.specs span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.spec-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: #183b63; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.more { display: block; padding: 11px; border: 1px solid #bcd6df; border-radius: 8px; color: var(--teal); font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.loading, .empty { grid-column: 1 / -1; padding: 70px; color: var(--muted); text-align: center; }

footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: center; gap: 20px; padding: 40px max(24px, calc((100vw - 1180px) / 2)); background: #061a37; color: #dce8f3; }
footer .brand { color: #fff; }
footer a { color: #70dce1; text-decoration: none; }
footer > small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #233753; color: #93a4b8; }

.submission-page { background: #f3f8f9; }
.submission-topbar { border-bottom: 1px solid #e2eaee; }
.back-link { margin-left: auto; color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.submission-main { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, .78fr) minmax(560px, 1.22fr); gap: 56px; padding: 62px max(24px, calc((100vw - 1180px) / 2)) 80px; background: radial-gradient(circle at 10% 12%, #dff6f5 0, transparent 32%), linear-gradient(135deg, #f8fcfc, #eef6f7); }
.submission-intro { padding: 35px 0; }
.submission-intro h1 { margin: 0; font-size: clamp(38px, 4vw, 56px); line-height: 1.07; letter-spacing: -.045em; }
.submission-lead { max-width: 530px; margin: 24px 0 34px; color: #40546a; font-size: 17px; line-height: 1.65; }
.submission-benefits { display: grid; gap: 18px; }
.submission-benefits > div { display: flex; align-items: center; gap: 14px; }
.submission-benefits > div > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--teal); font-weight: 800; box-shadow: 0 5px 16px rgba(7,140,165,.12); }
.submission-benefits p { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.submission-benefits strong { font-size: 14px; }
.submission-benefits small { color: var(--muted); font-size: 12px; }
.review-note { max-width: 520px; display: flex; gap: 13px; margin-top: 34px; padding: 17px; border: 1px solid #cce6e7; border-radius: 14px; background: #fff9; }
.review-note svg { width: 27px; height: 27px; flex: 0 0 27px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.review-note p { margin: 0; color: #40546a; font-size: 12px; line-height: 1.5; }
.review-note strong { color: var(--ink); }
.submission-card { align-self: start; overflow: hidden; border: 1px solid #dfebee; border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(9,48,70,.11); }
.form-heading { padding: 34px 38px 25px; border-bottom: 1px solid #e8eef1; }
.form-step { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-heading h2 { margin: 0 0 7px; font-size: 27px; letter-spacing: -.025em; }
.form-heading > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.form-heading b, #submissionForm label > b, .photo-fieldset b { color: #d24e4e; }
#submissionForm { display: grid; gap: 22px; padding: 30px 38px 38px; }
#submissionForm label, .photo-fieldset legend { display: grid; gap: 8px; color: #223b55; font-size: 12px; font-weight: 700; }
#submissionForm label > span { color: var(--muted); font-weight: 500; }
#submissionForm input, #submissionForm select, #submissionForm textarea { width: 100%; border: 1px solid #ccdce3; border-radius: 10px; background: #fff; color: var(--ink); font: 500 14px Manrope, Arial, sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
#submissionForm input, #submissionForm select { height: 48px; padding: 0 13px; }
#submissionForm textarea { min-height: 145px; padding: 13px; resize: vertical; line-height: 1.5; }
#submissionForm input:focus, #submissionForm select:focus, #submissionForm textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,140,165,.1); }
#submissionForm label small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }
.form-grid { display: grid; gap: 16px; }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.photo-fieldset legend { margin-bottom: 8px; }
.photo-drop { min-height: 142px; place-items: center; align-content: center; gap: 5px !important; padding: 20px; border: 1.5px dashed #9bcbd2; border-radius: 13px; background: #f3fbfb; color: var(--teal) !important; cursor: pointer; text-align: center; }
.photo-drop input { width: 1px !important; height: 1px !important; position: absolute; opacity: 0; }
.photo-drop svg { width: 31px; height: 31px; margin-bottom: 4px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photo-drop strong { font-size: 13px; }
.photo-drop span { color: var(--muted) !important; font-size: 10px; font-weight: 500 !important; }
.photo-preview { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.photo-preview > div { height: 78px; position: relative; overflow: hidden; border-radius: 9px; background: #edf3f5; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview span { width: 20px; height: 20px; position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; border-radius: 50%; background: #071b3bcc; color: #fff; font-size: 10px; font-weight: 800; }
.contact-block { margin: 2px -10px 0; padding: 22px 20px; border-radius: 14px; background: #f5f9fa; }
.contact-block h3 { margin: 0 0 4px; font-size: 16px; }
.contact-block > p { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
#submissionForm .consent { display: flex; align-items: flex-start; gap: 9px; color: #53667a; font-size: 11px; font-weight: 500; line-height: 1.45; }
#submissionForm .consent input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--teal); }
.website-field { width: 1px; height: 1px; position: absolute; left: -9999px; overflow: hidden; }
.form-message { padding: 13px 15px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.form-message.error { border: 1px solid #efcaca; background: #fff3f3; color: #9b2929; }
.form-message.success { border: 1px solid #bce5d0; background: #f0fbf5; color: #187849; }
.submit-button { height: 52px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--teal2), var(--teal)); color: #fff; font: 800 14px Manrope, Arial, sans-serif; cursor: pointer; box-shadow: 0 8px 20px rgba(7,140,165,.2); }
.submit-button span { margin-left: 8px; }
.submit-button:disabled { cursor: wait; opacity: .68; }
.success-panel { padding: 68px 42px; text-align: center; }
.success-check { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #e7f8ef; color: var(--green); font-size: 32px; font-weight: 800; }
.success-panel h2 { margin: 0 0 12px; font-size: 34px; }
.success-panel > p:not(.eyebrow) { max-width: 460px; margin: 0 auto 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.submission-number { display: inline-block; margin-bottom: 24px; padding: 11px 16px; border-radius: 9px; background: #f2f7f8; color: #526479; font-size: 12px; }
.submission-number strong { color: var(--ink); }
.secondary-button { display: block; margin: 0 auto 16px; padding: 12px 20px; border: 1px solid #a9cfd5; border-radius: 9px; background: #fff; color: var(--teal); font: 700 12px Manrope; cursor: pointer; }
.success-panel > a { color: var(--muted); font-size: 12px; }
.submission-footer { grid-template-columns: 1.3fr 1fr 1fr; padding-top: 30px; padding-bottom: 30px; }
.submission-footer > small { grid-column: auto; padding: 0; border: 0; text-align: right; }

.admin-page { min-height: 100vh; background: #f3f7f9; }
.admin-topbar { border-bottom: 1px solid #dfe8ec; }
.admin-logout { margin-left: auto; padding: 9px 15px; border: 1px solid #b8d1d8; border-radius: 9px; background: #fff; color: var(--teal); font: 700 12px Manrope; cursor: pointer; }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 52px 24px 80px; }
.admin-login { width: min(470px, 100%); margin: 50px auto; padding: 38px; border: 1px solid #dfe9ed; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.admin-login h1 { margin: 0 0 10px; font-size: 30px; }
.admin-login > p:not(.eyebrow) { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.admin-login form { display: grid; gap: 16px; }
.admin-login label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; }
.admin-login input { height: 48px; padding: 0 13px; border: 1px solid #cadbe2; border-radius: 10px; font: 500 14px Manrope; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.admin-heading h1 { margin: 0; font-size: 36px; letter-spacing: -.035em; }
.admin-summaries { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-summary { min-width: 170px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px; background: #e7f6f7; color: var(--teal); }
.admin-summary.pending { background: #fff3d6; color: #8b6216; }
.admin-summary strong { font-size: 26px; }
.admin-summary span { font-size: 11px; font-weight: 700; line-height: 1.3; }
.admin-section { margin-top: 34px; }
.admin-section + .admin-section { margin-top: 54px; }
.admin-section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.admin-section-head h2 { margin: 3px 0 0; font-size: 25px; letter-spacing: -.025em; }
.admin-section-head > p { max-width: 450px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-published-list { overflow: hidden; border: 1px solid #dce7eb; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(10,45,70,.06); }
.admin-published-list > .loading { padding: 28px; }
.admin-listing-row { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 16px 18px; }
.admin-listing-row + .admin-listing-row { border-top: 1px solid #e7edf0; }
.admin-listing-image { width: 112px; height: 82px; border-radius: 10px; background: #eaf0f2; object-fit: cover; }
.admin-listing-copy { min-width: 0; }
.admin-listing-copy h3 { margin: 7px 0 5px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.3; }
.admin-listing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--muted); font-size: 9px; font-weight: 700; }
.admin-status.archived { background: #edf1f3; color: #637383; }
.admin-listing-details { margin: 0; overflow-wrap: anywhere; color: #526479; font-size: 10px; line-height: 1.5; }
.admin-listing-links { min-width: 174px; display: grid; gap: 8px; justify-items: stretch; }
.admin-listing-links a, .admin-source-missing { padding: 9px 12px; border-radius: 8px; font-size: 10px; font-weight: 800; text-align: center; text-decoration: none; }
.admin-source-link { border: 1px solid #c9dce2; color: #526b78; }
.admin-site-link { background: var(--teal); color: #fff; }
.admin-source-missing { background: #f1f4f5; color: #7b8992; }
.admin-list { display: grid; gap: 22px; margin-top: 18px; }
.admin-submission { overflow: hidden; border: 1px solid #dce7eb; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(10,45,70,.06); }
.admin-submission.published { border-color: #bfe1d0; }
.admin-submission-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid #e7edf0; }
.admin-submission-head h2 { margin: 4px 0 0; font-size: 22px; overflow-wrap: anywhere; }
.admin-card-meta { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.admin-status { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #fff3d6; color: #9a6810; font-size: 10px; font-weight: 800; }
.admin-status.published { background: #e6f7ee; color: #198354; }
.admin-submission-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 28px; padding: 24px 28px; }
.admin-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.admin-chips span { padding: 6px 9px; border-radius: 7px; background: #eaf7f8; color: var(--teal); font-size: 10px; font-weight: 800; }
.admin-description { margin: 0 0 20px; color: #34485f; font-size: 13px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.admin-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-info-row { min-width: 0; padding: 10px 12px; border-radius: 9px; background: #f5f8f9; }
.admin-info-row span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.admin-info-row strong { display: block; overflow-wrap: anywhere; font-size: 11px; }
.admin-photo-grid { align-self: start; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.admin-photo-grid a { height: 105px; overflow: hidden; border-radius: 9px; background: #eaf0f2; }
.admin-photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.admin-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px 22px; border-top: 1px solid #edf1f3; }
.admin-actions button, .admin-published-link { padding: 11px 16px; border-radius: 9px; font: 800 11px Manrope; cursor: pointer; text-decoration: none; }
.admin-publish { border: 0; background: var(--teal); color: #fff; }
.admin-delete { border: 1px solid #e5bcbc; background: #fff; color: #b43a3a; }
.admin-actions button:disabled { cursor: wait; opacity: .6; }
.admin-published-link { background: #e7f7ef; color: #198354; }
.admin-empty { padding: 80px 20px; border: 1px dashed #cbdde3; border-radius: 16px; background: #fff; text-align: center; }
.admin-empty h2 { margin: 0 0 8px; }
.admin-empty p { margin: 0; color: var(--muted); font-size: 12px; }

dialog { width: min(1380px, calc(100% - 32px)); max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; border-radius: 20px; box-shadow: 0 30px 90px #00142c88; }
dialog::backdrop { background: #00142c99; }
.dialog-close { width: 42px; height: 42px; position: absolute; z-index: 3; top: 15px; right: 15px; border: 0; border-radius: 50%; background: #fff; font-size: 27px; cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.gallery { min-width: 0; padding: 18px; background: #f2f6f8; }
.gallery-main { width: 100%; height: 430px; border-radius: 12px; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 8px; margin-top: 9px; }
.thumbs img { width: 100%; min-width: 0; height: 58px; border: 2px solid transparent; border-radius: 7px; object-fit: cover; cursor: pointer; }
.thumbs img:hover { border-color: var(--teal); }
.detail-copy { min-width: 0; padding: 30px 42px 28px; }
.detail-copy h2 { margin: 10px 0; overflow-wrap: anywhere; font-size: 27px; line-height: 1.2; }
.detail-copy .address { height: auto; margin: 8px 0; }
.detail-copy .price { margin-top: 14px; font-size: 25px; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.details div { padding: 11px; border-radius: 10px; background: var(--soft); font-size: 12px; }
.details div .spec-icon { display: inline-block; margin-right: 7px; vertical-align: middle; }
.detail-copy h3 { margin: 14px 0 8px; }
.description { overflow-wrap: anywhere; color: #33465d; font-size: 14px; line-height: 1.48; white-space: pre-line; }
.contact { display: flex; justify-content: center; margin-top: 16px; padding: 13px; border-radius: 10px; background: var(--teal); color: #fff !important; font-weight: 800; text-decoration: none; }
.source { margin-top: 14px; color: var(--muted); font-size: 11px; }
.source a { color: var(--teal); }

@media (min-width: 901px) and (max-width: 1150px) {
  .gallery-main { height: 360px; }
  .detail-copy { padding: 20px 26px; }
  .detail-copy h2 { font-size: 24px; line-height: 1.15; }
  .detail-copy .price { margin-top: 10px; font-size: 22px; }
  .details { margin: 10px 0; }
  .detail-copy h3 { margin: 10px 0 6px; }
  .description { font-size: 13px; line-height: 1.35; }
  .contact { margin-top: 10px; padding: 11px; }
}

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .telegram { margin-left: auto; }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .search-button { grid-column: 1 / -1; }
  .hero { min-height: 650px; }
  .benefits { grid-template-columns: repeat(2, 1fr); padding: 24px; }
  .catalog { padding-right: 20px; padding-left: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); overflow-x: hidden; overflow-y: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .gallery-main { height: 360px; }
  .submission-main { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
  .submission-intro { padding: 10px 0; }
  .submission-lead { margin-bottom: 25px; }
  .admin-submission-grid { grid-template-columns: 1fr; }
  .admin-section-head { align-items: start; flex-direction: column; gap: 10px; }
  .admin-listing-row { grid-template-columns: 96px minmax(0, 1fr); }
  .admin-listing-image { width: 96px; height: 74px; }
  .admin-listing-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .topbar { height: 66px; gap: 8px; padding: 0 12px; }
  .brand img { width: 37px; height: 34px; margin-right: 5px; }
  .brand span { font-size: 18px; }
  .brand small { font-size: 14px; }
  .brand em, .telegram span { display: none; }
  .topbar .post-link { margin-left: auto; padding: 9px 11px; font-size: 11px; }
  .topbar .telegram { margin-left: 0; padding: 7px 9px; font-size: 18px; }
  .hero { min-height: 690px; padding: 42px 18px 260px; }
  .hero h1 { font-size: 39px; }
  .lead { font-size: 16px; }
  .search-panel { width: calc(100% - 24px); bottom: 18px; padding: 0 13px 14px; }
  .tabs { width: 100%; display: flex; margin-bottom: -14px; transform: translateY(-24px); }
  .tabs button { min-width: 100%; padding: 0 14px; white-space: nowrap; }
  .tabs button:not(.active) { display: none; }
  .fields { grid-template-columns: 1fr 1fr; gap: 9px; }
  .fields label:first-child { grid-column: 1 / -1; }
  .benefits { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 28px; }
  footer { grid-template-columns: 1fr; }
  dialog { width: calc(100% - 12px); border-radius: 14px; }
  .dialog-close { width: 38px; height: 38px; top: 10px; right: 10px; }
  .gallery { padding: 12px; }
  .gallery-main { height: 250px; }
  .thumbs { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 5px; }
  .thumbs img { height: 48px; }
  .detail-copy { padding: 22px 16px; }
  .detail-copy h2 { padding-right: 32px; font-size: 23px; }
  .details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .submission-topbar .brand small { display: inline; }
  .submission-main { padding: 28px 12px 44px; }
  .submission-intro { padding: 6px 8px; }
  .submission-intro h1 { font-size: 37px; }
  .submission-lead { margin-top: 18px; font-size: 15px; }
  .review-note { margin-top: 26px; }
  .submission-card { border-radius: 16px; }
  .form-heading { padding: 27px 20px 21px; }
  #submissionForm { gap: 19px; padding: 23px 20px 28px; }
  .two-cols { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-preview > div { height: 84px; }
  .contact-block { margin-right: -5px; margin-left: -5px; padding: 20px 15px; }
  .success-panel { padding: 48px 22px; }
  .submission-footer { grid-template-columns: 1fr; text-align: left; }
  .submission-footer > small { text-align: left; }
  .admin-topbar .brand em { display: none; }
  .admin-main { padding: 30px 12px 50px; }
  .admin-login { margin: 25px auto; padding: 28px 20px; }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-heading h1 { font-size: 30px; }
  .admin-summaries { width: 100%; justify-content: stretch; }
  .admin-summary { min-width: 0; }
  .admin-summaries .admin-summary { flex: 1 1 140px; }
  .admin-section + .admin-section { margin-top: 42px; }
  .admin-section-head h2 { font-size: 22px; }
  .admin-listing-row { grid-template-columns: 74px minmax(0, 1fr); gap: 13px; padding: 14px; }
  .admin-listing-image { width: 74px; height: 68px; }
  .admin-listing-links { grid-template-columns: 1fr; }
  .admin-submission-head { padding: 20px 17px 15px; }
  .admin-submission-head h2 { font-size: 19px; }
  .admin-submission-grid { gap: 20px; padding: 20px 17px; }
  .admin-info { grid-template-columns: 1fr; }
  .admin-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-actions { flex-direction: column; padding: 15px 17px 20px; }
  .admin-actions button, .admin-published-link { text-align: center; }
}
