/*
Theme Name: AmneCore Responsive Theme
Theme URI: https://amnecore.pro
Author: OpenAI
Description: Адаптивная тема AmneCore для WordPress, оптимизированная под ПК и смартфоны.
Version: 2.7.1
Text Domain: amnecore-theme
*/
:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #fcfcff;
  --border: #eceef5;
  --border-strong: #e5e9f3;
  --text: #18315f;
  --muted: #6f7a95;
  --primary: #f1374d;
  --primary-dark: #d92a40;
  --blue: #2d62e8;
  --icon-bg: #fff3f5;
  --success-bg: #eefaf2;
  --success-border: #cbe8d5;
  --success-text: #21643f;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 12px 35px rgba(33, 55, 99, 0.08);
  --container: 1260px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, .hero h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 16px; line-height: 1.75; }
h1,h2,h3,h4 { margin: 0 0 12px; line-height: 1.1; }
button, input, textarea, select { font: inherit; }

.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section { padding: 36px 0; }
.section-lg { padding: 52px 0; }
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.center { text-align: center; }
.section-title { text-align: center; margin-bottom: 26px; }
.section-title h2 { font-size: clamp(30px, 4vw, 46px); }
.section-title p { color: var(--muted); font-size: 18px; max-width: 780px; margin: 0 auto; }
.section-title.left { text-align: left; }
.section-title.left p { margin-left: 0; }
.lead { color: var(--muted); font-size: 20px; max-width: 720px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 248, 252, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 233, 243, 0.82);
}
.navbar {
  min-height: 86px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 0; }
.brand img { width: 170px; height: auto !important; max-height: 56px; object-fit: contain; display: block; }
main { display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; font-weight: 600; font-size: 15px; }
.nav-links a { padding: 8px 0; color: var(--text); position: relative; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; border-radius: 999px; background: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; }
.mobile-nav { display: none; padding-bottom: 18px; }
.mobile-nav .stack { display: grid; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #ff475d, var(--primary)); color: #fff; box-shadow: 0 12px 24px rgba(241, 55, 77, 0.18); }
.btn-outline { border-color: #f4b2bc; color: var(--primary); background: #fff; }
.btn-light { border-color: var(--border-strong); background: #fff; color: var(--text); }
.btn-link { color: var(--primary); padding: 0; background: none; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card-soft { background: var(--surface-soft); }
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.hero { padding: 42px 0 26px; }
.hero h1 { font-size: clamp(42px, 5.8vw, 72px); letter-spacing: -0.03em; margin-bottom: 18px; }
.hero h1 .accent { color: var(--primary); }
.hero-copy p { color: var(--muted); font-size: 22px; max-width: 620px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.hero-checks, .inline-features { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-weight: 600; font-size: 15px; }
.hero-checks span, .inline-features span { display: inline-flex; align-items: center; gap: 10px; }
.hero-checks span::before, .inline-features span::before {
  content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: #fff1f3; color: var(--primary); font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.hero-visual { padding: 18px; display: flex; align-items: center; justify-content: center; }
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  border: 1px solid var(--border);
}
.visual-combo { position: relative; }
.visual-float {
  position: absolute; right: 24px; top: 92px; width: 58%; padding: 10px; background: rgba(255,255,255,0.96);
}
.visual-float img { border-radius: 16px; }

.feature-card, .info-card, .deploy-card, .mini-card, .faq-item, .contact-panel, .cta-box, .testimonial, .screen-card, .operator-card {
  padding: 24px;
}
.icon-badge {
  width: 54px; height: 54px; border-radius: 18px; background: var(--icon-bg); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px;
}
.feature-card h3, .info-card h3, .deploy-card h3, .screen-card h3, .operator-card h3 { font-size: 24px; }
.feature-card p, .info-card p, .deploy-card p, .screen-card p, .operator-card p, .contact-panel p { color: var(--muted); }
.list-check, .list-red { list-style: none; padding: 0; margin: 10px 0 0; }
.list-check li, .list-red li { position: relative; padding-left: 22px; margin: 10px 0; color: var(--muted); }
.list-check li::before, .list-red li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700;
}

.artifact-row { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 14px; }
.artifact-pill, .tech-pill {
  padding: 20px 16px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.artifact-pill strong, .tech-pill strong { display: block; font-size: 24px; margin-bottom: 8px; }
.artifact-pill span, .tech-pill span { color: var(--muted); font-size: 14px; }

.screens-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.screen-card { cursor: zoom-in; }
.screen-card .media {
  background: #fbfcff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.screen-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
}
.screen-card .meta { color: var(--muted); font-size: 14px; }

.operator-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.operator-card .media { border: 1px solid var(--border); border-radius: 16px; padding: 12px; background: #fcfdff; margin-bottom: 16px; }
.operator-card img { border-radius: 12px; }

.quote-box {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; align-items: center; padding: 30px; position: relative;
}
.quote-mark { font-size: 84px; color: #f9ccd2; line-height: 1; }
.quote-avatar { width: 86px; height: 86px; border-radius: 50%; background: linear-gradient(135deg, #d8def1, #f4b2bc); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #18315f; margin-right: 16px; flex-shrink: 0; }
.quote-person { display: flex; align-items: center; justify-content: flex-end; }
.quote-person .name { font-weight: 800; }
.quote-person .role { color: var(--muted); font-size: 14px; }

.cta-box {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border: 1px solid #f7d6dc; background: linear-gradient(180deg, #fffefe, #fffafb);
}
.cta-box h2 { font-size: clamp(30px, 4vw, 44px); }
.cta-box p { color: var(--muted); }
.cta-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-orb {
  width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(241,55,77,.18) 0 18%, rgba(241,55,77,.08) 18% 35%, rgba(241,55,77,.03) 35% 55%, transparent 55%);
}

.scheme-box { padding: 26px; }
.scheme-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; }
.scheme-node {
  padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; text-align: center;
}
.scheme-node img { border-radius: 12px; margin: 0 auto 12px; max-height: 120px; width: auto; }
.arrow { font-size: 30px; color: #90a1c4; text-align: center; }
.scheme-note { margin-top: 16px; text-align: center; color: var(--primary); font-weight: 700; }

.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.faq-item summary {
  list-style: none; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 24px; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--muted); padding-top: 14px; margin-bottom: 0; }

.footer { padding: 18px 0 30px; }
.footer-inner { padding: 18px 0 0; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.15fr repeat(4, .7fr); gap: 18px; align-items: start; }
.footer-brand p, .footer-col li, .footer-col a { color: var(--muted); }
.footer-brand img { width: 150px; margin-bottom: 12px; }
.footer-col h4 { font-size: 16px; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
input, textarea, select {
  width: 100%; border-radius: 14px; border: 1px solid var(--border-strong); background: #fff; padding: 15px 16px; color: var(--text);
}
textarea { min-height: 140px; resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; }
.form-status { display: none; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; }
.form-status.show { display: block; }
.form-status.success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success-text); }
.form-status.error { background: #fff4f4; border: 1px solid #f2c9cd; color: #8b2835; }
.contact-list { display: grid; gap: 12px; }
.contact-line { display: flex; gap: 10px; color: var(--muted); }
.contact-line strong { color: var(--text); }
.notice-box { padding: 18px; background: #fff5f6; border: 1px solid #f5d4da; border-radius: 16px; color: #8d4b57; }

.lightbox {
  position: fixed; inset: 0; background: rgba(21, 32, 56, 0.74); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 120;
}
.lightbox.open { display: flex; }
.lightbox-dialog {
  width: min(1200px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.25); padding: 22px; position: relative;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: none; border-radius: 50%; background: #f7f8fc; color: var(--text); cursor: pointer; font-size: 24px;
}
.lightbox-title { padding-right: 52px; }
.lightbox img { width: 100%; border-radius: 16px; border: 1px solid var(--border); }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fff4f6; border-radius: 999px; color: var(--primary); font-weight: 700; font-size: 13px;
}

@media (max-width: 1120px) {
  .hero-grid, .contact-grid, .cta-box, .footer-top, .scheme-row { grid-template-columns: 1fr; }
  .artifact-row { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .screens-grid, .operator-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .quote-box { grid-template-columns: 1fr; }
  .quote-person { justify-content: flex-start; }
  .arrow { transform: rotate(90deg); }
  .visual-float { position: static; width: 70%; margin: 16px auto 0; }
}

@media (max-width: 860px) {
  .nav-links, .header-actions { display: none; }
  .mobile-toggle { display: inline-flex; }
  .site-header.open .mobile-nav { display: block; }
  .screens-grid, .operator-grid, .artifact-row, .grid-2, .grid-4, .grid-5, .faq-list { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .hero-grid { gap: 28px; }
  .hero-copy p { font-size: 18px; }
  .hero h1 { font-size: 42px; line-height: 1.04; max-width: 100%; }
  .visual-float { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .feature-card, .info-card, .deploy-card, .mini-card, .faq-item, .contact-panel, .cta-box, .testimonial, .screen-card, .operator-card, .scheme-box { padding: 18px; }
  .brand img { width: 144px; }
  .navbar { min-height: 78px; gap: 12px; }
  .mobile-toggle { padding: 13px 18px; border-radius: 16px; }
  .hero-copy p { font-size: 16px; line-height: 1.6; }
  .hero h1 { font-size: 30px; line-height: 1.06; letter-spacing: -0.02em; max-width: 100%; }
  .section { padding: 26px 0; }
  .section-lg { padding: 38px 0; }
  .section-title h2 { font-size: 30px; }
  .btn { padding: 14px 18px; }
}

/* Popup demo form */
.demo-popup{position:fixed;inset:0;background:rgba(16,24,40,.62);display:none;align-items:center;justify-content:center;padding:20px;z-index:9999}
.demo-popup.open{display:flex}
.demo-popup__dialog{width:min(720px,100%);background:#fff;border-radius:24px;box-shadow:0 30px 70px rgba(0,0,0,.25);padding:28px;position:relative}
.demo-popup__close{position:absolute;top:14px;right:14px;border:0;background:#f7f8fc;width:40px;height:40px;border-radius:50%;font-size:28px;cursor:pointer;color:#18315f}
.demo-popup__title{font-size:clamp(28px,4vw,44px);line-height:1.05;margin:0 34px 10px 0;color:#18315f}
.demo-popup__text{color:var(--muted);margin-bottom:18px}
.demo-form{display:grid;gap:14px}
.demo-form__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.demo-form input,.demo-form textarea{width:100%;border-radius:14px;border:1px solid var(--border-strong);padding:15px 16px;background:#fff}
.demo-form textarea{min-height:120px;resize:vertical}
.demo-form__actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.demo-form__consent{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:14px}
.demo-form__consent input{width:auto;margin-top:3px}
.demo-form__status{display:none;padding:14px 16px;border-radius:14px}
.demo-form__status.show{display:block}
.demo-form__status.success{background:var(--success-bg);border:1px solid var(--success-border);color:var(--success-text)}
.demo-form__status.error{background:#fff4f4;border:1px solid #f2c9cd;color:#8b2835}
.demo-telegram{font-size:14px;color:var(--muted)}
.demo-telegram a{color:var(--primary);font-weight:700}
.notice-inline{margin-top:14px;padding:14px 16px;border:1px solid #f2d5da;background:#fff8f9;border-radius:14px;color:#8d4b57}
@media(max-width:860px){.demo-form__row{grid-template-columns:1fr}.demo-form__actions .btn{width:100%}}


/* === v2.1.0 homepage flow and layout refinements === */
[id] { scroll-margin-top: 112px; }
.mobile-toggle { display: none !important; }
@media (max-width: 860px) { .mobile-toggle { display: inline-flex !important; } }

.hero-home { padding: 46px 0 18px; }
.hero-stack { display: grid; gap: 22px; }
.hero-copy--wide, .hero-copy--wide p { max-width: none; }
.hero-copy--wide p { width: 100%; font-size: 22px; }
.hero-home h1 { max-width: none; width: 100%; font-size: clamp(54px, 6.2vw, 78px); }
.hero-visual--full { width: 100%; padding: 22px; }
.hero-visual--full img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.hero-actions--after-visual { margin: 4px 0 0; }
.hero-checks--wide { margin-top: 0; }

.nav-links a, .mobile-nav [data-nav-link] { transition: color .2s ease; }
.mobile-nav [data-nav-link].active { border-color: #f4b2bc; color: var(--primary); }

.cta-copy__top { display: flex; gap: 18px; align-items: center; }
.footer-top--clean { grid-template-columns: 1.3fr .9fr .9fr; gap: 28px; }
.footer-col a:hover, .footer-brand a:hover { color: var(--primary); }
.footer-bottom { padding-top: 14px; border-top: 1px solid var(--border); }

@media (max-width: 1120px) {
  .hero-home h1 { font-size: clamp(44px, 7vw, 62px); }
  .footer-top--clean { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  [id] { scroll-margin-top: 92px; }
  .hero-copy--wide p { font-size: 18px; }
  .hero-home h1 { font-size: 42px; }
  .hero-actions--after-visual { gap: 12px; }
  .cta-copy__top { align-items: flex-start; }
}

@media (max-width: 640px) {
  .hero-home { padding-top: 26px; }
  .hero-home h1 { font-size: 30px; }
  .hero-copy--wide p { font-size: 16px; }
  .hero-visual--full { padding: 14px; }
  .hero-actions--after-visual .btn { width: 100%; }
  .hero-checks--wide { gap: 12px; }
  .cta-copy__top { flex-direction: column; }
}

/* === v2.3.0 SEO/accessibility refinements === */
.telegram-link, [data-telegram-link] { cursor: pointer; }
.contact-line a, .demo-telegram a, .footer a { word-break: break-word; }
.demo-popup__dialog { overflow: auto; max-height: calc(100vh - 40px); }
img[loading="lazy"] { content-visibility: auto; }


/* === v2.7.0 SEO structure improvements === */
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs__item:not(:last-child)::after { content: "/"; color: #b2bccf; }
.breadcrumbs__item a { color: var(--muted); }
.breadcrumbs__item a:hover { color: var(--primary); }
.breadcrumbs__item.is-current span { color: var(--text); font-weight: 700; }
.seo-section { padding-top: 10px; }
.two-col-copy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.content-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.center-links { justify-content: center; }
.card.contact-panel h3 + .list-check { margin-top: 12px; }
.footer-col a:hover { color: var(--primary); }
@media (max-width: 1120px) {
  .two-col-copy { grid-template-columns: 1fr; }
}



/* === v2.7.1 header/logo hotfix === */
@media (max-width: 860px) {
  .navbar { min-height: 78px; padding: 10px 0; }
  .brand img { width: 146px; max-height: 46px; }
}


@media (max-width: 640px) {
  .screen-card .media { aspect-ratio: 4 / 3; }
}


/* v2.3.2 hero dashboard ratio fix */
.hero-visual,
.hero-visual--full {
  overflow: hidden;
}
