/* =========================================================
   svitweb.com.ua — main stylesheet
   Brand palette built around #67bebe (teal / tiffany).
   No framework; custom CSS with variables.
========================================================= */

:root {
    /* Brand teal scale */
    --teal-50:  #f0f9f9;
    --teal-100: #d9f0f0;
    --teal-200: #b3e1e1;
    --teal-300: #8cd3d3;
    --teal-400: #67bebe;
    --teal-500: #4ea9a9;
    --teal-600: #3a9090;
    --teal-700: #2d7272;
    --teal-800: #1f5454;
    --teal-900: #133a3a;

    /* Accent — warm sun orange (logo concept) */
    --sun-400: #ffb84d;
    --sun-500: #ff9b1f;
    --sun-600: #e67d00;

    /* Neutrals */
    --bg:           #ffffff;
    --bg-muted:     #f7fafa;
    --bg-section:   #fafdfd;
    --text-dark:    #0f1f1f;
    --text-body:    #334444;
    --text-muted:   #6b7c7c;
    --text-light:   #ffffff;
    --border:       #e4ecec;
    --border-strong:#cfdddd;

    /* Semantic */
    --color-primary: var(--teal-400);
    --color-primary-hover: var(--teal-600);
    --color-accent: var(--sun-500);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 31, 31, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 31, 31, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 31, 31, 0.12);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Container */
    --container-max: 1200px;
    --container-pad: 24px;
}

/* Reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--color-primary-hover); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { color: var(--text-dark); line-height: 1.25; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }

ul, ol { padding-left: 1.25rem; margin: 0 0 1em; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ------------------------ Header ------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding: 14px 0;
}
.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; color: var(--text-dark);
}
.logo:hover { color: var(--text-dark); }
.logo img { width: 32px; height: 32px; }
.logo-text { display: inline-flex; align-items: baseline; gap: 2px; }
.logo-text strong { color: var(--color-primary); }

.main-nav {
    display: flex; align-items: center; gap: 28px;
}
.nav-link {
    color: var(--text-body); font-weight: 500; font-size: 0.95rem;
    padding: 8px 0; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--color-primary); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; gap: 4px; align-items: center; font-size: 0.85rem; }
.lang-switch a {
    padding: 4px 8px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-weight: 500;
}
.lang-switch a.active { background: var(--teal-100); color: var(--teal-800); }
.lang-switch span { color: var(--border-strong); }

.burger-btn {
    display: none; width: 40px; height: 40px; border: none; background: transparent;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger-btn span { width: 22px; height: 2px; background: var(--text-dark); transition: 0.2s; }
.burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------ Buttons ------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; font-weight: 600; font-size: 0.95rem;
    border-radius: var(--radius-md); border: 1px solid transparent;
    transition: all 0.15s; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--color-primary); color: var(--text-light); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--text-light); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--text-light); }
.btn-ghost { background: transparent; color: var(--text-body); }
.btn-ghost:hover { color: var(--color-primary); }
.btn-accent { background: var(--color-accent); color: var(--text-light); }
.btn-accent:hover { background: var(--sun-600); color: var(--text-light); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ------------------------ Hero ------------------------ */
.hero {
    background: linear-gradient(135deg, var(--teal-50) 0%, #ffffff 60%);
    padding: 80px 0 72px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -80px; right: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, var(--sun-400) 0%, transparent 70%);
    opacity: 0.35; pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; }
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; color: var(--text-body); margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------ Sections ------------------------ */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-muted { background: var(--bg-muted); }
.section-dark {
    background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
    color: var(--text-light);
}
.section-dark h2, .section-dark h3 { color: var(--text-light); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-eyebrow {
    display: inline-block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--color-primary); font-weight: 600; margin-bottom: 8px;
}

/* ------------------------ Grids / cards ------------------------ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal-200); }
.card h3 { margin-bottom: 10px; }
.card .card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: var(--teal-100); color: var(--teal-700);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 1.5rem;
}
.card a.card-link { color: var(--color-primary); font-weight: 600; display: inline-block; margin-top: 8px; }

.card-dark { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.card-dark h3 { color: var(--text-light); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    padding-left: 28px; position: relative; margin-bottom: 10px;
}
.check-list li::before {
    content: '✓'; position: absolute; left: 0; top: 0;
    color: var(--color-primary); font-weight: 700;
}

/* ------------------------ Steps ------------------------ */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px; position: relative;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--teal-100); color: var(--teal-800);
    font-weight: 700; margin-bottom: 16px;
}

/* ------------------------ Pricing ------------------------ */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.price-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 28px;
    display: flex; flex-direction: column;
}
.price-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--teal-100);
    position: relative;
}
.price-card.featured::before {
    content: attr(data-badge); position: absolute; top: -12px; right: 20px;
    background: var(--color-primary); color: var(--text-light);
    padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: 0.75rem; font-weight: 600;
}
.price-card h3 { margin-bottom: 4px; }
.price-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.price-amount { font-size: 2rem; font-weight: 700; color: var(--text-dark); }
.price-amount small { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.price-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price-card ul li {
    padding: 8px 0 8px 24px; position: relative; font-size: 0.925rem;
    border-top: 1px solid var(--border);
}
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before {
    content: '✓'; position: absolute; left: 0; top: 8px; color: var(--color-primary); font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* ------------------------ Portfolio ------------------------ */
.portfolio-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.case-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all 0.2s; display: block; color: inherit;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.case-thumb {
    aspect-ratio: 16/10; background: linear-gradient(135deg, var(--teal-300), var(--teal-600));
    display: block; overflow: hidden; position: relative;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-body { padding: 22px 24px; }
.case-tag {
    display: inline-block; background: var(--teal-100); color: var(--teal-800);
    font-size: 0.75rem; font-weight: 600; padding: 3px 10px;
    border-radius: var(--radius-pill); margin-bottom: 10px;
}
.case-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.case-body p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ------------------------ Forms ------------------------ */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-dark); }
.form-control, select.form-control, textarea.form-control {
    width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--bg); color: var(--text-dark); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-control:focus {
    outline: none; border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--teal-100);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.alert {
    padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 18px; font-size: 0.925rem;
}
.alert-success { background: #e6f6ec; color: #1f5937; border: 1px solid #b8e0c5; }
.alert-error   { background: #fdebeb; color: #7a1f1f; border: 1px solid #ecbcbc; }

/* ------------------------ Footer ------------------------ */
.site-footer {
    background: var(--teal-900); color: rgba(255,255,255,0.75);
    padding: 56px 0 28px; margin-top: 80px;
}
.footer-grid {
    display: grid; gap: 32px;
    grid-template-columns: 1.2fr repeat(3, 1fr);
}
.footer-brand p { max-width: 320px; font-size: 0.9rem; margin-top: 12px; }
.footer-col h4 { color: var(--text-light); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-light); }
.footer-bottom {
    margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    font-size: 0.825rem; color: rgba(255,255,255,0.55);
}
.site-footer .logo { color: var(--text-light); }
.site-footer .logo-text strong { color: var(--teal-300); }

/* ------------------------ Floating messengers ------------------------ */
.messenger-widget {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    display: flex; flex-direction: column; gap: 10px;
}
.messenger-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    box-shadow: var(--shadow-md); color: var(--text-light);
    transition: transform 0.15s;
}
.messenger-btn:hover { transform: translateY(-2px); color: var(--text-light); }
.messenger-btn svg { width: 26px; height: 26px; fill: currentColor; }
.messenger-btn.whatsapp { background: #25D366; }
.messenger-btn.telegram { background: #229ED9; }
.messenger-btn.viber    { background: #7360F2; }

/* ------------------------ Utility ------------------------ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ------------------------ Responsive ------------------------ */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 56px 0 48px; }
    .section { padding: 56px 0; }
}
@media (max-width: 720px) {
    .main-nav {
        position: fixed; top: 60px; right: 0; left: 0;
        flex-direction: column; background: var(--bg);
        padding: 20px; border-bottom: 1px solid var(--border);
        transform: translateY(-110%); transition: transform 0.25s;
        box-shadow: var(--shadow-md); gap: 12px; align-items: stretch;
    }
    .main-nav.open { transform: translateY(0); }
    .nav-link { padding: 12px; border-bottom: 1px solid var(--border); }
    .nav-link:last-child { border-bottom: none; }
    .burger-btn { display: inline-flex; }
    .header-actions .btn:not(.btn-sm) { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}
