/* ========================================
   RestSolution - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8A5C;
    --secondary: #2D3748;
    --text: #2D3748;
    --text-light: #718096;
    --text-muted: #A0AEC0;
    --bg: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #EDF2F7;
    --border: #E2E8F0;
    --success: #48BB78;
    --warning: #ECC94B;
    --danger: #F56565;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.logo__accent {
    color: var(--primary);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown .fa-chevron-down {
    font-size: 10px;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

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

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.header-phone i {
    color: var(--primary);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background-color: white;
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu__close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
}

.mobile-menu__nav {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu__nav a {
    display: block;
    padding: 15px 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-menu__nav a:hover {
    color: var(--primary);
}

.mobile-menu__footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.mobile-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 15px;
}

.mobile-phone i {
    color: var(--primary);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
    padding-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__content {
    max-width: 600px;
}

.hero__subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 20px;
    padding: 8px 16px;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius);
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--secondary);
}

.hero__title span {
    color: var(--primary);
}

.hero__desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero__stats {
    display: flex;
    gap: 40px;
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.hero__stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.hero__image {
    position: relative;
}

.hero__image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero__image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    z-index: -1;
}

/* ========================================
   Section Styles
   ======================================== */

.section {
    padding: 100px 0;
}

.section--light {
    background-color: var(--bg-light);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section__subtitle {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section__title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section__desc {
    font-size: 16px;
    color: var(--text-light);
}

/* ========================================
   Services Section
   ======================================== */

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
}

.service-card__icon i {
    font-size: 32px;
    color: white;
}

.service-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card__link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.service-card__link i {
    margin-left: 4px;
    transition: var(--transition);
}

.service-card__link:hover i {
    transform: translateX(4px);
}

/* ========================================
   Tariffs Section
   ======================================== */

.tariffs__table-wrapper {
    overflow-x: auto;
}

.tariffs__table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tariffs__table th,
.tariffs__table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.tariffs__table th {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    background-color: var(--bg-light);
}

.tariffs__table th:first-child {
    text-align: left;
}

.tariffs__table td:first-child {
    text-align: left;
    font-weight: 500;
}

.tariffs__table tr:hover {
    background-color: var(--bg-light);
}

.tariff-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.tariff-price {
    font-size: 14px;
    color: var(--text-light);
}

.tariff-price .price {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.tariffs__cta {
    margin-top: 40px;
    text-align: center;
}

/* ========================================
   Portfolio Section
   ======================================== */

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-card__image img {
    transform: scale(1.1);
}

.portfolio-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(45, 55, 72, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-card__overlay {
    opacity: 1;
}

.portfolio-card__title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.portfolio-card__category {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.portfolio-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ========================================
   Contact Section
   ======================================== */

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.contact-item__icon i {
    font-size: 24px;
    color: var(--primary);
}

.contact-item__content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-item__content p,
.contact-item__content a {
    font-size: 16px;
    color: var(--text-light);
}

.contact-item__content a:hover {
    color: var(--primary);
}

.contact__form {
    background-color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact__form h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

/* ========================================
   Forms
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-file {
    position: relative;
}

.form-file input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form-file__label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-light);
    background-color: var(--bg-light);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.form-file:hover .form-file__label {
    border-color: var(--primary);
    color: var(--primary);
}

.form-file__label i {
    font-size: 18px;
}

/* ========================================
   Modal
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 20px;
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__content--center {
    text-align: center;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--danger);
}

.modal__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background-color: rgba(72, 187, 120, 0.1);
    border-radius: 50%;
}

.modal__icon i {
    font-size: 40px;
    color: var(--success);
}

.modal__title {
    font-size: 24px;
    margin-bottom: 12px;
}

.modal__desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--secondary);
    color: white;
    padding: 80px 0 30px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
}

.footer__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__list a:hover {
    color: var(--primary);
}

.footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer__contacts i {
    color: var(--primary);
    margin-top: 3px;
}

.footer__contacts a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__contacts a:hover {
    color: var(--primary);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
    color: var(--primary);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero__title {
        font-size: 40px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .header-actions {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__title {
        font-size: 32px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__image {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 28px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .portfolio__grid {
        grid-template-columns: 1fr;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 28px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__stats {
        flex-direction: column;
        gap: 20px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }
}

/* ========================================
   Utilities
   ======================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

/* Flash Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background-color: rgba(245, 101, 101, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-warning {
    background-color: rgba(236, 201, 75, 0.1);
    color: #975A16;
    border: 1px solid var(--warning);
}
