/
apyl
/
web2kurs
Обзор
Документация
Войти
/
apyl
/
web2kurs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/css/styles.css
652 строки
25 KB
astraQQE
GlavDetSTR
26 май 2026, 17:34
26 май 2026, 17:34
75e14cd
Код
Авторство
О чём код?
:root { --bg: #f4f2ee; --surface: #ffffff; --surface-soft: #faf7f1; --text: #16181d; --muted: #6f7582; --line: #e5ded2; --accent: #7c3aed; --accent-dark: #5b21b6; --accent-soft: #efe8ff; --green: #116149; --green-soft: #e8f7ef; --danger: #b42318; --shadow: 0 24px 70px rgba(22, 24, 29, .10); --radius: 24px; } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--text); background: radial-gradient(circle at top left, rgba(124, 58, 237, .12), transparent 34rem), radial-gradient(circle at 90% 10%, rgba(17, 97, 73, .10), transparent 28rem), var(--bg); line-height: 1.6; } body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px); background-size: 44px 44px; opacity: .35; z-index: -1; } a { color: var(--accent-dark); text-decoration: none; } a:hover { text-decoration: underline; } img { max-width: 100%; display: block; } .container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; } .skip-link { position: absolute; left: -999px; top: 10px; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 12px; z-index: 20; } .skip-link:focus { left: 16px; } .site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(229, 222, 210, .78); } .header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; } .brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); min-width: max-content; } .brand:hover { text-decoration: none; } .brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; color: #fff; font-weight: 900; letter-spacing: -.06em; background: linear-gradient(135deg, var(--accent), #111827); box-shadow: 0 16px 30px rgba(124,58,237,.24); } .brand strong { display: block; font-size: 18px; letter-spacing: -.03em; } .brand small { color: var(--muted); display: block; margin-top: -3px; } .main-nav, .header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .main-nav a { color: #343842; font-weight: 650; padding: 10px 12px; border-radius: 999px; } .main-nav a:hover { background: var(--surface-soft); text-decoration: none; } .user-chip { padding: 8px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--text); font-weight: 700; } .logout-form { display: inline-flex; margin: 0; } .page-content { padding: 34px 0 46px; } .site-footer { padding: 34px 0; color: var(--muted); } .footer-grid { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; } .button, button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid transparent; border-radius: 999px; padding: 10px 16px; background: var(--surface); color: var(--text); font: inherit; font-weight: 760; cursor: pointer; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; } .button:hover, button:hover { transform: translateY(-1px); text-decoration: none; } .button.primary, button.primary, .button.full { background: var(--text); color: #fff; box-shadow: 0 14px 28px rgba(22,24,29,.20); } .button.light { background: var(--surface); color: var(--text); border-color: var(--line); } .button.ghost { background: rgba(255,255,255,.70); color: var(--text); border-color: var(--line); } .button.subtle { background: var(--accent-soft); color: var(--accent-dark); } .button.danger { background: var(--danger); color: #fff; } .button.full { width: 100%; } .panel, .card, .product-card, .metric-card { background: rgba(255,255,255,.90); border: 1px solid rgba(229, 222, 210, .85); border-radius: var(--radius); box-shadow: var(--shadow); } .panel { padding: 24px; } .compact-panel { padding: 18px; box-shadow: 0 14px 40px rgba(22, 24, 29, .07); } .hero-section { position: relative; overflow: hidden; border-radius: 34px; padding: clamp(28px, 5vw, 58px); margin-bottom: 26px; background: linear-gradient(135deg, #17151f 0%, #3b216c 52%, #116149 100%); color: #fff; box-shadow: 0 30px 90px rgba(22, 24, 29, .20); } .hero-section::after { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -90px; border-radius: 50%; background: rgba(255,255,255,.16); } .hero-home { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: center; } .hero-copy { position: relative; z-index: 1; } .hero-copy h1 { max-width: 760px; margin: 10px 0 14px; font-size: clamp(34px, 6vw, 66px); line-height: .98; letter-spacing: -.07em; } .hero-copy p { max-width: 680px; color: rgba(255,255,255,.82); font-size: 18px; } .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; } .hero-card { position: relative; z-index: 1; border-radius: 28px; padding: 26px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); } .hero-number { display: block; font-size: 64px; font-weight: 900; letter-spacing: -.08em; line-height: 1; } .hero-card small { display: block; margin-top: 16px; color: rgba(255,255,255,.78); } .eyebrow { display: inline-flex; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; } .hero-section .eyebrow { color: #fff; background: rgba(255,255,255,.16); } .muted { color: var(--muted); } .lead { font-size: 18px; color: #3f4550; } .toolbar { margin: 22px 0; } .search-form { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(140px, 1fr)) auto; gap: 12px; align-items: end; } .search-form label, .form-field { display: grid; gap: 7px; font-weight: 700; } .search-form label span { color: var(--muted); font-size: 13px; } input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #d8d1c5; border-radius: 14px; padding: 11px 13px; background: #fff; color: var(--text); font: inherit; } textarea { min-height: 130px; resize: vertical; } input:focus, select:focus, textarea:focus { outline: 3px solid rgba(124, 58, 237, .18); border-color: var(--accent); } .stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0; } .metric-card { padding: 18px; box-shadow: 0 12px 34px rgba(22,24,29,.06); } .metric-card span, .metric-card small { color: var(--muted); } .metric-card strong { display: block; margin: 4px 0; font-size: clamp(22px, 4vw, 32px); letter-spacing: -.04em; } .stats-grid.compact { grid-template-columns: repeat(3, 1fr); margin: 14px 0; } .category-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 18px; } .category-pill { flex: 0 0 auto; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.82); border: 1px solid var(--line); color: var(--text); font-weight: 760; } .category-pill.active, .category-pill:hover { background: var(--text); color: #fff; text-decoration: none; } .category-pill span { opacity: .72; } .insight-grid, .widget-grid, .detail-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; } .detail-widgets { grid-template-columns: 1.2fr .8fr; } .section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 34px 0 16px; } .section-heading h2, .widget-card h2, .panel h1, .panel h2 { margin-top: 8px; letter-spacing: -.04em; line-height: 1.1; } .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .product-card { overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; } .product-card:hover { transform: translateY(-4px); box-shadow: 0 28px 80px rgba(22,24,29,.14); } .product-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #efe8ff, #e8f7ef); color: var(--muted); overflow: hidden; } .product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; } .product-card:hover .product-image img { transform: scale(1.04); } .sale-badge { position: absolute; top: 12px; left: 12px; background: #ffedd5; color: #9a3412; border-radius: 999px; padding: 6px 10px; font-size: 13px; } .sale-badge.big { font-size: 16px; padding: 8px 12px; } .product-body { padding: 18px; } .product-body h3 { margin: 6px 0 8px; font-size: 20px; letter-spacing: -.035em; line-height: 1.2; } .product-meta { margin: 0; color: var(--muted); font-size: 14px; } .product-bottom { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 16px; } .price { font-size: 20px; font-weight: 900; letter-spacing: -.035em; } .price.huge { font-size: clamp(30px, 5vw, 46px); } .old-price { color: var(--muted); text-decoration: line-through; margin-left: 8px; } .stock-chip, .mini-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 13px; } .mini-chip { margin: 0 4px 4px 0; } .empty-state { grid-column: 1 / -1; text-align: center; } .pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 26px 0; } .widget-card { box-shadow: 0 16px 46px rgba(22,24,29,.08); } .rank-list { display: grid; gap: 12px; padding-left: 22px; } .rank-list li { padding-bottom: 10px; border-bottom: 1px solid var(--line); } .rank-list span { display: block; color: var(--muted); font-size: 14px; } .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; } .tag-cloud span { padding: 8px 10px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); font-weight: 700; } blockquote { margin: 0 0 16px; padding: 0 0 0 14px; border-left: 3px solid var(--accent); } blockquote cite { color: var(--muted); font-style: normal; } .breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; color: var(--muted); } .product-detail { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(300px, 1.05fr); gap: 30px; padding: clamp(18px, 4vw, 34px); } .main-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.5; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #efe8ff, #e8f7ef); color: var(--muted); } .main-photo img { width: 100%; height: 100%; object-fit: cover; } .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; } .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); } .detail-info h1 { font-size: clamp(34px, 5vw, 58px); line-height: .98; letter-spacing: -.07em; margin: 14px 0; } .price-row { display: flex; align-items: baseline; gap: 10px; margin: 22px 0; } .detail-facts { display: grid; gap: 10px; margin: 22px 0; } .detail-facts span { padding: 12px 14px; border-radius: 16px; background: var(--surface-soft); border: 1px solid var(--line); } .detail-actions { margin-top: 24px; } .actions { display: flex; flex-wrap: wrap; gap: 10px; } .spec-list { display: grid; gap: 12px; margin: 0; } .spec-list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .spec-list dt { color: var(--muted); font-weight: 800; } .spec-list dd { margin: 0; } .review-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; } .review-card { padding: 18px; box-shadow: 0 14px 38px rgba(22,24,29,.07); } .review-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; } .compact-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } .compact-product .product-body { padding: 14px; } .compact-product h3 { font-size: 17px; } .staff-card .stats-grid { margin-bottom: 18px; } .service-list { margin-top: 16px; } .printable-detail { page-break-inside: avoid; } .contact-hero { min-height: 260px; display: grid; align-items: center; } .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0; } .contact-card h2 { margin: 12px 0 8px; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; } .contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; margin: 22px 0; } .contact-form { display: grid; gap: 12px; } .small-note { font-size: 14px; margin-bottom: 0; } .map-placeholder { overflow: hidden; } .fake-map { min-height: 220px; margin-top: 14px; border-radius: 24px; border: 1px dashed var(--accent); display: grid; place-items: center; background: linear-gradient(90deg, rgba(124,58,237,.10) 1px, transparent 1px), linear-gradient(rgba(17,97,73,.10) 1px, transparent 1px), var(--surface-soft); background-size: 32px 32px; color: var(--muted); font-weight: 900; } .form-panel { max-width: 760px; margin-inline: auto; } .wide-form { max-width: 920px; } .form-field { margin: 0 0 16px; } .form-field label { font-weight: 800; } .helptext, .form-field small { font-size: 13px; } .errorlist { color: var(--danger); font-weight: 700; margin: 6px 0 0; padding-left: 18px; } .has-error input, .has-error select, .has-error textarea { border-color: var(--danger); outline-color: rgba(180,35,24,.15); } .auth-layout { min-height: 60vh; display: grid; place-items: center; } .auth-card { width: min(460px, 100%); } .confirm-card { max-width: 680px; margin-inline: auto; } .danger-text { color: #fff; background: var(--danger); } .messages { display: grid; gap: 10px; margin-bottom: 18px; } .message { padding: 14px 16px; border-radius: 18px; background: #eefbf4; color: #124a38; border: 1px solid #ccebdc; font-weight: 750; } .message.warning, .message.error { background: #fff1f1; color: var(--danger); border-color: #ffd0d0; } .accessible-mode { --bg: #000; --surface: #000; --surface-soft: #111; --text: #fff; --muted: #fff; --line: #fff; --accent: #ffd400; --accent-dark: #ffd400; --accent-soft: #111; --green: #fff; --green-soft: #111; --danger: #ff4d4d; --shadow: none; background: #000 !important; color: #fff !important; font-size: 20px; } .accessible-mode::before { display: none; } .accessible-mode .site-header { background: #000; border-bottom: 3px solid #fff; backdrop-filter: none; } .accessible-mode .brand, .accessible-mode .main-nav a, .accessible-mode a { color: #ffd400 !important; text-decoration: underline; } .accessible-mode .brand small, .accessible-mode .muted, .accessible-mode .lead { color: #fff !important; } .accessible-mode .brand-mark { background: #ffd400; color: #000; box-shadow: none; } .accessible-mode .panel, .accessible-mode .card, .accessible-mode .product-card, .accessible-mode .metric-card, .accessible-mode .hero-section, .accessible-mode .hero-card, .accessible-mode .category-pill, .accessible-mode .detail-facts span, .accessible-mode .tag-cloud span { background: #000 !important; color: #fff !important; border: 3px solid #fff !important; box-shadow: none !important; } .accessible-mode .eyebrow, .accessible-mode .stock-chip, .accessible-mode .mini-chip, .accessible-mode .user-chip { background: #fff !important; color: #000 !important; border: 2px solid #fff; } .accessible-mode .button, .accessible-mode button, .accessible-mode input[type="submit"] { background: #ffd400 !important; color: #000 !important; border: 3px solid #ffd400 !important; box-shadow: none !important; text-decoration: none !important; } .accessible-mode .button.light, .accessible-mode .button.ghost, .accessible-mode .button.subtle { background: #000 !important; color: #ffd400 !important; border: 3px solid #ffd400 !important; } .accessible-mode .button.danger { background: #ff4d4d !important; color: #000 !important; border-color: #ff4d4d !important; } .accessible-mode input, .accessible-mode select, .accessible-mode textarea { background: #000 !important; color: #fff !important; border: 3px solid #fff !important; } .accessible-mode input::placeholder { color: #fff; opacity: .9; } .accessible-mode .sale-badge { background: #ffd400; color: #000; } .accessible-mode .old-price { color: #fff; } .accessible-mode .message { background: #000; color: #fff; border: 3px solid #fff; } @media (max-width: 1100px) { .search-form { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(140px, 1fr)); } .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .compact-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 980px) { .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; } .main-nav, .header-actions { width: 100%; } .main-nav { justify-content: flex-start; } .hero-home, .product-detail, .detail-widgets, .contact-layout { grid-template-columns: 1fr; } .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats-grid, .widget-grid, .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } } @media (max-width: 760px) { .container { width: min(100% - 24px, 1180px); } .site-header { position: static; } .brand { width: 100%; } .main-nav a, .header-actions .button, .logout-form, .logout-form button { flex: 1 1 auto; } .hero-section { border-radius: 26px; } .hero-copy h1 { font-size: clamp(34px, 11vw, 46px); } .hero-card { padding: 20px; } .product-grid, .compact-products, .contact-grid, .review-list { grid-template-columns: 1fr; } .price-row { flex-wrap: wrap; } .detail-info h1 { font-size: clamp(32px, 10vw, 46px); } .contact-card h2 { word-break: break-word; } } @media (max-width: 640px) { .container { width: min(100% - 20px, 1180px); } .page-content { padding-top: 18px; } .panel { padding: 18px; } .hero-section { padding: 24px; border-radius: 22px; } .search-form, .stats-grid, .widget-grid, .insight-grid { grid-template-columns: 1fr; } .section-heading, .footer-grid { flex-direction: column; align-items: flex-start; } .product-bottom, .review-top { flex-direction: column; align-items: flex-start; } .spec-list div { grid-template-columns: 1fr; gap: 4px; } .gallery { grid-template-columns: repeat(3, 1fr); } .button, button, input[type="submit"] { width: 100%; } .category-strip { margin-inline: -10px; padding-left: 10px; padding-right: 10px; } .fake-map { min-height: 170px; } } @media (max-width: 420px) { .main-nav, .header-actions { display: grid; grid-template-columns: 1fr; } .brand-mark { width: 42px; height: 42px; } .hero-copy h1, .detail-info h1 { letter-spacing: -.045em; } .price.huge { font-size: 32px; } .gallery { grid-template-columns: repeat(2, 1fr); } } @media print { @page { size: A4; margin: 10mm; } body { background: #fff !important; color: #000 !important; font-size: 11pt !important; line-height: 1.3 !important; } header, footer, .site-footer, .hero-actions, .button, .filters, .pagination, .widget-grid, .review-form, .product-actions, .compact-panel, .same-category, .contact-feedback { display: none !important; } * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; } main, .page, .container { margin: 0 !important; padding: 0 !important; max-width: 100% !important; } .panel, .product-detail, .product-main, .contact-card, .map-placeholder, .contact-layout .panel { background: #fff !important; border: 1px solid #000 !important; border-radius: 0 !important; } /* ===== ДЕТАЛЬНАЯ СТРАНИЦА ТОВАРА ===== */ .product-detail, .product-main { display: block !important; padding: 0 !important; margin: 0 !important; } .product-gallery, .gallery-grid { margin: 0 0 4mm !important; gap: 2mm !important; } .product-gallery img, .gallery-grid img, .product-image img { max-height: 70mm !important; width: auto !important; object-fit: contain !important; break-inside: avoid; page-break-inside: avoid; } .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; } .product-summary, .product-specs, .specs-card, .reviews-panel { padding: 4mm !important; margin: 0 0 4mm !important; break-inside: avoid; page-break-inside: avoid; } .product-summary h1 { font-size: 20pt !important; margin: 0 0 2mm !important; line-height: 1.1 !important; } .price { font-size: 16pt !important; } .spec-list div { padding: 1.5mm 0 !important; } .reviews-list article { margin-bottom: 3mm !important; padding-bottom: 2mm !important; border-bottom: 1px solid #999 !important; } /* ===== СТРАНИЦА КОНТАКТОВ ===== */ .contact-hero { padding: 4mm !important; margin: 0 0 4mm !important; min-height: 0 !important; break-inside: avoid; page-break-inside: avoid; } .contact-hero .hero-copy h1 { font-size: 18pt !important; line-height: 1.1 !important; margin: 0 0 2mm !important; } .contact-hero .hero-copy p { font-size: 10pt !important; line-height: 1.25 !important; margin: 0 !important; } .contact-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 3mm !important; margin: 0 0 4mm !important; } .contact-layout { display: grid !important; grid-template-columns: 1fr !important; gap: 3mm !important; margin: 0 0 4mm !important; } .contact-card, .contact-layout .panel, .map-placeholder { padding: 3mm !important; margin: 0 !important; min-height: 0 !important; break-inside: avoid; page-break-inside: avoid; } .contact-card .eyebrow, .contact-layout .eyebrow, .map-placeholder .eyebrow { font-size: 8pt !important; margin-bottom: 1mm !important; } .contact-card h2, .contact-layout h2, .map-placeholder h2 { font-size: 13pt !important; line-height: 1.15 !important; margin: 0 0 2mm !important; } .contact-card p, .contact-layout p, .map-placeholder p, .muted { font-size: 9.5pt !important; line-height: 1.25 !important; margin: 0 0 2mm !important; } .contact-schedule { margin: 0 !important; } .contact-schedule div, .spec-list.contact-schedule div { display: grid !important; grid-template-columns: 28mm 1fr !important; padding: 1.5mm 0 !important; margin: 0 !important; border-bottom: 1px solid #999 !important; } .contact-schedule dt, .contact-schedule dd { font-size: 9.5pt !important; line-height: 1.2 !important; margin: 0 !important; } .fake-map { min-height: 28mm !important; height: 28mm !important; padding: 4mm !important; font-size: 10pt !important; border: 1px solid #000 !important; background: #fff !important; color: #000 !important; } a { color: #000 !important; text-decoration: none !important; } .gallery { display: none !important; } .detail-info h1 { font-size: 24pt !important; line-height: 1.05 !important; margin: 0 0 5mm !important; } .lead { color: #000 !important; font-size: 11pt !important; } .price.huge { font-size: 18pt !important; } .detail-facts { gap: 3mm !important; margin: 5mm 0 !important; } .detail-facts span, .mini-chip { border: 1px solid #000 !important; background: #fff !important; color: #000 !important; } .spec-list div { grid-template-columns: 34mm 1fr !important; padding-bottom: 3mm !important; margin-bottom: 2mm !important; } .stats-grid.compact { grid-template-columns: repeat(3, 1fr) !important; } .metric-card { padding: 4mm !important; } a { color: #000 !important; text-decoration: none !important; } img { max-width: 100% !important; page-break-inside: avoid; } } /* Совместимость со старыми учебными шаблонами */ .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; } .card { padding: 18px; } .card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; } .filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; } .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; } .detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }