/* BODY */
* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    margin: 0;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
    top: 0 !important;
}

/* HEADER */
header {
    background: white;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.logo-area {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
}

.nav-logo {
    height: 50px;
    width: auto;
    display: inline-block; 
    vertical-align: middle; 
}

/* MAIN MENU */
.menu-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.main-nav {
    display: flex;
    gap: 25px;
    margin: 0 auto;
}

.main-nav a, .auth-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.main-nav a:hover, .auth-nav a:hover { color: #43919b; }

.auth-lang-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-nav {
    display: flex;
    gap: 15px;
    border-left: none;
    padding-left: 15px;
}


/* SECTIONS */
.section {
    padding: 80px 5%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
        opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Оптимизация для браузера */
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background: #ebf2f3;
}

/* HEADLINES */
h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

/* BUTTONS */
.btn {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    width: 100%;
    text-align: center;
}

.btn-primary, .btn-secondary { background: #43919b; color: white; margin-top: auto;}
.btn:hover { opacity: 0.9; transform: scale(1.02); background: #306a71; }

/* PRODUCTS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}
.product-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-description {
    color: #7f8c8d;
    font-size: 0.9rem;
    overflow: hidden;
    max-height: 9.5em;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-bottom: 20px;
    display: block;
    transition: max-height 0.3s ease;
}

.read-more-state:checked + .product-description {
    max-height: 2000px;
}

.product-description:after {
    content: '▼';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #43919b;
}

.read-more-state:checked + .product-description:after {
    content: '▲';
}

/* FORMS */
.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.form-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; }

/* FORMS SEND-CONTACT */
.contact-form-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form-container.compact-mode {
    padding-top: 10px;
}

.divider-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 35px auto 25px auto;
    max-width: 850px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}
.divider-heading {
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px !important;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 30px !important;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group.full-width {
    flex: none;
    width: 100%;
}

.form-group label {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
}

.custom-contact-form .form-group input,
.custom-contact-form .form-group select,
.custom-contact-form .form-group textarea {
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    margin-bottom: 0 !important;
    font-size: 16px;
    background: transparent;
    outline: none;
    width: 100%;
    color: #333;
    transition: border-color 0.2s;
}

.custom-contact-form .form-group input:focus,
.custom-contact-form .form-group select:focus,
.custom-contact-form .form-group textarea:focus {
    border-bottom-color: #43919b !important;
}

.custom-contact-form .form-group select option {
    background-color: #ffffff;
    color: #333333;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '❯';
    font-size: 10px;
    color: #999;
    transform: rotate(90deg);
    position: absolute;
    right: 5px;
    top: 15px;
    pointer-events: none;
}

.custom-contact-form .form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 20px;
}

.form-services {
    margin-top: 15px;
}

.services-title {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.services-grid.layout-4-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px 20px !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #444;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    position: relative;
    margin-bottom: 0 !important;
    padding: 0 !important;
    transition: background 0.2s, border-color 0.2s;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #43919b;
    border-color: #43919b;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.line-break-top {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    margin-top: 10px;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .services-grid.layout-4-columns {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 колонки на планшетах */
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 25px !important;
    }
}

@media (max-width: 576px) {
    .services-grid.layout-4-columns {
        grid-template-columns: 1fr !important; /* 1 колонка на смартфонах */
        gap: 12px !important;
    }
    .divider-with-text {
        gap: 10px !important;
    }
    .divider-heading {
        font-size: 0.85rem !important;
    }
}

/* SOCIAL LINKS */
.social-links { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px; 
    font-size: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f4f4f4;
    color: #555;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #fff;
}

.social-links a.wa:hover { background-color: #25D366; }
.social-links a.tg:hover { background-color: #0088cc; }
.social-links a.ln:hover { background-color: #00c300; }
.social-links a.fb:hover { background-color: #1877F2; }
.social-links a.li:hover { background-color: #0077B5; }

#contacts p i {
    margin-right: 5px;
}

/* FOOTER */
.footer { padding: 40px; text-align: center; color: #bdc3c7; }

/* MOBILE VERSION FOR 768px */
@media (max-width: 768px) {
    header {
        padding: 5px 15px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .logo-area {
        width: 100%;
        text-align: left;
        margin-bottom: 0; 
    }

    .nav-logo {
        max-height: 40px; 
    }
    
    .menu-area {
        width: 100%;
        flex-direction: column;
        margin: 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .auth-lang-group {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
    }
    
    .auth-nav {
        border-left: none;
        padding-left: 0;
        gap: 15px;
    }

    .forms-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 30px 5%;
    }
}

/* MOBILE VERSION FOR 480px */
@media (max-width: 480px) {
    header {
        padding: 5px 10px;
    }

    .nav-logo {
        max-height: 35px;
    }

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .menu-area {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .auth-lang-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section {
        padding: 25px 5%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        padding: 20px;
    }

    .forms-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    h2 {
        font-size: 1.6rem;
    }
}

/* RABBIT MENU */
.rabbit-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.rabbit {
  width: 120px;
  height: 80px;
  background: url('/images/krolik.png') no-repeat center/contain;
  cursor: pointer;
  animation: hop 1.5s ease-in-out infinite;
}

.rabbit-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  min-width: 180px;
}

.rabbit-container:hover .rabbit-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.rabbit-container:hover .rabbit {
  animation-play-state: paused;
}

.menu-item {
  text-decoration: none;
  color: #333;
  font-family: sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.menu-item:hover {
  background: #f0f0f0;
}

.menu-item i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  color: #555;
}

.menu-item:hover .fa-facebook-messenger {
  color: #0084FF;
}

.menu-item:hover .fa-line {
  color: #06C755;
}

.menu-item:hover .fa-whatsapp {
  color: #25D366;
}

.menu-item:hover .fa-envelope {
  color: #ea4335;
}


@keyframes hop {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -15px); }
}

@media (max-width: 480px) {
  .rabbit-container {
    bottom: 20px;
    right: 15px;
  }
  .rabbit {
    width: 80px;
    height: 60px;
  }
}


/* DASHBOARD */
.dashboard-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.user-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.user-card__title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.user-card__subtitle {
    color: #888;
    margin-bottom: 25px;
}

.user-card__info-box {
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.user-card__info-box strong {
    color: #4CAF50;
}

.btn-logout {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff5e57;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-logout:hover {
    background-color: #ff3b30;
}

/* CHANGE PASSWORD - DASHBOARD */
.password-change-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: left;
}

.password-change-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.password-change-section input {
    width: 100%;
    padding: 12px;
    padding-right: 40px !important; 
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.password-change-section input:focus {
    border-color: #4CAF50;
    outline: none;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper i {
    position: absolute;
    right: 12px;
    top: 14px; 
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.password-input-wrapper i:hover {
    color: #4CAF50;
}

.btn-save {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-save:hover {
    background-color: #45a049;
}

.msg {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}
.msg_success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.msg_error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* RABBIT BUTTON - DASHBOARD */
.rabbit-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 80px;
  height: 80px;
  background-image: url('/images/krolik.avif');
  background-size: cover;
  background-position: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.rabbit-button:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .rabbit-button {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
}

.rabbit-link {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
}
