:root {
    --sidebar: 219px;
    --ink: #333;
    --link: #0c4f7c;
    --purple: #891eb8;
    --paper: #fdfdfd;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, "Liberation Sans", sans-serif;
    font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid #147dc1; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h2 { font-family: Inter, "DejaVu Sans", sans-serif; }
.sidebar {
    width: var(--sidebar); position: fixed; inset: 0 auto 0 0; z-index: 10;
    background: var(--paper); box-shadow: 1px 0 7px #0001;
}
.logo { display: block; margin: 46px 0 52px 33px; width: 144px; }
.logo img { display: block; }
.mobile-menu { display: none; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-row { display: flex; align-items: flex-start; margin: 0 14px 0 34px; }
.nav-row a {
    display: block; flex: 1; padding: 9px 0 10px; max-width: 153px;
    font-size: 13px; line-height: 14px; font-weight: 700; color: #2b2b2b;
}
.nav-row a.accent, .submenu a[aria-current] { color: var(--link); }
.nav-row a:hover, .submenu a:hover { color: #166495; text-decoration: none; }
.submenu-toggle { width: 27px; height: 32px; border: 0; background: none; color: #20262b; display: grid; place-items: center; }
.submenu-toggle span { width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
.sidebar .submenu {
    display: none; position: absolute; top: -26px; left: 100%; z-index: 11;
    width: 240px; padding: 20px 0; border-left: 3px solid #137ac3;
    background: var(--paper); box-shadow: 0 2px 7px #0002;
    max-height: min(600px, calc(100dvh - var(--submenu-top, 250px) + 26px)); overflow-y: auto;
}
.submenu a { display: block; padding: 12px 22px 12px 40px; color: #292929; font-size: 13px; font-weight: 700; line-height: 16px; }
.submenu a:hover { background: #f5f9fc; }
.nav-item.is-open .submenu, .nav-item:focus-within:not(.is-dismissed) .submenu { display: block; }
@media (min-width: 961px) and (hover: hover) {
    .nav-item:hover:not(.is-dismissed) .submenu { display: block; }
}
.site { margin-left: var(--sidebar); }
.wrap { width: min(1095px, calc(100% - 80px)); margin-inline: auto; position: relative; left: 10px; }
.topbar { background: #fff; color: #080808; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; min-height: 34px; }
.topbar a { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: inherit; font-weight: 700; }
.topbar svg { width: 13px; height: 13px; }
.hero {
    min-height: 663px; padding: 86px 0 90px; color: white;
    background: #267e9b url("/assets/factory.webp") center center / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; align-items: start; gap: 45px; }
.hero-copy h1 { font-size: 30px; font-weight: 400; line-height: 1.15; margin-bottom: 28px; }
.hero-copy p { font-size: 18px; line-height: 1.45; margin-bottom: 0; }
.hero-copy .hero-lead { font-size: 22px; margin-bottom: 24px; }
.hero-copy .warehouse { margin-top: 46px; }
.pellets { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 58px; margin-left: 4px; }
.pellets a { display: block; border-radius: 50%; transition: transform .15s; }
.pellets a:hover { transform: translateY(-3px); }
.pellets img { display: block; }
.feedback { background: var(--paper); color: var(--ink); padding: 10px; scroll-margin: 18px; }
.feedback h2 { font-size: 22px; line-height: 29px; margin: 0 0 18px; }
.feedback input, .feedback textarea {
    width: 100%; display: block; height: 53px; color: #333;
    border: 1px solid #dedede; border-radius: 10px; background: transparent; padding: 14px 16px; margin-bottom: 10px;
}
.feedback textarea { resize: vertical; min-height: 53px; padding-top: 16px; margin-bottom: 5px; }
.feedback input::placeholder, .feedback textarea::placeholder { color: #797979; opacity: .65; }
.form-actions { display: flex; align-items: center; justify-content: end; gap: 18px; }
.captcha { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 14px; color: #666; }
.captcha input { width: 50px; margin: 0; padding: 6px; text-align: center; }
.purple {
    display: inline-grid; place-items: center; min-height: 56px; padding: 12px 26px;
    background: var(--purple); border: 0; border-radius: 3px; color: white; text-align: center;
    font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.purple:hover { background: #74169d; text-decoration: none; }
.form-status { margin: 10px 0 0; font-size: 14px; line-height: 1.35; }
.form-status:empty, .chat-status:empty { display: none; }
.about { padding: 90px 0 75px; background: #f5f5f5; }
.about-panel {
    min-height: 445px; padding: 84px; border-radius: 9px;
    background: #2388b7 url("/assets/pipes.webp") right top / auto 100% no-repeat;
}
.about-card { width: min(471px, 100%); background: #fff; padding: 60px 40px 48px; border-radius: 5px; }
.about-card h2, .cooperate h2 { font-size: 30px; line-height: 1.3; }
.about-card p, .cooperate p { color: #666; line-height: 1.7; }
.cooperate { text-align: center; padding-top: 65px; }
.contact-section { padding: 117px 0; }
.contact-section.standalone { border-top: 4px solid transparent; border-image: linear-gradient(90deg, #318eb8, #5abd90) 1; }
.contacts-grid { display: grid; grid-template-columns: 42.2% minmax(0, 1fr); align-items: start; padding-right: 16px; }
.sales h2 { font-size: 22px; margin: 3px 0 58px; }
.sales-person { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 2px 14px; padding-right: 18px; margin-bottom: 37px; font-size: 14px; line-height: 1.7; }
.sales-person h3 { font-size: 18px; line-height: 1.4; font-weight: 400; margin: 0 0 7px; }
.sales-person a { display: block; font-weight: 700; color: #161616; }
.sales-person svg { width: 32px; height: 32px; color: #13497d; }
.office { border: 1px solid #d6d6d6; font-size: 14px; }
.office-heading { background: #f2f2f2; border-bottom: 1px solid #d6d6d6; }
.office-heading span { display: inline-block; padding: 8px 30px; font-weight: 700; border-right: 1px solid #d6d6d6; background: var(--paper); }
.office-body { padding: 25px 0 24px 20px; }
.office address { font-style: normal; font-weight: 700; color: #626262; line-height: 24px; margin-bottom: 14px; padding-right: 12px; }
.office address strong { color: #09365f; }
.office address a { color: inherit; }
.map { position: relative; height: 374px; background: #e9efe4; overflow: hidden; }
.map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map iframe { border: 0; width: 100%; height: 100%; }
.map-toggle { position: absolute; bottom: 8px; left: 8px; border: 1px solid #d2d2d2; border-radius: 4px; background: #fff; color: #333; padding: 8px 11px; font-size: 12px; }
.map-link { display: inline-block; padding: 4px 7px; font-size: 11px; }
.inner { min-height: 580px; padding-block: 72px 100px; line-height: 1.65; }
.inner h1 { font-size: clamp(23px, 3vw, 30px); line-height: 1.25; margin: 0 0 24px; font-weight: 600; }
.inner h2 { font-size: 21px; margin: 28px 0 10px; }
.inner > p { max-width: 840px; }
.back { display: inline-block; margin-bottom: 18px; font-size: 13px; }
.table-scroll { width: 100%; overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
th, td { border: 1px solid #d5dce0; padding: 13px 16px; text-align: left; vertical-align: top; }
th { background: #edf3f7; }
td:first-child { font-weight: 700; }
tbody tr:nth-child(even) { background: #f7f8f9; }
.sources { font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.product-request { margin-top: 26px; }
.news-list article { border-bottom: 1px solid #dedede; padding: 20px 0; margin-bottom: 15px; }
.news-list time { color: #646464; font-size: 13px; }
.news-list h2 { margin-top: 4px; }
.news-list p { margin-bottom: 0; }
.footer { color: #bdbdbd; background: #2b2b2b; padding-bottom: 25px; }
.footer-space { height: 124px; background: #222; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 19px 0; }
.footer a { color: inherit; font-size: 14px; font-weight: 700; }
.footer a[aria-current] { color: #40a3dd; }
.footer p { margin: 0; font-size: 13px; }
.chat {
    position: fixed; z-index: 8; right: 16px; bottom: 0; width: 344px;
    padding: 0 4px 16px; border-radius: 11px 11px 0 0;
    background: linear-gradient(125deg,#2c682f,#3459a6); box-shadow: 2px 2px 13px #0003;
}
.chat-header { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 9px 10px 11px; border: 0; color: white; background: none; text-align: left; font-size: 15px; }
.chat-header img { border-radius: 50%; }
.chat-header small { display: block; margin-top: 3px; font-size: 12px; }
.chat-toggle { align-self: start; margin: 3px 5px 0; font-size: 26px; line-height: 1; }
.chat-body { height: min(361px, 58dvh); background: #fff; padding: 12px 15px 15px; display: flex; flex-direction: column; justify-content: space-between; }
.chat-messages { overflow-y: auto; }
.chat-messages p { max-width: 90%; padding: 13px 15px; margin: 0 0 21px; border: 1px solid #d9d6d0; border-radius: 14px; color: #101010; background: #f8f8f8; font-size: 13px; line-height: 1.2; }
.chat-messages p.outgoing { margin-left: auto; background: #e9f2fd; border-color: #d5e1f0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-input { display: flex; padding: 4px 8px 4px 14px; align-items: center; border: 1px solid #d9d6d0; border-radius: 18px; }
.chat-input input { width: 100%; min-width: 0; height: 27px; padding: 0; border: 0; background: transparent; font-size: 13px; }
.chat-input button { border: 0; border-radius: 50%; width: 22px; height: 22px; flex: 0 0 22px; color: #fff; background: #345cba; font-size: 22px; line-height: 19px; padding: 0 0 2px; }
.chat-contact { display: grid; gap: 4px; margin-bottom: 6px; font-size: 12px; }
.chat-contact input { width: 100%; padding: 6px 9px; border: 1px solid #d9d6d0; border-radius: 5px; }
.chat-status { margin: 5px 0 0; color: #444; font-size: 12px; }
.chat.collapsed { padding-bottom: 0; width: 235px; }
@media (max-height: 720px) and (min-width: 961px) {
    .logo { margin-top: 24px; margin-bottom: 24px; }
    .nav-row a { padding-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 1350px) {
    .wrap { left: 0; width: calc(100% - 64px); }
    .hero-grid { gap: 28px; }
    .contacts-grid { grid-template-columns: 40% minmax(0,1fr); padding-right: 0; }
}
@media (max-width: 1100px) {
    .about-panel { padding: 50px; }
    .hero { min-height: 620px; }
    .hero-grid { grid-template-columns: minmax(0,1fr) 310px; }
    .form-actions { gap: 10px; }
    .purple { padding-inline: 19px; }
}
@media (max-width: 960px) {
    .sidebar { width: 100%; position: relative; min-height: 74px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .logo { margin: 7px 0 6px 17px; }
    .mobile-menu { display: block; margin-right: 17px; padding: 8px 12px; color: var(--link); border: 1px solid #cedae0; border-radius: 4px; background: white; font-weight: 700; }
    .sidebar nav { width: 100%; }
    .js .sidebar nav:not(.mobile-open) { display: none; }
    .sidebar nav > ul { padding-bottom: 12px; }
    .nav-row { margin-inline: 22px; justify-content: space-between; border-top: 1px solid #eef2f5; }
    .nav-row a { max-width: none; padding: 12px 0; }
    .submenu-toggle { height: 38px; width: 42px; }
    .sidebar .submenu { position: static; width: auto; margin: 0 22px 10px; padding: 0; max-height: none; box-shadow: none; }
    .nav-item:focus-within:not(.is-open) .submenu { display: none; }
    .submenu a { padding: 9px 17px; }
    .site { margin-left: 0; }
    .hero { padding-block: 56px; min-height: 0; }
    .contacts-grid { grid-template-columns: 40% minmax(0,1fr); }
    .chat { right: 10px; }
}
@media (max-width: 680px) {
    .wrap { width: calc(100% - 34px); }
    .topbar .wrap { gap: 3px 15px; padding-block: 7px; }
    .hero-grid, .contacts-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 27px; margin-bottom: 20px; }
    .hero-copy .hero-lead { font-size: 20px; margin-bottom: 15px; }
    .hero-copy p { font-size: 16px; }
    .hero-copy .warehouse { margin-top: 20px; }
    .pellets { margin: 22px 0 0; gap: 7px; }
    .pellets img { width: 51px; height: 51px; }
    .feedback { width: min(100%, 400px); }
    .form-actions { justify-content: space-between; }
    .about { padding-block: 36px; }
    .about-panel { padding: 25px; min-height: 0; }
    .about-card { padding: 25px 20px; }
    .about-card h2, .cooperate h2 { font-size: 24px; }
    .cooperate { padding-top: 36px; }
    .contact-section, .inner { padding-block: 50px; }
    .sales h2 { margin-bottom: 28px; }
    .office-body { padding-left: 12px; }
    .map { height: 275px; }
    .footer-space { height: 60px; }
    .footer { padding-bottom: 86px; }
    .chat { max-width: calc(100% - 20px); }
    .chat.collapsed { width: 163px; }
    .chat.collapsed .chat-header { grid-template-columns: 31px 1fr auto; padding: 7px 5px; gap: 7px; font-size: 13px; }
    .chat.collapsed img { width: 31px; height: 31px; }
    .chat.collapsed small { display: none; }
}
