@font-face {
    font-family: 'Geologica';
    src: url("/static/landing/fonts/Geologica/Geologica-VariableFont_CRSV,SHRP,slnt,wght.2926daa6f6c9.ttf") format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Geologica', sans-serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    max-width: 1920px;
    width: 100%;
    transform-origin: 0 0;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

:root {
    --white: #ffffff;
    --pink-bg: #ede4e4;
    --red: #d93025;
    --red-hover: #c42a1f;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #555555;
}

.container { width: 72%; max-width: 1400px; margin: 0 auto; padding: 0 40px; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; max-width: 1920px; width: 100%; background: var(--white); }
.header .container { display: flex; align-items: center; height: 56px; gap: 36px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 20px; font-weight: 400; line-height: 1; transition: color 0.2s; white-space: nowrap; }
.nav a:hover { color: var(--red); }
.header-contacts { display: flex; align-items: center; gap: 24px; }
.header-phone { font-size: 20px; font-weight: 700; line-height: 1; white-space: nowrap; }
.header-email { font-size: 20px; color: var(--text-gray); line-height: 1; white-space: nowrap; font-weight: 400; }

.hero { position: relative; margin-top: 56px; overflow: hidden; background: #2a2a40; }
.hero-bg { position: relative; }
.hero-bg img { width: 100%; height: auto; display: block; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 1; max-width: 750px; text-align: left; }
.hero-content h1 { font-size: 86px; font-weight: 800; line-height: 1.15; color: var(--text-light); margin-bottom: 18px; }
.h1-line { display: block; white-space: nowrap; }
.hero-subtitle { font-size: 22px; font-weight: 700; color: var(--text-light); margin-bottom: 36px; }
.hero-features { display: flex; align-items: center; gap: 10px; font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 50px; white-space: nowrap; }
.hero-features span::after { content: ' | '; color: rgba(255,255,255,0.3); }
.hero-features span:last-child::after { display: none; }
.hero-cta { display: flex; align-items: center; gap: 20px; }
.hero-cta .strelka { width: 64px; height: 64px; filter: brightness(0) invert(1); }

.btn-pill { display: inline-flex; align-items: center; justify-content: center; background: rgb(204, 0, 0); color: var(--text-light); font-family: 'Geologica', sans-serif; font-size: 22px; font-weight: 400; padding: 10px 36px; border-radius: 15px; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s; white-space: nowrap; }
.btn-pill:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-dark { display: inline-flex; align-items: center; justify-content: center; background: var(--text-dark); color: var(--text-light); font-family: 'Geologica', sans-serif; font-size: 17px; font-weight: 500; padding: 12px 40px; border-radius: 18px; border: none; cursor: pointer; transition: background 0.2s; white-space: nowrap; min-width: 240px; }
.btn-dark:hover { background: #333; }

.section-title { font-size: 50px; font-weight: 700; text-align: center; color: var(--text-dark); margin-bottom: 56px; line-height: 1.25; margin-top: -75px; }

.why-section { padding: 120px 0 100px; background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.why-card { position: relative; padding-top: 60px; padding-left: 20px; }
.why-card-num { position: absolute; top: -10px; left: -10px; width: 200px; height: auto; pointer-events: none; z-index: 0; }
.why-card-content { position: relative; z-index: 1; padding-top: 10px; }
.why-card p { font-size: 16px; color: var(--text-gray); line-height: 1.65; margin-left: -25px; margin-top: 15px; }
.why-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }

.portfolio-section { padding: 90px 0 70px; background: #d5c5c5; }
.portfolio-section .section-title { color: var(--text-light); font-size: 52px; margin-top: -50px; margin-bottom: 30px; }
.portfolio-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.portfolio-item { overflow: hidden; background: #ccc; }
.portfolio-item a { display: block; width: 100%; height: 100%; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.portfolio-item:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.portfolio-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.portfolio-item:nth-child(4) { grid-column: 1; grid-row: 2; }
.portfolio-item:nth-child(5) { grid-column: 3; grid-row: 2; }
.portfolio-more { display: flex; justify-content: center; padding-top: 50px; }

.design-section { padding: 90px 0; background: var(--white); }
.design-header { text-align: center; margin-bottom: 56px; }
.design-header .svg-title { display: block; max-width: 480px; margin: -40px auto -5px; }
.design-header .line2 { font-size: 40px; font-weight: 700; line-height: 1.3; letter-spacing: 2px; }
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.design-card-image { overflow: hidden; margin-bottom: 20px; background: #ddd; }
.design-card-image img { width: 100%; height: auto; display: block; }
.design-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.design-card p { font-size: 16px; color: var(--text-gray); line-height: 1.65; max-width: 80%; margin-top: 15px; }

.cta-section { position: relative; overflow: hidden; background: #2a1a1a; }
.cta-bg { position: relative; }
.cta-bg img { width: 100%; display: block; }
.cta-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; padding: 0 40px 8%; z-index: 1; }
.cta-overlay .cta-desc { font-size: 34px; font-weight: 700; color: var(--text-light); margin-bottom: 24px; line-height: 1.35; }
.cta-strelka { width: 80px; height: 80px; margin-bottom: 28px; }
.cta-strelka img { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.cta-overlay .btn-pill { font-size: 22px; padding: 10px 60px; }

.guarantee-section { padding: 60px 0 90px; background: linear-gradient(to bottom, #ffffff, #e8dada); }
.guarantee-section .section-title { margin-top: 0; }
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.guarantee-card-image { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 20px; background: #ddd; }
.guarantee-card-image img { width: 100%; height: 100%; object-fit: cover; }
.guarantee-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 12px; line-height: 1.1; }
.guarantee-card p { font-size: 16px; color: var(--text-gray); line-height: 1.65; max-width: 80%; }

.budget-section { padding: 90px 0; background: linear-gradient(to bottom, #e8dada, #c0b0b0); }
.budget-section .section-title { margin-top: -100px; }
.budget-inner { display: flex; align-items: flex-end; gap: 56px; }
.budget-text { flex: 0 0 340px; }
.budget-text p { font-size: 25px; font-weight: 650; line-height: 1.3; }
.budget-books { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.budget-book img { max-height: 300px; width: auto; filter: drop-shadow(-10px 30px 20px rgba(0,0,0,0.5)); }

.also-section { padding: 90px 0; background: var(--white); }
.also-section .section-title { margin-top: -30px; }
.also-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.also-card-image { overflow: hidden; aspect-ratio: 4/3; background: #ddd; margin-bottom: 20px; }
.also-card-image img { width: 100%; height: 100%; object-fit: cover; }
.also-card h3 { font-size: 30px; font-weight: 700; line-height: 1.1; }

.clients-section { position: relative; overflow: hidden; background: #111; }
.clients-bg { position: relative; }
.clients-bg img { width: 100%; display: block; }
.clients-overlay { position: absolute; bottom: 50px; left: 0; right: 0; text-align: center; z-index: 1; }
.clients-text { font-size: 40px; font-weight: 700; color: var(--text-light); }

.service-section { padding: 90px 0; background: var(--white); }
.service-header { text-align: center; margin-bottom: 30px; margin-top: -40px; }
.service-header .line1 { font-size: 37px; font-weight: 700; }
.service-header .svg-title { display: block; max-width: 800px; margin: 6px auto 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card-image { overflow: hidden; aspect-ratio: 5/4; margin-bottom: 20px; background: #ddd; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.service-card p { font-size: 16px; color: var(--text-gray); line-height: 1.65; max-width: 80%; margin-top: 15px; }

.divider { height: 20px; background: #e0d0d0; }

.form-section { background: #1a1a1a; padding: 90px 0; }
.form-inner { display: flex; gap: 80px; align-items: flex-start; }
.form-info { flex: 0 0 400px; color: var(--text-light); }
.form-info h2 { font-size: 42px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.form-info p { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.dark-form { flex: 1; }
.df-group { margin-bottom: 16px; }
.df-group input, .df-group textarea { width: 100%; padding: 16px 20px; font-size: 16px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: rgba(255,255,255,0.95); font-family: 'Geologica', sans-serif; outline: none; color: #1a1a1a; transition: border-color 0.2s; }
.df-group input:focus, .df-group textarea:focus { border-color: var(--red); }
.df-group textarea { resize: vertical; }
.df-consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 24px; cursor: pointer; }
.df-consent input[type=checkbox] { margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--red); }
.df-consent span { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }
.df-submit { width: 100%; padding: 16px; font-size: 20px; font-weight: 600; font-family: 'Geologica', sans-serif; background: var(--red); color: var(--text-light); border: none; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.df-submit:hover { background: var(--red-hover); }
.df-submit:disabled { opacity: 0.7; cursor: wait; }
#form-message { margin-top: 16px; text-align: center; font-size: 15px; }

.site-footer { background: #030014; color: rgba(255,255,255,.6); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
.footer-logo { height: 50px; margin-bottom: 1rem; filter: brightness(2); }
.footer-logo-text { font-size: 1.6rem; font-weight: 700; color: #fff; }
.footer-tagline { font-size: 1rem; color: rgba(255,255,255,.4); max-width: 280px; }
.footer-nav, .footer-contacts, .footer-social { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav strong, .footer-contacts strong, .footer-social strong { color: #fff; margin-bottom: .4rem; font-size: 1.1rem; }
.footer-nav a, .footer-contacts a, .footer-social a { font-size: 1rem; }
.footer-nav a:hover, .footer-contacts a:hover, .footer-social a:hover { color: var(--red); }
.footer-contacts p { margin: 0; font-size: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: 1rem; }
.footer-privacy-btn { background: none; border: none; color: rgba(255,255,255,.35); font-size: 1rem; cursor: pointer; font-family: 'Geologica', sans-serif; transition: color 0.2s; }
.footer-privacy-btn:hover { color: #fff; }

.priv-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.priv-modal[hidden] { display: none; }
.priv-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.priv-box { position: relative; background: #fff; border-radius: 16px; max-width: 700px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 40px; z-index: 1; }
.priv-close-btn { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text-gray); }
.priv-text { font-size: 15px; line-height: 1.7; margin-top: 16px; }

.pf-page { padding: 40px 0 40px; margin-top: 56px; background: #DCC7C4; }
.pf-title { font-size: 60px; font-weight: 900; text-align: center; color: var(--text-light); margin-bottom: 5px; margin-top: 20px; }
.pf-subtitle { font-size: 28px; text-align: center; color: var(--text-dark); font-weight: 300; margin-top: 6px; letter-spacing: 1px; }
.pf-content { padding: 60px 0 80px; background: var(--white); }
.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.pf-card { display: block; position: relative; overflow: hidden; background: #eee; text-decoration: none; color: var(--text-dark); border-radius: 5px; transition: transform 0.3s; }
.pf-card:hover { transform: translateY(-4px); }
.pf-card--wide { grid-column: span 2; }
.pf-card-img { aspect-ratio: 16/10; overflow: hidden; }
.pf-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.pf-card:hover .pf-card-img img { transform: scale(1.04); }
.pf-card-info { position: absolute; bottom: 20px; left: 20px; background: rgba(255,255,255,0.85); backdrop-filter: blur(6px); padding: 14px 60px 14px 18px; border-radius: 3px; min-width: 340px; white-space: nowrap; }
.pf-card-info h3 { font-size: 20px; font-weight: 550; line-height: 1.3; margin-bottom: 2px; color: var(--text-dark); }
.pf-card-info .pf-client { font-size: 18px; color: var(--text-dark); font-weight: 400; }
.pf-card-info .pf-arrow { position: absolute; right: 42px; bottom: 5px; font-size: 24px; font-weight: 300; color: var(--text-dark); }
.pf-empty { text-align: center; padding: 3rem 0; color: var(--text-gray); }
.pf-cta { display: flex; justify-content: center; margin-top: 56px; }


/* ═══ CASE STUDY PAGE (project_detail) ═══ */
/* Copied 1:1 from client mockup, cs- prefix to avoid homepage conflicts */

.cs-hero{width:100%;height:700px;position:relative;overflow:hidden;background:#7a9bba;margin-top:56px;background-size:cover;background-position:center}
.cs-hero-bg{position:absolute;inset:0;background:linear-gradient(135deg,rgba(90,120,160,.5) 0%,transparent 50%)}
.cs-hero-content{position:relative;z-index:2;max-width:1440px;margin:0 auto;padding:0 60px;height:100%;display:flex;flex-direction:column;justify-content:center}
.cs-hero-title-sub{font-size:80px;font-weight:600;color:#d4b8ab;line-height:1.1;margin-bottom:4px}
.cs-hero-title-main{font-size:80px;font-weight:900;color:var(--white);line-height:1.1;margin-bottom:40px}
.cs-hero-task{background:rgba(255,255,255,.85);backdrop-filter:blur(10px);border-radius:16px;padding:32px 40px;max-width:520px}
.cs-hero-task-label{font-size:22px;font-weight:800;text-transform:uppercase;margin-bottom:12px}
.cs-hero-task-text{font-size:17px;font-weight:400;line-height:1.55}

.cs-client-bar{background:#d9c7be;padding:50px 0 320px}
.cs-client-bar .container{max-width:1440px;margin:0 auto;padding:0 60px;display:flex;align-items:center;gap:60px}
.cs-client-logo{flex-shrink:0;display:flex;align-items:center;gap:14px}
.cs-client-logo img{height:70px;width:auto}
.cs-client-logo-name{font-size:20px;font-weight:800;text-transform:uppercase;line-height:1.2;color:var(--white)}
.cs-client-description{font-size:16px;font-weight:400;line-height:1.6;max-width:700px;color:var(--white)}

.cs-media-block{max-width:1440px;margin:0 auto;padding:0 60px;margin-top:-270px;position:relative;z-index:2}
.cs-media-player{width:100%;aspect-ratio:16/9;max-height:550px;background:var(--text-dark);display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;overflow:hidden}
.cs-media-player iframe{position:absolute;inset:0;width:100%;height:100%}
.cs-media-photo{width:100%;aspect-ratio:16/9;max-height:550px;overflow:hidden}
.cs-media-photo img{width:100%;height:100%;object-fit:cover}

.cs-section{max-width:1440px;margin:0 auto;padding:60px 60px 30px}
.cs-section-header{display:flex;gap:80px;align-items:flex-start}
.cs-section-left{flex-shrink:0;width:320px}
.cs-section-number{font-size:140px;font-weight:900;color:rgba(0,0,0,.04);line-height:.85;margin-bottom:-50px}
.cs-section-title{font-size:30px;font-weight:800;line-height:1.25;position:relative}
.cs-section-right{flex:1;padding-top:20px}
.cs-section-text{font-size:17px;font-weight:400;line-height:1.65;margin-bottom:16px}
.cs-section-text:last-child{margin-bottom:0}
.cs-btn-red{display:inline-block;background:var(--red);color:var(--white);font-family:'Geologica',sans-serif;font-size:16px;font-weight:600;padding:14px 36px;border-radius:8px;text-decoration:none;border:none;cursor:pointer;margin-top:20px;transition:background .2s}
.cs-btn-red:hover{background:#a82820}

.cs-photo-grid{max-width:1440px;margin:0 auto;padding:10px 60px}
.cs-grid-L2S{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:16px;height:580px}
.cs-grid-L2S .cs-g-large{grid-row:1/3}
.cs-grid-full{height:500px}
.cs-grid-3x2{display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr;gap:16px;height:580px}
.cs-grid-4col{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;height:280px}
.cs-grid-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px;height:500px}
.cs-photo-item{overflow:hidden;background:#e0d5ce;position:relative}
.cs-photo-item img{width:100%;height:100%;object-fit:cover;display:block}

.cs-other-projects{background:#d9c7be;padding:60px 0 50px;margin-top:40px;width:1920px}
.cs-other-projects-inner{max-width:1440px;margin:0 auto;padding:0 60px}
.cs-other-projects-header{display:flex;flex-direction:column;align-items:center;text-align:center;margin-bottom:36px;position:relative}
.cs-other-projects-title{font-size:52px;font-weight:900;line-height:1.1;color:var(--white)}
.cs-other-projects-sub{font-size:18px;font-weight:400;color:var(--text);margin-top:6px}
.cs-carousel-arrows{display:flex;gap:12px;position:absolute;right:0;bottom:0}
.cs-carousel-arrow{width:48px;height:48px;border-radius:50%;border:2px solid var(--text-dark);background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s}
.cs-carousel-arrow:hover{background:var(--text-dark)}
.cs-carousel-arrow:hover svg{stroke:var(--white)}
.cs-carousel-arrow svg{width:20px;height:20px;stroke:var(--text-dark);fill:none;stroke-width:2}
.cs-carousel-track{display:flex;gap:20px;overflow:visible}
.cs-carousel-card{flex-shrink:0;width:540px;overflow:hidden;position:relative;text-decoration:none;color:var(--text-dark)}
.cs-carousel-card-image{width:100%;height:480px;background:linear-gradient(135deg,#c9b8ad,#a89585);position:relative;overflow:hidden}
.cs-carousel-card-image img{width:100%;height:100%;object-fit:cover}
.cs-carousel-card-label{position:absolute;bottom:20px;left:20px;right:20px;background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border-radius:10px;padding:16px 20px}
.cs-carousel-card-label-title{font-size:17px;font-weight:700;margin-bottom:3px}
.cs-carousel-card-label-sub{font-size:14px;font-weight:400;color:var(--text-gray);display:flex;align-items:center;gap:6px}
