* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #f7f9fc;
    color: #1f2937;
}

#header {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 30px 50px;
    position: relative;
    overflow: hidden;
    color: white;
}

.med-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(7, 20, 42, 0.78) 0%,
        rgba(7, 20, 42, 0.62) 45%,
        rgba(7, 20, 42, 0.38) 100%
    );
    z-index: 1;
}

.header-left,
.header-right {
    position: relative;
    z-index: 2;
}

.header-left {
    width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0 40px;
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    width: 360px;
    max-width: 100%;
    display: block;
    vertical-align: top;
}

.hero-text {
    max-width: 600px;
    margin-top: auto;
    padding-bottom: 30px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: 0.3s ease;
}

.hero-btn.secondary {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.header-right {
    width: 42%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-top: 10px;
}

.contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 28px;
}

.contact-link {
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: 400;
    transition: 0.3s ease;
}

.contact-link:hover {
    opacity: 0.75;
}

.nav {
    display: flex;
    gap: 28px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    text-decoration: none;
    color: white;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: white;
    transition: 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 430px;
}

.category-btn {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-radius: 24px;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.category-btn h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.category-btn .icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 16px;
    margin-right: 18px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.medicine {
    background: linear-gradient(135deg, rgba(64, 133, 255, 0.95), rgba(49, 84, 214, 0.95));
}

.veterinary {
    background: linear-gradient(135deg, rgba(157, 92, 255, 0.95), rgba(109, 55, 201, 0.95));
}

.agro {
    background: linear-gradient(135deg, rgba(31, 174, 58, 0.95), rgba(14, 112, 36, 0.95));
}

.materials {
    background: linear-gradient(135deg, rgba(95, 95, 95, 0.95), rgba(56, 56, 56, 0.95));
}

.category-btn:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.45);
}

.seo-title {
    position: absolute;
    left: -9999px;
}

.footer {
    background-image: url(footer.png);
    color: white;
    padding: 60px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-left a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 400;
    transition: 0.3s;
}

.footer-left a:hover {
    opacity: 0.6;
}

.footer-right {
    text-align: right;
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
}

.footer-right p {
    margin-bottom: 10px;
}

html {
    scroll-behavior: smooth;
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
}

.contact-link:hover {
    opacity: 0.7;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 26px;
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
}

.modal-close:hover {
    color: #1e293b;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
}

.contact-form .form-row {
    margin-bottom: 18px;
}

.contact-form .form-row-inline {
    display: inline-block;
    width: calc(50% - 9px);
    vertical-align: top;
}

.contact-form .form-row-inline:first-of-type {
    margin-right: 18px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3154d6;
    box-shadow: 0 0 0 3px rgba(49, 84, 214, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .phone-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
}

.contact-form .phone-prefix {
    padding: 12px 10px 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    user-select: none;
}

.contact-form .phone-input-wrap .phone-input-value {
    flex: 1;
    border: none;
    border-radius: 0;
    min-width: 0;
}

.contact-form .form-submit {
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3154d6, #1e3a9a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 84, 214, 0.35);
}

@keyframes fadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.medicine-products {
    padding: 90px 40px;
    background: linear-gradient(180deg, #f6f9ff 0%, #eef4fb 100%);
}

.products-intro {
    max-width: 1100px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-label {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(79, 110, 219, 0.1);
    color: #3154d6;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.products-intro h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    color: #0f172a;
    margin-bottom: 18px;
    font-weight: 700;
}

.section-description {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
}

.intro-badges {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.intro-badge {
    padding: 12px 18px;
    border-radius: 999px;
    background: white;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.suppliers-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: start;
}

.supplier-card {
    background: white;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.supplier-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.supplier-head h3 {
    font-size: 26px;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
}

.supplier-head p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

.accordion-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-group {
    border: 1px solid #dbe5f0;
    border-radius: 18px;
    overflow: hidden;
    background: #f8fbff;
    transition: 0.3s ease;
}

.product-group[open] {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.product-group summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    transition: 0.3s ease;
}

.product-group summary::-webkit-details-marker {
    display: none;
}

.product-group summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #3154d6;
    transition: 0.3s ease;
}

.product-group[open] summary::after {
    content: "−";
}

.product-group summary:hover {
    background: #f1f7ff;
}

.product-items {
    list-style: none;
    padding: 0 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.product-name {
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
    font-weight: 500;
}

.product-code {
    font-size: 14px;
    color: #3154d6;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(49, 84, 214, 0.08);
    padding: 8px 12px;
    border-radius: 999px;
}

.floating-feedback-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5c76d2, #34488a);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(49, 84, 214, 0.35);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.floating-feedback-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-feedback-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(49, 84, 214, 0.45);
}

.product-item-with-subitems {
    display: block !important;
    padding: 18px !important;
}

.product-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.sub-product-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-product-items li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe5f0;
}

.sub-product-name {
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
    font-weight: 500;
}

.sub-product-code {
    font-size: 13px;
    color: #3154d6;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(49, 84, 214, 0.08);
    padding: 6px 10px;
    border-radius: 999px;
}
#scrollTopBtn {
    position: fixed;
    right: 20px;
    bottom: 80px; /* було 20px */

    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3154d6, #1e3a9a);
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);

    transition: 0.3s ease;
    z-index: 9999;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
}

.floating-buttons{
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}